Use Java 21 (#4235)
This commit is contained in:
parent
88c75c8d9b
commit
e3c68e0992
5 changed files with 8 additions and 4 deletions
2
.github/workflows/ci.yml
vendored
2
.github/workflows/ci.yml
vendored
|
@ -17,7 +17,7 @@ jobs:
|
||||||
|
|
||||||
- uses: actions/setup-java@v3
|
- uses: actions/setup-java@v3
|
||||||
with:
|
with:
|
||||||
java-version: '17'
|
java-version: '21'
|
||||||
distribution: 'temurin'
|
distribution: 'temurin'
|
||||||
|
|
||||||
- name: Gradle Wrapper Validation
|
- name: Gradle Wrapper Validation
|
||||||
|
|
|
@ -17,7 +17,7 @@ jobs:
|
||||||
|
|
||||||
- uses: actions/setup-java@v3
|
- uses: actions/setup-java@v3
|
||||||
with:
|
with:
|
||||||
java-version: '17'
|
java-version: '21'
|
||||||
distribution: 'temurin'
|
distribution: 'temurin'
|
||||||
|
|
||||||
- name: Gradle Wrapper Validation
|
- name: Gradle Wrapper Validation
|
||||||
|
|
|
@ -13,7 +13,7 @@ workflows:
|
||||||
steps:
|
steps:
|
||||||
- set-java-version@1:
|
- set-java-version@1:
|
||||||
inputs:
|
inputs:
|
||||||
- set_java_version: '17'
|
- set_java_version: '21'
|
||||||
- activate-ssh-key:
|
- activate-ssh-key:
|
||||||
run_if: '{{getenv "SSH_RSA_PRIVATE_KEY" | ne ""}}'
|
run_if: '{{getenv "SSH_RSA_PRIVATE_KEY" | ne ""}}'
|
||||||
- git-clone@8.0: {}
|
- git-clone@8.0: {}
|
||||||
|
|
|
@ -12,7 +12,7 @@ allprojects {
|
||||||
|
|
||||||
plugins.withType(JavaBasePlugin).configureEach {
|
plugins.withType(JavaBasePlugin).configureEach {
|
||||||
java {
|
java {
|
||||||
toolchain.languageVersion = JavaLanguageVersion.of(17)
|
toolchain.languageVersion = JavaLanguageVersion.of(21)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -10,6 +10,10 @@ pluginManagement {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
plugins {
|
||||||
|
id 'org.gradle.toolchains.foojay-resolver-convention' version '0.8.0'
|
||||||
|
}
|
||||||
|
|
||||||
dependencyResolutionManagement {
|
dependencyResolutionManagement {
|
||||||
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
|
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
|
||||||
repositories {
|
repositories {
|
||||||
|
|
Loading…
Reference in a new issue