[Build] Apply :idea:idea-gradle classpath modification on JPS build only
This modification is incompatible with Gradle configuration cache Relates to #KT-44611
This commit is contained in:
@@ -106,14 +106,16 @@ projectTest(parallel = false) {
|
|||||||
workingDir = rootDir
|
workingDir = rootDir
|
||||||
useAndroidSdk()
|
useAndroidSdk()
|
||||||
|
|
||||||
doFirst {
|
if (kotlinBuildProperties.isJpsBuildEnabled) {
|
||||||
val mainResourceDirPath = File(project.buildDir, "resources/main").absolutePath
|
doFirst {
|
||||||
sourceSets["test"].runtimeClasspath = sourceSets["test"].runtimeClasspath.filter { file ->
|
val mainResourceDirPath = File(project.buildDir, "resources/main").absolutePath
|
||||||
if (!file.absolutePath.contains(mainResourceDirPath)) {
|
sourceSets["test"].runtimeClasspath = sourceSets["test"].runtimeClasspath.filter { file ->
|
||||||
true
|
if (!file.absolutePath.contains(mainResourceDirPath)) {
|
||||||
} else {
|
true
|
||||||
println("Remove `${file.path}` from the test runtime classpath")
|
} else {
|
||||||
false
|
println("Remove `${file.path}` from the test runtime classpath")
|
||||||
|
false
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user