plugins { `java-library` } group = "io.gitlab.jfronny" version = "1.0-SNAPSHOT" repositories { mavenCentral() maven("https://maven.frohnmeyer-wds.de/artifacts") } dependencies { 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") 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 { options.compilerArgs.addAll(arrayOf("-Xplugin:Manifold no-bootstrap", "--module-path", classpath.asPath)) } } else { tasks.withType { options.compilerArgs.addAll(arrayOf("-Xplugin:Manifold no-bootstrap")) } }