Add convention script for manifold
This commit is contained in:
parent
20cd8e7d7f
commit
411469765b
|
@ -0,0 +1,22 @@
|
|||
plugins {
|
||||
`java-library`
|
||||
}
|
||||
|
||||
val manifoldVersion by extra("2022.1.27")
|
||||
|
||||
dependencies {
|
||||
implementation("systems.manifold:manifold-props-rt:$manifoldVersion")
|
||||
|
||||
testAnnotationProcessor(annotationProcessor("systems.manifold:manifold-ext:$manifoldVersion")!!)
|
||||
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))
|
||||
}
|
||||
} else {
|
||||
tasks.withType<JavaCompile> {
|
||||
options.compilerArgs.addAll(arrayOf("-Xplugin:Manifold no-bootstrap"))
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue