mirror of
https://github.com/PolyhedralDev/Terra.git
synced 2026-06-18 14:50:56 +00:00
begin splitting mixins into common
This commit is contained in:
@@ -1,8 +1,16 @@
|
||||
plugins {
|
||||
id("fabric-loom") version Versions.Fabric.loom
|
||||
id("dev.architectury.loom") version Versions.Mod.architecuryLoom
|
||||
id("architectury-plugin") version Versions.Mod.architectutyPlugin
|
||||
id("io.github.juuxel.loom-quiltflower") version Versions.Fabric.loomQuiltflower
|
||||
}
|
||||
|
||||
configurations {
|
||||
val common by creating
|
||||
create("shadowCommon")
|
||||
compileClasspath.get().extendsFrom(common)
|
||||
runtimeClasspath.get().extendsFrom(common)
|
||||
}
|
||||
|
||||
dependencies {
|
||||
shadedApi(project(":common:implementation:base"))
|
||||
|
||||
@@ -10,6 +18,9 @@ dependencies {
|
||||
"annotationProcessor"("net.fabricmc:sponge-mixin:${Versions.Fabric.mixin}")
|
||||
"annotationProcessor"("net.fabricmc:fabric-loom:${Versions.Fabric.loom}")
|
||||
|
||||
"common"(project(path = ":platforms:mod-common", configuration = "namedElements")) { isTransitive = false }
|
||||
"shadowCommon"(project(path = ":platforms:mod-common", configuration = "transformProductionFabric")) { isTransitive = false }
|
||||
|
||||
minecraft("com.mojang:minecraft:${Versions.Fabric.minecraft}")
|
||||
mappings("net.fabricmc:yarn:${Versions.Fabric.yarn}:v2")
|
||||
|
||||
@@ -28,7 +39,7 @@ dependencies {
|
||||
loom {
|
||||
accessWidenerPath.set(file("src/main/resources/terra.accesswidener"))
|
||||
mixin {
|
||||
defaultRefmapName.set("terra-refmap.json")
|
||||
defaultRefmapName.set("terra-fabric-refmap.json")
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user