fix(fabric-helper): build/run fixes

This commit is contained in:
2025-11-08 03:18:45 +01:00
parent 27c6539323
commit e77e1e47be
3 changed files with 7 additions and 1 deletions

View File

@@ -83,6 +83,7 @@ dependencies {
parchment("org.parchmentmc.data:parchment-$minecraftVersion:${getMcCatalogVersion("parchment")}@zip") parchment("org.parchmentmc.data:parchment-$minecraftVersion:${getMcCatalogVersion("parchment")}@zip")
}) })
modImplementation(mcCommonLibs.fabric.loader) modImplementation(mcCommonLibs.fabric.loader)
"modTestmodImplementation"(mcCommonLibs.fabric.loader)
compileOnly(libs.jspecify.annotations) compileOnly(libs.jspecify.annotations)

View File

@@ -19,7 +19,9 @@ dependencies {
listOf("fabric-networking-api-v1", "fabric-lifecycle-events-v1").forEach { listOf("fabric-networking-api-v1", "fabric-lifecycle-events-v1").forEach {
modTestmodImplementation(fabricApi.module(it, mcLibs.versions.fabric.api.get())) modTestmodImplementation(fabricApi.module(it, mcLibs.versions.fabric.api.get()))
} }
testmodImplementation(project(":tweed5-bundle")) testmodImplementation(project(":tweed5-logging", configuration = "minecraftModApiElements"))
testmodImplementation(project(":tweed5-bundle", configuration = "runtimeElements"))
testmodImplementation(project(":tweed5-bundle-pojo-weaving", configuration = "runtimeElements"))
testmodImplementation("de.siphalor.tweed5:tweed5-comment-loader-extension") testmodImplementation("de.siphalor.tweed5:tweed5-comment-loader-extension")
testmodImplementation("de.siphalor.tweed5:tweed5-serde-hjson") testmodImplementation("de.siphalor.tweed5:tweed5-serde-hjson")
testmodImplementation("de.siphalor.tweed5:tweed5-serde-gson") testmodImplementation("de.siphalor.tweed5:tweed5-serde-gson")

View File

@@ -1,11 +1,14 @@
package de.siphalor.tweed5.fabric.helper.testmod; package de.siphalor.tweed5.fabric.helper.testmod;
import de.siphalor.tweed5.commentloaderextension.api.CommentLoaderExtension;
import de.siphalor.tweed5.fabric.helper.api.DefaultTweedMinecraftWeaving; import de.siphalor.tweed5.fabric.helper.api.DefaultTweedMinecraftWeaving;
import de.siphalor.tweed5.weaver.pojo.api.annotation.CompoundWeaving; import de.siphalor.tweed5.weaver.pojo.api.annotation.CompoundWeaving;
import de.siphalor.tweed5.weaver.pojo.api.annotation.TweedExtension;
import de.siphalor.tweed5.weaver.pojoext.attributes.api.Attribute; import de.siphalor.tweed5.weaver.pojoext.attributes.api.Attribute;
import lombok.Data; import lombok.Data;
@DefaultTweedMinecraftWeaving @DefaultTweedMinecraftWeaving
@TweedExtension(CommentLoaderExtension.class)
@CompoundWeaving(namingFormat = "kebab_case") @CompoundWeaving(namingFormat = "kebab_case")
@Data @Data
public class TestModConfig { public class TestModConfig {