From d29857ed0868ef4606e3103d4bb4d8485209ba6f Mon Sep 17 00:00:00 2001 From: Olivier Lamy Date: Fri, 28 Feb 2025 10:36:18 +1000 Subject: [PATCH] Just use Github actions as it looks to be the way.. sadly and it looks plugins maintainers are forced to do so without any asking consent Signed-off-by: Olivier Lamy --- .github/workflows/verify.yml | 36 ++++++++++++++++++++++++++++++++++++ Jenkinsfile | 5 ----- 2 files changed, 36 insertions(+), 5 deletions(-) create mode 100644 .github/workflows/verify.yml delete mode 100644 Jenkinsfile diff --git a/.github/workflows/verify.yml b/.github/workflows/verify.yml new file mode 100644 index 0000000..3430c1b --- /dev/null +++ b/.github/workflows/verify.yml @@ -0,0 +1,36 @@ +name: GitHub CI + +on: + push: + branches-ignore: + - dependabot/** + pull_request: + +jobs: + build: + + strategy: + matrix: + os: [ubuntu-latest, windows-latest] + java: [17, 21] + fail-fast: false + + runs-on: ${{ matrix.os }} + + steps: + - name: Checkout + uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4 + + - name: Set up JDK + uses: actions/setup-java@3a4f6e1af504cf6a31855fa899c6aa5355ba6c12 # v4 + with: + cache: 'maven' + distribution: adopt + java-version: ${{ matrix.java }} + + - name: Set up Maven + run: + mvn --errors --batch-mode --show-version org.apache.maven.plugins:maven-wrapper-plugin:3.3.2:wrapper "-Dmaven=3.9.9" + + - name: Build with Maven + run: mvn verify -e -B -V javadoc:javadoc \ No newline at end of file diff --git a/Jenkinsfile b/Jenkinsfile deleted file mode 100644 index 08eaf2f..0000000 --- a/Jenkinsfile +++ /dev/null @@ -1,5 +0,0 @@ -// NOTE: Cannot use ACI agents because build requires `unzip` to be available -buildPlugin(useContainerAgent: true, configurations: [ - [ platform: "linux", jdk: "21" ], - [ platform: "windows", jdk: "17" ] -])