fix(jfmod): support using separate version of libjf for config compiler
All checks were successful
ci/woodpecker/push/pages Pipeline was successful
ci/woodpecker/push/gradle Pipeline was successful

This commit is contained in:
Johannes Frohnmeyer 2024-09-30 19:57:52 +02:00
parent 8349ef9abe
commit 2d82425b6d
Signed by: Johannes
GPG Key ID: E76429612C2929F4
2 changed files with 2 additions and 1 deletions

View File

@ -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

View File

@ -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)