Skip to content

Commit 55d044d

Browse files
committed
Upgrade to Java 17
1 parent be30ab2 commit 55d044d

4 files changed

Lines changed: 22 additions & 18 deletions

File tree

.github/workflows/build_standard.yml

Lines changed: 18 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,10 @@ jobs:
1515
with:
1616
fetch-depth: 0
1717
- name: Set up JDK 11
18-
uses: actions/setup-java@v1
18+
uses: actions/setup-java@v4
1919
with:
20-
java-version: 11
20+
distribution: 'graalvm' # See 'Supported distributions' for available options
21+
java-version: 17
2122
- name: Install Graphviz
2223
run: sudo apt-get -y install graphviz
2324
- name: Gradle caches
@@ -44,7 +45,7 @@ jobs:
4445
path: ./out
4546
if-no-files-found: error
4647

47-
validate_java_11:
48+
validate_java_17:
4849
runs-on: ubuntu-latest
4950
needs:
5051
- build
@@ -56,14 +57,15 @@ jobs:
5657
path: ./out
5758
- name: Grant execute permission for cm
5859
run: chmod +x ./out/bin/cm
59-
- name: Set up JDK 11
60-
uses: actions/setup-java@v1
60+
- name: Set up JDK 17
61+
uses: actions/setup-java@v4
6162
with:
62-
java-version: 11
63+
distribution: 'graalvm' # See 'Supported distributions' for available options
64+
java-version: 17
6365
- name: Execute to check if Java version is compatible
6466
run: ./out/bin/cm
6567

66-
validate_java_17:
68+
validate_java_21:
6769
runs-on: ubuntu-latest
6870
needs:
6971
- build
@@ -75,14 +77,15 @@ jobs:
7577
path: ./out
7678
- name: Grant execute permission for cm
7779
run: chmod +x ./out/bin/cm
78-
- name: Set up JDK 17
79-
uses: actions/setup-java@v1
80+
- name: Set up JDK 21
81+
uses: actions/setup-java@v4
8082
with:
81-
java-version: 17
83+
distribution: 'graalvm' # See 'Supported distributions' for available options
84+
java-version: '21'
8285
- name: Execute to check if Java version is compatible
8386
run: ./out/bin/cm
8487

85-
validate_java_21:
88+
validate_java_24:
8689
runs-on: ubuntu-latest
8790
needs:
8891
- build
@@ -94,9 +97,10 @@ jobs:
9497
path: ./out
9598
- name: Grant execute permission for cm
9699
run: chmod +x ./out/bin/cm
97-
- name: Set up JDK 21
98-
uses: actions/setup-java@v1
100+
- name: Set up JDK 24
101+
uses: actions/setup-java@v4
99102
with:
100-
java-version: 21
103+
distribution: 'graalvm' # See 'Supported distributions' for available options
104+
java-version: '24'
101105
- name: Execute to check if Java version is compatible
102106
run: ./out/bin/cm

.sdkmanrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
java=11.0.27-tem
1+
java=17.0.9-graalce

build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ plugins {
1010
group = 'org.contextmapper'
1111

1212
java {
13-
sourceCompatibility = JavaVersion.VERSION_11
14-
targetCompatibility = JavaVersion.VERSION_11
13+
sourceCompatibility = JavaVersion.VERSION_17
14+
targetCompatibility = JavaVersion.VERSION_17
1515
}
1616

1717
repositories {

src/main/java/org/contextmapper/cli/ContextMapperCLI.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
usageHelpAutoWidth = true)
1919
public class ContextMapperCLI implements Runnable {
2020

21-
private static final int REQUIRED_JAVA_VERSION = 11;
21+
private static final int REQUIRED_JAVA_VERSION = 17;
2222
static Supplier<Integer> javaVersionSupplier = () -> Runtime.version().feature();
2323

2424
@Override

0 commit comments

Comments
 (0)