Plz
This commit is contained in:
parent
411469765b
commit
b443d6f038
|
@ -1,4 +1,7 @@
|
||||||
|
import io.gitlab.jfronny.scripts.earlyAfterEvaluate
|
||||||
|
|
||||||
plugins {
|
plugins {
|
||||||
|
id("jf.earlyafterevaluate")
|
||||||
`java-library`
|
`java-library`
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -11,12 +14,14 @@ dependencies {
|
||||||
testAnnotationProcessor(annotationProcessor("systems.manifold:manifold-props:$manifoldVersion")!!)
|
testAnnotationProcessor(annotationProcessor("systems.manifold:manifold-props:$manifoldVersion")!!)
|
||||||
}
|
}
|
||||||
|
|
||||||
if (sourceSets.main.get().allJava.files.any {it.name == "module-info.java"}) {
|
earlyAfterEvaluate {
|
||||||
tasks.withType<JavaCompile> {
|
if (sourceSets.main.get().allJava.files.any {it.name == "module-info.java"}) {
|
||||||
options.compilerArgs.addAll(arrayOf("-Xplugin:Manifold no-bootstrap", "--module-path", classpath.asPath))
|
tasks.withType<JavaCompile> {
|
||||||
|
options.compilerArgs.addAll(arrayOf("-Xplugin:Manifold no-bootstrap", "--module-path", classpath.asPath))
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
tasks.withType<JavaCompile> {
|
||||||
|
options.compilerArgs.addAll(arrayOf("-Xplugin:Manifold no-bootstrap"))
|
||||||
|
}
|
||||||
}
|
}
|
||||||
} else {
|
}
|
||||||
tasks.withType<JavaCompile> {
|
|
||||||
options.compilerArgs.addAll(arrayOf("-Xplugin:Manifold no-bootstrap"))
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
Loading…
Reference in New Issue