aboutsummaryrefslogtreecommitdiff
path: root/forge
diff options
context:
space:
mode:
authorshedaniel <daniel@shedaniel.me>2024-10-26 17:05:57 +0800
committershedaniel <daniel@shedaniel.me>2024-10-26 17:06:56 +0800
commit2f2be7e3b8e5d99cf7a76ce51c13ad01be8ca309 (patch)
treeaa513e4b28e4200389701a047ea980152448115d /forge
parentddb48e2032d1986709cad973067693eec3118504 (diff)
parent7dd36277569596092010a9a5148e34cec5b94d3b (diff)
downloadRoughlyEnoughItems-2f2be7e3b8e5d99cf7a76ce51c13ad01be8ca309.tar.gz
RoughlyEnoughItems-2f2be7e3b8e5d99cf7a76ce51c13ad01be8ca309.tar.bz2
RoughlyEnoughItems-2f2be7e3b8e5d99cf7a76ce51c13ad01be8ca309.zip
Mark publication
Diffstat (limited to 'forge')
-rw-r--r--forge/build.gradle7
1 files changed, 4 insertions, 3 deletions
diff --git a/forge/build.gradle b/forge/build.gradle
index 811d03a71..9879969ee 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])
}
}
}