Skip to content

Commit b8556a5

Browse files
committed
Upgrade build for Java 17 as base Java version
* Configure maven-enforcer-plugin to require Java 17 * Configure maven-enforcer-plugin to require maven 3.8+ as done in GeoServer. * Upgrade github actions workflows to use Java 17 * Remove cobertura-maven-plugin (modules/extension/xsd/**), as it is not compatible with Java 11 * Update maven-javadoc-plugin configuration to use legacyMode=true and not fail due to module-info.java not present. * Plugin version upgrades: * jacoco 0.8.7 -> 0.8.13 * maven-checkstyle-plugin 3.3.0 -> 3.6.0 * maven-compiler-plugin 3.11.0 -> 3.14.0 * maven-javadoc-plugin 3.6.3 -> 3.11.2 * Add .mvn/jvm.config with necessary --add-exports and --add-opens for internal jdk.compiler packages. This ensures that build-time tools and compiler plugins interacting with javac internals can function correctly under Java 17's module system. * Centralize maven plugin versions in the root pom's pluginManagement section.
1 parent 2693514 commit b8556a5

File tree

7 files changed

+160
-72
lines changed

7 files changed

+160
-72
lines changed

.github/workflows/azure-integration.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
runs-on: ubuntu-latest
2323
strategy:
2424
matrix:
25-
java-version: [ 11, 17, 21 ]
25+
java-version: [ 17, 21 ]
2626
steps:
2727
- uses: actions/checkout@v4
2828
- uses: actions/setup-java@v3
@@ -57,7 +57,7 @@ jobs:
5757
- uses: actions/setup-java@v3
5858
with:
5959
distribution: 'temurin'
60-
java-version: 11
60+
java-version: 17
6161
cache: 'maven'
6262

6363
- name: Tests against Azure

.github/workflows/integration.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,10 @@ jobs:
1616
runs-on: ubuntu-latest
1717

1818
steps:
19-
- name: Set up JDK 11
19+
- name: Set up JDK 17
2020
uses: actions/setup-java@v3
2121
with:
22-
java-version: 11
22+
java-version: 17
2323
distribution: 'temurin'
2424
- uses: actions/checkout@v4
2525
- name: Maven repository caching

.github/workflows/linux.yml

Lines changed: 2 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -10,28 +10,6 @@ env:
1010
MAVEN_OPTS: -Dmaven.wagon.httpconnectionManager.ttlSeconds=120 -Dmaven.wagon.http.retryHandler.count=3 -Xmx512m -Djava.awt.headless=true -Dorg.slf4j.simpleLogger.showDateTime=true -Dorg.slf4j.simpleLogger.dateTimeFormat=HH:mm:ss,SSS
1111

1212
jobs:
13-
openjdk11:
14-
runs-on: [ubuntu-22.04]
15-
steps:
16-
- uses: actions/checkout@v4
17-
- name: Set up JDK 11
18-
uses: actions/setup-java@v3
19-
with:
20-
java-version: 11
21-
distribution: 'temurin'
22-
- name: Maven repository caching
23-
uses: actions/cache@v3
24-
with:
25-
path: ~/.m2/repository
26-
key: gwc-${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
27-
restore-keys: |
28-
${{ runner.os }}-maven-
29-
- name: Build with Maven
30-
run: mvn -B clean install -Dspotless.apply.skip=true -Dall -T2 --file geowebcache/pom.xml
31-
- name: Remove SNAPSHOT jars from repository
32-
run: |
33-
find .m2/repository -name "*SNAPSHOT*" -type d | xargs rm -rf {}
34-
3513
openjdk17:
3614
runs-on: [ubuntu-22.04]
3715
steps:
@@ -80,10 +58,10 @@ jobs:
8058
runs-on: [ubuntu-22.04]
8159
steps:
8260
- uses: actions/checkout@v4
83-
- name: Set up JDK 11
61+
- name: Set up JDK 17
8462
uses: actions/setup-java@v3
8563
with:
86-
java-version: 11
64+
java-version: 17
8765
distribution: 'temurin'
8866
- name: Maven repository caching
8967
uses: actions/cache@v3

.github/workflows/macos.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@ jobs:
1313

1414
steps:
1515
- uses: actions/checkout@v4
16-
- name: Set up JDK 11
16+
- name: Set up JDK 17
1717
uses: actions/setup-java@v3
1818
with:
19-
java-version: 11
19+
java-version: 17
2020
distribution: 'temurin'
2121
- name: Maven repository caching
2222
uses: actions/cache@v3

.github/workflows/windows.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@ jobs:
1313

1414
steps:
1515
- uses: actions/checkout@v4
16-
- name: Set up JDK 11
16+
- name: Set up JDK 17
1717
uses: actions/setup-java@v3
1818
with:
19-
java-version: 11
19+
java-version: 17
2020
distribution: 'temurin'
2121
- name: Maven repository caching
2222
uses: actions/cache@v3

0 commit comments

Comments
 (0)