From 48f0a923ee13b27d271990c95a7b5515f092ab11 Mon Sep 17 00:00:00 2001 From: Svante Schubert Date: Fri, 25 Nov 2022 12:48:24 +0100 Subject: [PATCH 1/2] Enabling Maven builds for push and pull requests on Ubuntu in the GitHub cloud --- .github/workflows/maven.yml | 22 ++++++++++++++++++++++ Mustang-CLI/pom.xml | 10 +++++----- library/pom.xml | 14 +++++++------- pom.xml | 4 ++-- validator/pom.xml | 14 +++++++------- 5 files changed, 43 insertions(+), 21 deletions(-) create mode 100644 .github/workflows/maven.yml diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml new file mode 100644 index 00000000..c60194b3 --- /dev/null +++ b/.github/workflows/maven.yml @@ -0,0 +1,22 @@ +# This workflow will build a Java project with Maven, and cache/restore any dependencies to improve the workflow execution time +# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven +# For setup-java see: https://github.com/actions/setup-java#Usage + +name: Java CI with Maven + +on: [push, pull_request] + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-java@v3 # the log states the default ~/.m2/toolchains.xml is being created pointing to the JDK + with: + distribution: 'adopt' # for latest JDKs use temurin https://blog.adoptopenjdk.net/2021/08/goodbye-adoptopenjdk-hello-adoptium/ + java-version: '8' + cache: 'maven' + - name: Build with Maven + run: mvn -B package --file pom.xml \ No newline at end of file diff --git a/Mustang-CLI/pom.xml b/Mustang-CLI/pom.xml index 9bfa64f0..f40d7838 100644 --- a/Mustang-CLI/pom.xml +++ b/Mustang-CLI/pom.xml @@ -13,9 +13,9 @@ 2.5.8-SNAPSHOT UTF-8 - 1.8 - 1.8 - 1.8 + 8 + 8 + 8 @@ -101,8 +101,8 @@ - 1.8 - openjdk + 8 + adopt diff --git a/library/pom.xml b/library/pom.xml index 8565a8e4..db8d8ed4 100644 --- a/library/pom.xml +++ b/library/pom.xml @@ -45,9 +45,9 @@ github -Xdoclint:none - 1.8 - 1.8 - 1.8 + 8 + 8 + 8 true @@ -138,8 +138,8 @@ - 1.8 - 1.8 + 8 + 8 @@ -156,8 +156,8 @@ - 1.8 - openjdk + 8 + adopt diff --git a/pom.xml b/pom.xml index 7c64e368..1dbe2423 100644 --- a/pom.xml +++ b/pom.xml @@ -192,8 +192,8 @@ - 1.8 - openjdk + 8 + adopt diff --git a/validator/pom.xml b/validator/pom.xml index 62770c6e..ca728123 100644 --- a/validator/pom.xml +++ b/validator/pom.xml @@ -29,9 +29,9 @@ UTF-8 false - 1.8 - 1.8 - 1.8 + 8 + 8 + 8 @@ -156,8 +156,8 @@ - 1.8 - openjdk + 8 + adopt @@ -173,8 +173,8 @@ - 1.8 - 1.8 + 8 + 8 From fb7dd3c931002ff60e158b24926c9d485ad8fc11 Mon Sep 17 00:00:00 2001 From: Svante Schubert Date: Fri, 25 Nov 2022 12:48:24 +0100 Subject: [PATCH 2/2] Enabling Maven builds for push and pull requests on Ubuntu in the GitHub cloud --- .github/workflows/maven.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml index c60194b3..adcbf92a 100644 --- a/.github/workflows/maven.yml +++ b/.github/workflows/maven.yml @@ -17,6 +17,6 @@ jobs: with: distribution: 'adopt' # for latest JDKs use temurin https://blog.adoptopenjdk.net/2021/08/goodbye-adoptopenjdk-hello-adoptium/ java-version: '8' - cache: 'maven' + cache: 'maven' #cache/restore any dependencies to improve the workflow execution time - name: Build with Maven run: mvn -B package --file pom.xml \ No newline at end of file