From 23cdb02fe5cf8723ddbca35f4a12ec20f217e6ac Mon Sep 17 00:00:00 2001 From: Sebastian Nagel Date: Thu, 3 Oct 2024 15:57:36 +0200 Subject: [PATCH 1/3] build: add Github workflow to verify proper compilation and build --- .github/workflows/build.yml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .github/workflows/build.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..b488353 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,29 @@ +name: cc-index-table build + +on: + push: + branches: + - main + pull_request: + branches: + - main + +jobs: + build: + runs-on: ubuntu-latest + strategy: + matrix: + java: [ 11, 17, 21 ] + name: Java ${{ matrix.java }} + steps: + - uses: actions/checkout@v4 + + - name: Setup JDK + uses: actions/setup-java@v4 + with: + distribution: 'temurin' + java-version: ${{ matrix.java }} + cache: 'maven' + + - name: Build + run: mvn verify javadoc:aggregate From 9c63a391f0e7f9c6da8439e10531479fc1d93a57 Mon Sep 17 00:00:00 2001 From: Sebastian Nagel Date: Thu, 3 Oct 2024 16:15:29 +0200 Subject: [PATCH 2/3] build: upgrade Maven plugins --- pom.xml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pom.xml b/pom.xml index 4103ed3..216a34d 100644 --- a/pom.xml +++ b/pom.xml @@ -38,7 +38,7 @@ maven-compiler-plugin - 3.8.1 + 3.13.0 ${java.version} ${java.version} @@ -46,7 +46,7 @@ maven-surefire-plugin - 2.22.2 + 3.2.5 **/Test*.java @@ -59,7 +59,7 @@ maven-assembly-plugin - 3.3.0 + 3.7.1 jar-with-dependencies From faf6241d4e8ac98cf6171e6aa9e18e1cd62473e1 Mon Sep 17 00:00:00 2001 From: Sebastian Nagel Date: Thu, 3 Oct 2024 16:03:51 +0200 Subject: [PATCH 3/3] build: update unit test JVM args for Java 17 and 21 Add java command-line argument --add-opens to let the java.base module export sun.nio.ch as open package. --- pom.xml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pom.xml b/pom.xml index 216a34d..0136760 100644 --- a/pom.xml +++ b/pom.xml @@ -55,6 +55,10 @@ performance + + + --add-opens=java.base/sun.nio.ch=ALL-UNNAMED +