Use Java 21 (#4235)

This commit is contained in:
Zongle Wang 2024-02-23 19:28:13 +08:00 committed by GitHub
parent 88c75c8d9b
commit e3c68e0992
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
5 changed files with 8 additions and 4 deletions

View File

@ -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

View File

@ -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

View File

@ -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: {}

View File

@ -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)
} }
} }
} }

View File

@ -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 {