Multiloader II

setup gradle
This commit is contained in:
techno-sam
2026-04-05 20:30:52 +02:00
parent 7d48193324
commit 581a236a6b
12 changed files with 469 additions and 195 deletions
+29
View File
@@ -0,0 +1,29 @@
architectury {
common {
for (p in rootProject.subprojects) {
if (p != project) {
this@common.add(p.name)
}
}
}
}
dependencies {
// We depend on fabric loader here to use the fabric @Environment annotations and get the mixin dependencies
// Do NOT use other classes from fabric loader
modImplementation(libs.fl)
// required for proper remapping and compiling
modCompileOnly(libs.fapi) // TODO: try removing this and seeing if that breaks stuff
modCompileOnly(libs.sodium.fabric)
compileOnly(annotationProcessor(libs.mixinextras.common.get())!!)!!
}
sourceSets.main {
resources { // include generated resources in resources
srcDir("src/generated/resources")
exclude(".cache/**")
}
}
@@ -12,8 +12,11 @@ authors = "${members}"
displayURL = "${homepage}"
logoFile = "assets/${modId}/icon.png"
[properties]
"connector:placeholder" = true
[[mixins]]
config="${modId}-common.mixins.json"
[[mixins]]
config="${modId}.mixins.json"
[[dependencies."${ modId }"]]
modId = "connector"