fabric()
}
+configurations {
+ common
+ shadowCommon // Don't use shadow from the shadow plugin because we don't want IDEA to index this.
+ compileClasspath.extendsFrom common
+ runtimeClasspath.extendsFrom common
+ developmentFabric.extendsFrom common
+}
+
processResources {
filesMatching("fabric.mod.json") {
expand "version": project.version
inputs.property "version", project.version
}
-configurations {
- shadowCommon
-}
-
dependencies {
minecraft "com.mojang:minecraft:${rootProject.architectury.minecraft}"
mappings minecraft.officialMojangMappings()
}
modImplementation("dev.architectury:architectury-fabric:${rootProject.architectury_version}")
- implementation(project(path: ":common")) {
- transitive = false
- }
- developmentFabric(project(path: ":common")) {
+ common(project(path: ":common", configuration: "dev")) {
transitive = false
}
shadowCommon(project(path: ":common", configuration: "transformProductionFabric")) {
shadowJar {
configurations = [project.configurations.shadowCommon]
- classifier "shadow"
+ classifier "dev-shadow"
}
remapJar {
dependsOn(shadowJar)
input.set(shadowJar.archivePath)
- archiveClassifier = "fabric"
-}
\ No newline at end of file
+ classifier null
+}
+
+jar {
+ classifier "dev"
+}