Skip to content

Commit dfedb0d

Browse files
committed
fix(build): use JVM toolchains
1 parent 7d61530 commit dfedb0d

File tree

6 files changed

+9
-8
lines changed

6 files changed

+9
-8
lines changed

.github/workflows/benchmark.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,7 @@ jobs:
1919
uses: actions/setup-java@5ffc13f4174014e2d4d4572b3d74c3fa61aeb2c2 # v3.11.0
2020
with:
2121
distribution: temurin
22-
java-version: 18
23-
cache: gradle
22+
java-version: 11
2423

2524
- name: Cache Kotlin/Native compiler
2625
uses: actions/cache@88522ab9f39a2ea568f7027eddc7d8d8bc9d59c8 # v3.3.1

.github/workflows/check.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,7 @@ jobs:
2525
uses: actions/setup-java@5ffc13f4174014e2d4d4572b3d74c3fa61aeb2c2 # v3.11.0
2626
with:
2727
distribution: temurin
28-
java-version: 18
29-
cache: gradle
28+
java-version: 11
3029

3130
- name: Cache Kotlin/Native compiler
3231
uses: actions/cache@88522ab9f39a2ea568f7027eddc7d8d8bc9d59c8 # v3.3.1

.github/workflows/release.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,7 @@ jobs:
3030
uses: actions/setup-java@5ffc13f4174014e2d4d4572b3d74c3fa61aeb2c2 # v3.11.0
3131
with:
3232
distribution: temurin
33-
java-version: 18
34-
cache: gradle
33+
java-version: 11
3534

3635
- name: Cache Kotlin/Native compiler
3736
uses: actions/cache@88522ab9f39a2ea568f7027eddc7d8d8bc9d59c8 # v3.3.1
@@ -61,8 +60,7 @@ jobs:
6160
uses: actions/setup-java@5ffc13f4174014e2d4d4572b3d74c3fa61aeb2c2 # v3.11.0
6261
with:
6362
distribution: temurin
64-
java-version: 18
65-
cache: gradle
63+
java-version: 11
6664

6765
- name: Cache Kotlin/Native compiler
6866
uses: actions/cache@88522ab9f39a2ea568f7027eddc7d8d8bc9d59c8 # v3.3.1

benchmark/build.gradle.kts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,4 +36,6 @@ kotlin {
3636
implementation(project(":"))
3737
implementation(libs.kotlinx.benchmark.runtime)
3838
}
39+
40+
jvmToolchain { languageVersion.set(JavaLanguageVersion.of(11)) }
3941
}

build.gradle.kts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,8 @@ kotlin {
9999
}
100100
}
101101
}
102+
103+
jvmToolchain { languageVersion.set(JavaLanguageVersion.of(11)) }
102104
}
103105

104106
tasks.withType<Test>().configureEach {

settings.gradle.kts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
rootProject.name = "sublime-fuzzy"
22

33
pluginManagement {
4+
plugins { id("org.gradle.toolchains.foojay-resolver-convention") version "0.5.0" }
45
repositories {
56
exclusiveContent {
67
forRepository(::gradlePluginPortal)

0 commit comments

Comments
 (0)