Update CI/build infra (#1852)

* Update CI/build infra

- Gradle caching on CI
- JDK 21
- Move gradle wrapper validation to a separate workflow that only runs on changes to those files

* Update .github/workflows/gradle-wrapper.yml

Co-authored-by: Jake Wharton <jw@squareup.com>

---------

Co-authored-by: Jake Wharton <jw@squareup.com>
This commit is contained in:
Zac Sweers
2024-06-03 22:27:27 -04:00
committed by GitHub
parent ce7abc3e5c
commit d98b143dac
5 changed files with 23 additions and 7 deletions

View File

@@ -77,7 +77,7 @@ subprojects {
pluginManager.withPlugin("java") {
configure<JavaPluginExtension> {
toolchain {
languageVersion.set(JavaLanguageVersion.of(20))
languageVersion.set(libs.versions.jdk.map(JavaLanguageVersion::of))
}
}
if (project.name != "records-tests") {