Migrate repo to use JVM toolchains Gradle feature.
^KT-46972 Fixed
This commit is contained in:
+2
-3
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user