fix(jfmod): support using separate version of libjf for config compiler
This commit is contained in:
parent
8349ef9abe
commit
2d82425b6d
@ -9,6 +9,7 @@ import org.jetbrains.annotations.ApiStatus.Internal
|
|||||||
|
|
||||||
interface JfModExtension: LomExtension {
|
interface JfModExtension: LomExtension {
|
||||||
val libJfVersion: Property<String>
|
val libJfVersion: Property<String>
|
||||||
|
val configCompilerPluginVersion: Property<String>
|
||||||
val fabricApiVersion: Property<String>
|
val fabricApiVersion: Property<String>
|
||||||
@get:Nested val curseforge: CurseForge
|
@get:Nested val curseforge: CurseForge
|
||||||
@get:Nested val modrinth: Modrinth
|
@get:Nested val modrinth: Modrinth
|
||||||
|
@ -48,7 +48,7 @@ insertEarlyAfterEvaluate {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
val dep = testAnnotationProcessor(annotationProcessor(
|
val dep = testAnnotationProcessor(annotationProcessor(
|
||||||
"io.gitlab.jfronny.libjf:libjf-config-compiler-plugin-v2:${rootArgs.libJfVersion.get()}"
|
"io.gitlab.jfronny.libjf:libjf-config-compiler-plugin-v2:${rootArgs.configCompilerPluginVersion.orElse(rootArgs.libJfVersion).get()}"
|
||||||
)!!)!!
|
)!!)!!
|
||||||
if (lomArgs.isSplitSources) {
|
if (lomArgs.isSplitSources) {
|
||||||
clientAnnotationProcessor(dep)
|
clientAnnotationProcessor(dep)
|
||||||
|
Loading…
Reference in New Issue
Block a user