Browse Source

Test: Don't set --module-path when not supported

modulesv2
weisj 3 years ago
parent
commit
ae4ec01bca
No known key found for this signature in database
GPG Key ID: 31124CB75461DA2A
  1. 5
      core/build.gradle.kts

5
core/build.gradle.kts

@ -38,9 +38,10 @@ dependencies {
}
fun JavaForkOptions.patchTestExecParams() {
if (!JavaVersion.current().isJava9Compatible || props.bool("skipModuleInfo")) return
val patchFiles = sourceSets.test.get().output.classesDirs +
sourceSets.test.get().resources.sourceDirectories +
sourceSets.main.get().resources.sourceDirectories
sourceSets.test.get().resources.sourceDirectories +
sourceSets.main.get().resources.sourceDirectories
val resourceDir = sourceSets.test.get().resources.sourceDirectories.singleFile
val testPackages = sourceSets.test.get().resources.asSequence().map { it.parentFile }.toSet().asSequence().map {
it.relativeTo(resourceDir).toPath().joinToString(separator = ".")

Loading…
Cancel
Save