Skip to content

Commit a526f4f

Browse files
authored
Merge pull request #838 from ascopes/task/jdk-25
Build on Java 25
2 parents 8f53edb + b9b5f5f commit a526f4f

9 files changed

Lines changed: 105 additions & 59 deletions

File tree

.github/workflows/build.yml

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,12 @@ jobs:
2424
java-version:
2525
- 17 # LTS
2626
- 21 # LTS
27-
- GA # General access
27+
- 25 # LTS
2828
include:
29-
- os-name: windows-latest
30-
java-version: GA
29+
- os-name: windows-11-arm
30+
java-version: 25 # LTS
3131
- os-name: macos-latest
32-
java-version: GA
32+
java-version: 25 # LTS
3333

3434
steps:
3535
- name: Checkout repository
@@ -38,20 +38,12 @@ jobs:
3838
fetch-depth: 2
3939

4040
- name: Initialize Zulu JDK
41-
if: matrix.java-version != 'GA'
4241
uses: actions/setup-java@v5
4342
with:
4443
check-latest: true
4544
distribution: zulu
4645
java-version: ${{ matrix.java-version }}
4746

48-
- name: Initialize Oracle JDK
49-
if: matrix.java-version == 'GA'
50-
uses: oracle-actions/setup-java@v1
51-
with:
52-
website: jdk.java.net
53-
release: ${{ matrix.java-version }}
54-
5547
- name: Maven cache
5648
uses: actions/cache@v4
5749
env:

.github/workflows/deploy.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ jobs:
4040
uses: actions/setup-java@v5
4141
with:
4242
distribution: zulu
43-
java-version: 24
43+
java-version: 25
4444
server-id: central
4545
server-username: CENTRAL_USERNAME
4646
server-password: CENTRAL_TOKEN
@@ -94,3 +94,4 @@ jobs:
9494
name: v${{ env.release_version }}
9595
generateReleaseNotes: true
9696
token: ${{ secrets.GITHUB_TOKEN }}
97+

.github/workflows/pages.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,13 @@ jobs:
2020
- name: Set up JDK
2121
uses: actions/setup-java@v5
2222
with:
23-
java-version: 23
24-
distribution: 'temurin'
23+
java-version: 25
24+
distribution: zulu
2525

2626
- name: Generate JavaDocs
2727
shell: bash
2828
run: >-
29-
./mvnw -B -U -am -pl java-compiler-testing
29+
./mvnw -B -U -am -pl java-compiler-testing
3030
-Dmaven.test.skip=true
3131
-Dcheckstyle.skip=true
3232
-Dlicense.skip=true

.github/workflows/security.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
uses: actions/setup-java@v5
2222
with:
2323
distribution: zulu
24-
java-version: 23
24+
java-version: 25
2525

2626
- name: Submit Dependency Snapshot
2727
uses: advanced-security/maven-dependency-submission-action@v5

.mvn/jvm.config

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1-
-XX:+TieredCompilation -XX:TieredStopAtLevel=1
1+
-XX:+TieredCompilation
2+
-XX:TieredStopAtLevel=1
Lines changed: 1 addition & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,3 @@
1-
# Licensed to the Apache Software Foundation (ASF) under one
2-
# or more contributor license agreements. See the NOTICE file
3-
# distributed with this work for additional information
4-
# regarding copyright ownership. The ASF licenses this file
5-
# to you under the Apache License, Version 2.0 (the
6-
# "License"); you may not use this file except in compliance
7-
# with the License. You may obtain a copy of the License at
8-
#
9-
# http://www.apache.org/licenses/LICENSE-2.0
10-
#
11-
# Unless required by applicable law or agreed to in writing,
12-
# software distributed under the License is distributed on an
13-
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14-
# KIND, either express or implied. See the License for the
15-
# specific language governing permissions and limitations
16-
# under the License.
17-
wrapperVersion=3.3.2
1+
wrapperVersion=3.3.4
182
distributionType=only-script
193
distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.9.11/apache-maven-3.9.11-bin.zip

java-compiler-testing/src/test/java/io/github/ascopes/jct/compilers/AbstractJctCompilerTest.java

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1835,15 +1835,7 @@ final <T> List<T> concat(List<T> first, List<T>... more) {
18351835
///
18361836

18371837
AbstractObjectAssert<?, ?> assertThatCompilerField(String field) {
1838-
try {
1839-
var fieldObj = AbstractJctCompiler.class.getDeclaredField(field);
1840-
fieldObj.setAccessible(true);
1841-
var fieldValue = fieldObj.get(compiler);
1842-
return assertThat(fieldValue)
1843-
.as("CompilerImpl.%s (%s)", field, fieldValue);
1844-
} catch (ReflectiveOperationException ex) {
1845-
return fail("Failed to extract field " + field, ex);
1846-
}
1838+
return assertThat(compiler).extracting(field);
18471839
}
18481840

18491841
<T> T setFieldOnCompiler(String field, T value) {

mvnw

Lines changed: 43 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

mvnw.cmd

Lines changed: 48 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)