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