27956adf3f
* Make `clean` task compatible with configuration cache * Make Java compile instrumentation compatible with configuration cache * Make settings.gradle compatible with configuration cache * Initial work on making IntelliJInstrumentCodeTask compatible with configuration cache * Make writeStdlibVersion task compatible with configuration cache * Copy some properties to not capture it's owning object into lambda to support configuration cache Relates to #KT-44611
33 lines
734 B
Kotlin
33 lines
734 B
Kotlin
import org.apache.tools.ant.filters.ReplaceTokens
|
|
|
|
plugins {
|
|
java
|
|
id("jps-compatible")
|
|
}
|
|
|
|
jvmTarget = "1.6"
|
|
javaHome = rootProject.extra["JDK_16"] as String
|
|
|
|
val kotlinVersion: String by rootProject.extra
|
|
|
|
dependencies {
|
|
compileOnly("org.jetbrains:annotations:13.0")
|
|
}
|
|
|
|
sourceSets {
|
|
"main" { projectDefault() }
|
|
"test" {}
|
|
}
|
|
|
|
tasks.withType<JavaCompile> {
|
|
sourceCompatibility = "1.6"
|
|
targetCompatibility = "1.6"
|
|
}
|
|
|
|
tasks.named<ProcessResources>("processResources") {
|
|
val kotlinVersionLocal = kotlinVersion
|
|
inputs.property("compilerVersion", kotlinVersionLocal)
|
|
filesMatching("META-INF/compiler.version") {
|
|
filter<ReplaceTokens>("tokens" to mapOf("snapshot" to kotlinVersionLocal))
|
|
}
|
|
} |