aboutsummaryrefslogtreecommitdiff
path: root/forge/build.gradle
diff options
context:
space:
mode:
authorshedaniel <daniel@shedaniel.me>2024-10-26 17:03:44 +0800
committershedaniel <daniel@shedaniel.me>2024-10-26 17:04:27 +0800
commita8b69f3c95ebbf615c75b09871f09e976836a948 (patch)
tree89e86954d80ca0aceffc7863c6d26c786c4862c1 /forge/build.gradle
parent106896bce86f1984df7be0bda33aba93c8815c4a (diff)
parentd0acdeaf8e855627086ed1257c6c98a0dfd7f670 (diff)
downloadRoughlyEnoughItems-14.x-1.20.4.tar.gz
RoughlyEnoughItems-14.x-1.20.4.tar.bz2
RoughlyEnoughItems-14.x-1.20.4.zip
Merge remote-tracking branch 'origin/12.x-1.20' into 14.x-1.20.414.x-1.20.4
Diffstat (limited to 'forge/build.gradle')
-rw-r--r--forge/build.gradle7
1 files changed, 4 insertions, 3 deletions
diff --git a/forge/build.gradle b/forge/build.gradle
index b7f274e61..53a31cf0c 100644
--- a/forge/build.gradle
+++ b/forge/build.gradle
@@ -210,15 +210,16 @@ publishing {
project.afterEvaluate {
def project = project(":" + projectName)
remapSrg.inputFile = project.fakeForgeJar.archiveFile
- publication.artifact(remapSrg) { classifier null }
+ def normalArtifact, sourceArtifact
+ publication.artifact(remapSrg) { classifier null; normalArtifact = it }
publication.artifact(remapSrgSourcesJar) {
builtBy remapSrgSourcesJar
classifier "sources"
+ sourceArtifact = it
}
- // Hack to inherit the dependencies without inheriting the artifacts
- publication.setArtifacts(publication.artifacts)
from components.java
+ publication.setArtifacts([normalArtifact, sourceArtifact])
}
}
}