Skip to content

Commit 86e52b3

Browse files
oryan-blockclaude
andcommitted
chore: pin release/snapshot JDK to 11
Building on a newer JDK without --release/jdkRelease lets code link against APIs missing from Java 11. Keep the build JDK at the minimum supported version and stop Renovate from proposing java-jdk bumps. The PR matrix still covers 11, 17, 21 and 25. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
1 parent f4957bf commit 86e52b3

3 files changed

Lines changed: 11 additions & 4 deletions

File tree

‎.github/workflows/release.yml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ jobs:
99
- name: Setup java
1010
uses: actions/setup-java@v6
1111
with:
12-
java-version: '25'
12+
java-version: '11'
1313
distribution: 'temurin'
1414
- name: Build with Maven
1515
run: mvn --batch-mode --update-snapshots verify
@@ -23,7 +23,7 @@ jobs:
2323
- name: Setup Maven Central
2424
uses: actions/setup-java@v6
2525
with:
26-
java-version: '25'
26+
java-version: '11'
2727
distribution: 'temurin'
2828
server-id: central
2929
server-username: MAVEN_USERNAME

‎.github/workflows/snapshot.yml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
- name: Setup java
1313
uses: actions/setup-java@v6
1414
with:
15-
java-version: '25'
15+
java-version: '11'
1616
distribution: 'temurin'
1717
- name: Build with Maven
1818
run: mvn --batch-mode --update-snapshots verify
@@ -26,7 +26,7 @@ jobs:
2626
- name: Setup Maven Central
2727
uses: actions/setup-java@v6
2828
with:
29-
java-version: '25'
29+
java-version: '11'
3030
distribution: 'temurin'
3131
server-id: central
3232
server-username: MAVEN_USERNAME

‎renovate.json‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,13 @@
3030
"org.springframework"
3131
],
3232
"allowedVersions": "<6.0.0"
33+
},
34+
{
35+
"description": "Release/snapshot builds use the minimum supported JDK",
36+
"matchDepNames": [
37+
"java-jdk"
38+
],
39+
"enabled": false
3340
}
3441
]
3542
}

0 commit comments

Comments
 (0)