Migrate repo to use JVM toolchains Gradle feature.

^KT-46972 Fixed
This commit is contained in:
Yahor Berdnikau
2021-06-29 15:42:02 +02:00
committed by Space
parent 08d831934a
commit 7789054547
67 changed files with 424 additions and 723 deletions
+2 -3
View File
@@ -5,6 +5,7 @@ import java.util.zip.ZipFile
plugins {
base
`java-base`
}
val runtimeElements by configurations.creating {
@@ -15,10 +16,8 @@ val runtimeElements by configurations.creating {
}
}
val JDK_18: String by rootProject.extra
val toolsJarStubs by tasks.registering {
val toolsJarFile = toolsJarFile(jdkHome = File(JDK_18)) ?: error("Couldn't find tools.jar in $JDK_18")
val toolsJarFile = toolsJar().singleFile
inputs.file(toolsJarFile)
val outDir = buildDir.resolve(name)