]> git.lizzy.rs Git - LightOverlay.git/blobdiff - fabric/build.gradle
21w41a
[LightOverlay.git] / fabric / build.gradle
index 72e531bca9e479a023b81e8dd9ffbdc7b9681f57..390e370f39c67d21e90472a17162c13f8123ec20 100755 (executable)
@@ -11,6 +11,14 @@ architectury {
     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
@@ -18,10 +26,6 @@ processResources {
     inputs.property "version", project.version
 }
 
-configurations {
-    shadowCommon
-}
-
 dependencies {
     minecraft "com.mojang:minecraft:${rootProject.architectury.minecraft}"
     mappings minecraft.officialMojangMappings()
@@ -36,10 +40,7 @@ dependencies {
     }
     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")) {
@@ -49,11 +50,15 @@ dependencies {
 
 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"
+}