aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorshedaniel <daniel@shedaniel.me>2024-09-24 11:34:29 +0800
committershedaniel <daniel@shedaniel.me>2024-09-24 11:34:29 +0800
commitadf5fd11cb45fdcb5ffed90571d68bb406f36f19 (patch)
tree499d01a342b31350a5d9d6efc5ea68c62584ed6c
parentab5e4c25b4938a00c87029b3b692bb78f5a14017 (diff)
downloadRoughlyEnoughItems-adf5fd11cb45fdcb5ffed90571d68bb406f36f19.tar.gz
RoughlyEnoughItems-adf5fd11cb45fdcb5ffed90571d68bb406f36f19.tar.bz2
RoughlyEnoughItems-adf5fd11cb45fdcb5ffed90571d68bb406f36f19.zip
Fix dependencies in subproject -fabric & -forge maven publications
-rw-r--r--fabric/build.gradle4
-rw-r--r--forge/build.gradle4
2 files changed, 8 insertions, 0 deletions
diff --git a/fabric/build.gradle b/fabric/build.gradle
index badb04d14..1c6ddb6f9 100644
--- a/fabric/build.gradle
+++ b/fabric/build.gradle
@@ -106,6 +106,10 @@ publishing {
builtBy remapSourcesJarTask
classifier "sources"
}
+
+ // Hack to inherit the dependencies without inheriting the artifacts
+ publication.setArtifacts(publication.artifacts)
+ from components.java
}
}
}
diff --git a/forge/build.gradle b/forge/build.gradle
index bdc5027af..63a0728be 100644
--- a/forge/build.gradle
+++ b/forge/build.gradle
@@ -215,6 +215,10 @@ publishing {
builtBy remapSrgSourcesJar
classifier "sources"
}
+
+ // Hack to inherit the dependencies without inheriting the artifacts
+ publication.setArtifacts(publication.artifacts)
+ from components.java
}
}
}