chore(build): require a Java 20 host

This commit is contained in:
Harsh Shandilya 2023-08-26 20:56:48 +05:30
parent 4c5659b04d
commit 0b500f6940
No known key found for this signature in database
11 changed files with 15 additions and 18 deletions

View file

@ -28,7 +28,7 @@ jobs:
uses: actions/setup-java@cd89f46ac9d01407894225f350157564c9c7cee2 # v3.12.0
with:
distribution: temurin
java-version: 18
java-version: 20
- name: Initialize CodeQL
uses: github/codeql-action/init@a09933a12a80f87b87005513f0abb1494c27a716 # v2.21.4

View file

@ -16,7 +16,7 @@ jobs:
uses: actions/setup-java@cd89f46ac9d01407894225f350157564c9c7cee2 # v3.12.0
with:
distribution: temurin
java-version: 18
java-version: 20
- name: Decrypt secrets
run: scripts/signing-setup.sh "$ENCRYPT_KEY"

View file

@ -15,7 +15,7 @@ jobs:
uses: actions/setup-java@cd89f46ac9d01407894225f350157564c9c7cee2 # v3.12.0
with:
distribution: temurin
java-version: 18
java-version: 20
- name: Upload binaries
uses: gradle/gradle-build-action@243af859f8ca30903d9d7f7936897ca0358ba691 # v2.7.1

View file

@ -27,7 +27,7 @@ jobs:
uses: actions/setup-java@cd89f46ac9d01407894225f350157564c9c7cee2 # v3.12.0
with:
distribution: temurin
java-version: 18
java-version: 20
- name: Decrypt secrets
run: scripts/signing-setup.sh "$ENCRYPT_KEY"

View file

@ -40,7 +40,7 @@ jobs:
uses: actions/setup-java@cd89f46ac9d01407894225f350157564c9c7cee2 # v3.12.0
with:
distribution: temurin
java-version: 18
java-version: 20
- name: Update changelog
uses: thomaseizinger/keep-a-changelog-new-release@5bc232893483441c5d6cd6c9dcb1e48abf9a2bae # 1.3.0

View file

@ -45,7 +45,7 @@ jobs:
uses: actions/setup-java@cd89f46ac9d01407894225f350157564c9c7cee2 # v3.12.0
with:
distribution: temurin
java-version: 18
java-version: 20
- name: Copy CI gradle.properties
run: mkdir -p ~/.gradle ; cp .github/ci-gradle.properties ~/.gradle/gradle.properties
@ -76,7 +76,7 @@ jobs:
uses: actions/setup-java@cd89f46ac9d01407894225f350157564c9c7cee2 # v3.12.0
with:
distribution: temurin
java-version: 18
java-version: 20
- name: Copy CI gradle.properties
run: mkdir -p ~/.gradle ; cp .github/ci-gradle.properties ~/.gradle/gradle.properties
@ -114,7 +114,7 @@ jobs:
uses: actions/setup-java@cd89f46ac9d01407894225f350157564c9c7cee2 # v3.12.0
with:
distribution: temurin
java-version: 18
java-version: 20
- name: Copy CI gradle.properties
run: mkdir -p ~/.gradle ; cp .github/ci-gradle.properties ~/.gradle/gradle.properties
@ -145,7 +145,7 @@ jobs:
uses: actions/setup-java@cd89f46ac9d01407894225f350157564c9c7cee2 # v3.12.0
with:
distribution: temurin
java-version: 18
java-version: 20
- name: Copy CI gradle.properties
run: mkdir -p ~/.gradle ; cp .github/ci-gradle.properties ~/.gradle/gradle.properties
@ -176,7 +176,7 @@ jobs:
uses: actions/setup-java@cd89f46ac9d01407894225f350157564c9c7cee2 # v3.12.0
with:
distribution: temurin
java-version: 18
java-version: 20
- name: Copy CI gradle.properties
run: mkdir -p ~/.gradle ; cp .github/ci-gradle.properties ~/.gradle/gradle.properties

View file

@ -29,7 +29,7 @@ jobs:
- release-nightly
- nightly
java-version:
- 18
- 20
runs-on: ubuntu-latest
name: Run Gradle-${{ matrix.gradle-version }}, AGP-${{ matrix.agp-version }}, Java-${{ matrix.java-version }}
steps:

View file

@ -15,7 +15,7 @@ jobs:
uses: actions/setup-java@cd89f46ac9d01407894225f350157564c9c7cee2 # v3.12.0
with:
distribution: temurin
java-version: 18
java-version: 20
- name: Download new translations from Crowdin
uses: gradle/gradle-build-action@243af859f8ca30903d9d7f7936897ca0358ba691 # v2.7.1

View file

@ -15,7 +15,7 @@ jobs:
uses: actions/setup-java@cd89f46ac9d01407894225f350157564c9c7cee2 # v3.12.0
with:
distribution: temurin
java-version: 18
java-version: 20
- name: Download new publicsuffix data
uses: gradle/gradle-build-action@243af859f8ca30903d9d7f7936897ca0358ba691 # v2.7.1

View file

@ -5,10 +5,7 @@
plugins { `kotlin-dsl` }
private val jvmToolchainAction =
Action<JavaToolchainSpec> { languageVersion.set(JavaLanguageVersion.of(17)) }
kotlin.jvmToolchain(jvmToolchainAction)
kotlin.jvmToolchain(20)
gradlePlugin {
plugins {

View file

@ -47,6 +47,6 @@ class KotlinCommonPlugin : Plugin<Project> {
)
val JVM_TOOLCHAIN_ACTION =
Action<JavaToolchainSpec> { languageVersion.set(JavaLanguageVersion.of(17)) }
Action<JavaToolchainSpec> { languageVersion.set(JavaLanguageVersion.of(20)) }
}
}