ef169aa12b
tools.jar from JDK has different public api on different platforms which makes impossible to reuse caches for tasks which depend on it. Since we can't compile against those classes & stay cross-platform anyway, we may just exclude them from compile classpath. This should make tools.jar compatible at least within one build of JDK for different platforms
24 lines
417 B
Kotlin
24 lines
417 B
Kotlin
plugins {
|
|
kotlin("jvm")
|
|
id("jps-compatible")
|
|
}
|
|
|
|
dependencies {
|
|
compile(kotlinStdlib())
|
|
compileOnly(project(":dependencies:tools-jar-api"))
|
|
|
|
testCompile(commonDep("junit:junit"))
|
|
testCompileOnly(project(":dependencies:tools-jar-api"))
|
|
}
|
|
|
|
sourceSets {
|
|
"main" { projectDefault() }
|
|
"test" { projectDefault() }
|
|
}
|
|
|
|
testsJar {}
|
|
|
|
projectTest {
|
|
workingDir = rootDir
|
|
dependsOn(":dist")
|
|
} |