2022-11-15 20:35:00 +01:00
|
|
|
plugins {
|
2022-11-23 18:25:37 +01:00
|
|
|
`java-library`
|
2022-11-15 20:35:00 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
group = "io.gitlab.jfronny"
|
|
|
|
version = "1.0-SNAPSHOT"
|
|
|
|
|
|
|
|
repositories {
|
|
|
|
mavenCentral()
|
2022-11-23 18:25:37 +01:00
|
|
|
maven("https://maven.frohnmeyer-wds.de/artifacts")
|
2022-11-15 20:35:00 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
dependencies {
|
2022-11-23 18:25:37 +01:00
|
|
|
val manifoldVersion = "2022.1.27"
|
|
|
|
val gsonCompileVersion = "1.1-SNAPSHOT"
|
|
|
|
|
|
|
|
api("io.gitlab.jfronny.gson:gson-compile-core:$gsonCompileVersion")
|
|
|
|
compileOnly("io.gitlab.jfronny.gson:gson-compile-annotations:$gsonCompileVersion")
|
|
|
|
annotationProcessor("io.gitlab.jfronny.gson:gson-compile-processor:$gsonCompileVersion")
|
2022-11-15 20:35:00 +01:00
|
|
|
|
|
|
|
implementation("systems.manifold:manifold-props-rt:$manifoldVersion")
|
|
|
|
|
|
|
|
testAnnotationProcessor(annotationProcessor("systems.manifold:manifold-ext:$manifoldVersion")!!)
|
|
|
|
testAnnotationProcessor(annotationProcessor("systems.manifold:manifold-props:$manifoldVersion")!!)
|
|
|
|
testAnnotationProcessor(annotationProcessor("systems.manifold:manifold-strings:$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"))
|
|
|
|
}
|
|
|
|
}
|