File tree Expand file tree Collapse file tree 5 files changed +9
-10
lines changed Expand file tree Collapse file tree 5 files changed +9
-10
lines changed Original file line number Diff line number Diff line change @@ -11,11 +11,11 @@ jobs:
11
11
runs-on : ubuntu-latest
12
12
steps :
13
13
- uses : actions/checkout@v3
14
- - name : Set up JDK 17
14
+ - name : Set up JDK
15
15
uses : actions/setup-java@v3
16
16
with :
17
- java-version : ' 17 '
18
- distribution : ' adopt '
17
+ distribution : temurin
18
+ java-version : 21
19
19
- name : Validate Gradle wrapper
20
20
uses : gradle/wrapper-validation-action@v1.0.6
21
21
- name : Checkstyle
Original file line number Diff line number Diff line change @@ -13,11 +13,11 @@ jobs:
13
13
runs-on : ubuntu-latest
14
14
steps :
15
15
- uses : actions/checkout@v3
16
- - name : Set up JDK 17
16
+ - name : Set up JDK
17
17
uses : actions/setup-java@v3
18
18
with :
19
- java-version : ' 17 '
20
- distribution : ' adopt '
19
+ distribution : temurin
20
+ java-version : 21
21
21
- name : Validate Gradle wrapper
22
22
uses : gradle/wrapper-validation-action@v1.0.6
23
23
- name : Build sourcesJar and javadocJar
Original file line number Diff line number Diff line change 16
16
name : Setup Java
17
17
with :
18
18
distribution : temurin
19
- java-version : 17
19
+ java-version : 21
20
20
- name : Generate and submit dependency graph
21
21
uses : gradle/actions/dependency-submission@v4.1.0
22
22
with :
Original file line number Diff line number Diff line change @@ -3,8 +3,6 @@ plugins {
3
3
alias(libs. plugins. nexus. publish)
4
4
}
5
5
6
- def javaVersion = providers. environmentVariable(" JAVA_BUILD_VERSION" ). getOrElse(" 17" )
7
-
8
6
apply from : " ${ rootDir} /gradle/publish-root.gradle"
9
7
10
8
allprojects {
@@ -14,7 +12,7 @@ allprojects {
14
12
15
13
java {
16
14
toolchain {
17
- languageVersion = JavaLanguageVersion . of(javaVersion )
15
+ languageVersion = JavaLanguageVersion . of(libs . versions . java . get() )
18
16
}
19
17
}
20
18
Original file line number Diff line number Diff line change 1
1
[versions ]
2
+ java = " 21"
2
3
spring-boot = " 3.4.0"
3
4
spring-dependency-management = " 1.1.6"
4
5
openapi-generator = " 7.10.0"
You can’t perform that action at this time.
0 commit comments