7789054547
^KT-46972 Fixed
34 lines
752 B
Kotlin
34 lines
752 B
Kotlin
import org.apache.tools.ant.filters.ReplaceTokens
|
|
|
|
plugins {
|
|
java
|
|
id("jps-compatible")
|
|
}
|
|
|
|
// This module does not apply Kotlin plugin, so we are setting toolchain via
|
|
// java extension
|
|
java {
|
|
toolchain {
|
|
languageVersion.set(JavaLanguageVersion.of(6))
|
|
}
|
|
}
|
|
|
|
val kotlinVersion: String by rootProject.extra
|
|
|
|
dependencies {
|
|
compileOnly("org.jetbrains:annotations:13.0")
|
|
}
|
|
|
|
sourceSets {
|
|
"main" { projectDefault() }
|
|
"test" {}
|
|
}
|
|
|
|
tasks.named<ProcessResources>("processResources") {
|
|
val kotlinVersionLocal = kotlinVersion
|
|
inputs.property("compilerVersion", kotlinVersionLocal)
|
|
filesMatching("META-INF/compiler.version") {
|
|
filter<ReplaceTokens>("tokens" to mapOf("snapshot" to kotlinVersionLocal))
|
|
}
|
|
}
|