Skip to content

Commit

Permalink
fix(build): use JVM toolchains
Browse files Browse the repository at this point in the history
  • Loading branch information
msfjarvis committed Jun 29, 2023
1 parent 7d61530 commit dfedb0d
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 8 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/benchmark.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,7 @@ jobs:
uses: actions/setup-java@5ffc13f4174014e2d4d4572b3d74c3fa61aeb2c2 # v3.11.0
with:
distribution: temurin
java-version: 18
cache: gradle
java-version: 11

- name: Cache Kotlin/Native compiler
uses: actions/cache@88522ab9f39a2ea568f7027eddc7d8d8bc9d59c8 # v3.3.1
Expand Down
3 changes: 1 addition & 2 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,7 @@ jobs:
uses: actions/setup-java@5ffc13f4174014e2d4d4572b3d74c3fa61aeb2c2 # v3.11.0
with:
distribution: temurin
java-version: 18
cache: gradle
java-version: 11

- name: Cache Kotlin/Native compiler
uses: actions/cache@88522ab9f39a2ea568f7027eddc7d8d8bc9d59c8 # v3.3.1
Expand Down
6 changes: 2 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,7 @@ jobs:
uses: actions/setup-java@5ffc13f4174014e2d4d4572b3d74c3fa61aeb2c2 # v3.11.0
with:
distribution: temurin
java-version: 18
cache: gradle
java-version: 11

- name: Cache Kotlin/Native compiler
uses: actions/cache@88522ab9f39a2ea568f7027eddc7d8d8bc9d59c8 # v3.3.1
Expand Down Expand Up @@ -61,8 +60,7 @@ jobs:
uses: actions/setup-java@5ffc13f4174014e2d4d4572b3d74c3fa61aeb2c2 # v3.11.0
with:
distribution: temurin
java-version: 18
cache: gradle
java-version: 11

- name: Cache Kotlin/Native compiler
uses: actions/cache@88522ab9f39a2ea568f7027eddc7d8d8bc9d59c8 # v3.3.1
Expand Down
2 changes: 2 additions & 0 deletions benchmark/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,6 @@ kotlin {
implementation(project(":"))
implementation(libs.kotlinx.benchmark.runtime)
}

jvmToolchain { languageVersion.set(JavaLanguageVersion.of(11)) }
}
2 changes: 2 additions & 0 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,8 @@ kotlin {
}
}
}

jvmToolchain { languageVersion.set(JavaLanguageVersion.of(11)) }
}

tasks.withType<Test>().configureEach {
Expand Down
1 change: 1 addition & 0 deletions settings.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
rootProject.name = "sublime-fuzzy"

pluginManagement {
plugins { id("org.gradle.toolchains.foojay-resolver-convention") version "0.5.0" }
repositories {
exclusiveContent {
forRepository(::gradlePluginPortal)
Expand Down

0 comments on commit dfedb0d

Please sign in to comment.