From dda3355bb355782b0d7798043a0187fd44caccc6 Mon Sep 17 00:00:00 2001 From: Felix Prasse <1330854+flx5@users.noreply.github.com> Date: Thu, 18 Apr 2024 21:17:57 +0200 Subject: [PATCH] Add Github Actions Build Signed-off-by: flx5 <1330854+flx5@users.noreply.github.com> --- .github/workflows/maven.yml | 37 ++++++++++++++++++++++++++++++++++++ pom.xml | 2 +- tomcat_11_0_blackbox/pom.xml | 20 ++++++++++++++++++- 3 files changed, 57 insertions(+), 2 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 0000000..eaba097 --- /dev/null +++ b/.github/workflows/maven.yml @@ -0,0 +1,37 @@ +# 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://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-java-with-maven + +# This workflow uses actions that are not certified by GitHub. +# They are provided by a third-party and are governed by +# separate terms of service, privacy policy, and support +# documentation. + +name: Java CI with Maven + +on: + push: + branches: [ "main" ] + pull_request: + branches: [ "main" ] + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + - name: Set up JDK 11 + uses: actions/setup-java@v3 + with: + java-version: '11' + distribution: 'temurin' + cache: maven + - name: Set up JDK 17 + uses: actions/setup-java@v3 + with: + java-version: '17' + distribution: 'temurin' + cache: maven + - name: Build with Maven + run: mvn -B package --file pom.xml diff --git a/pom.xml b/pom.xml index 4005361..5a33189 100644 --- a/pom.xml +++ b/pom.xml @@ -76,7 +76,7 @@ 10.0.27 10.1.18 - 11.0.0-M16 + 11.0.0-M19 11.0.12 12.0.5 2.15.0 diff --git a/tomcat_11_0_blackbox/pom.xml b/tomcat_11_0_blackbox/pom.xml index 68becc3..bc3e090 100644 --- a/tomcat_11_0_blackbox/pom.xml +++ b/tomcat_11_0_blackbox/pom.xml @@ -129,7 +129,25 @@ true - + + org.apache.maven.plugins + maven-toolchains-plugin + 1.1 + + + + toolchain + + + + + + + 17 + + + +