Skip to content

Commit 854ea11

Browse files
authored
Enable toolchain auto downloading (#238)
Use foojay conversion plugin for toolchain provisioning
1 parent 9731618 commit 854ea11

File tree

3 files changed

+12
-0
lines changed

3 files changed

+12
-0
lines changed

build-logic/build.gradle.kts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,7 @@ dependencies {
1515
implementation(libs.kotlin.gradle.plugin)
1616
implementation(libs.animalsniffer.gradle.plugin)
1717
}
18+
19+
kotlin {
20+
jvmToolchain(JavaLanguageVersion.of(libs.versions.java.get()).asInt())
21+
}

build-logic/settings.gradle.kts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@
33
* Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE.txt file.
44
*/
55

6+
plugins {
7+
id("org.gradle.toolchains.foojay-resolver-convention") version ("0.7.0")
8+
}
9+
610
dependencyResolutionManagement {
711
versionCatalogs {
812
create("libs") {

settings.gradle.kts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,10 @@ pluginManagement {
1313
}
1414
}
1515

16+
plugins {
17+
id("org.gradle.toolchains.foojay-resolver-convention") version ("0.7.0")
18+
}
19+
1620
rootProject.name = "kotlinx-io"
1721

1822
include(":kotlinx-io-core")

0 commit comments

Comments
 (0)