Scripts/convention/src/main/kotlin/jf.manifold.gradle.kts
JFronny c45a5badd2
Some checks failed
ci/woodpecker/push/gradle Pipeline failed
ci/woodpecker/push/pages Pipeline was successful
bump deps
2023-06-09 14:21:56 +02:00

28 lines
879 B
Plaintext

import io.gitlab.jfronny.scripts.earlyAfterEvaluate
plugins {
id("jf.earlyafterevaluate")
`java-library`
}
val manifoldVersion by extra("2023.1.10")
dependencies {
implementation("systems.manifold:manifold-props-rt:$manifoldVersion")
testAnnotationProcessor(annotationProcessor("systems.manifold:manifold-ext:$manifoldVersion")!!)
testAnnotationProcessor(annotationProcessor("systems.manifold:manifold-props:$manifoldVersion")!!)
}
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"))
}
}
}