Automatic libjf-config-compiler-plugin-v2 setup
This commit is contained in:
parent
ce189f2087
commit
e66699d10a
|
@ -1,2 +1,2 @@
|
|||
group = "io.gitlab.jfronny"
|
||||
version = "1.2-SNAPSHOT"
|
||||
version = "1.3-SNAPSHOT"
|
||||
|
|
|
@ -20,8 +20,11 @@ allprojects {
|
|||
apply(plugin = "jf.maven-publish")
|
||||
apply(plugin = "lom")
|
||||
|
||||
var modId: String?
|
||||
|
||||
base {
|
||||
archivesName.set(prop("archives_base_name", archivesName.get()))
|
||||
modId = prop("archives_base_name", archivesName.get())
|
||||
archivesName.set(modId)
|
||||
}
|
||||
|
||||
lom {
|
||||
|
@ -31,6 +34,16 @@ allprojects {
|
|||
else mojmap()
|
||||
}
|
||||
|
||||
if (hasProperty("libjf_version")) {
|
||||
dependencies {
|
||||
annotationProcessor("io.gitlab.jfronny.libjf:libjf-config-compiler-plugin-v2:${prop("libjf_version")}")
|
||||
}
|
||||
|
||||
tasks.withType<JavaCompile> {
|
||||
options.compilerArgs.add("-AmodId=$modId")
|
||||
}
|
||||
}
|
||||
|
||||
afterEvaluate {
|
||||
self.allprojects.forEach { sub ->
|
||||
if (sub != this && sub.name !in nonModSubprojects) {
|
||||
|
|
Loading…
Reference in New Issue