diff options
| author | shedaniel <daniel@shedaniel.me> | 2024-10-26 17:02:24 +0800 |
|---|---|---|
| committer | shedaniel <daniel@shedaniel.me> | 2024-10-26 17:02:24 +0800 |
| commit | 659f87a0a131f080acc94a106b8f7d81a056982b (patch) | |
| tree | d2f735262f17ada96b164d109a00a00701c85471 /forge | |
| parent | adf5fd11cb45fdcb5ffed90571d68bb406f36f19 (diff) | |
| download | RoughlyEnoughItems-9.x-1.19.tar.gz RoughlyEnoughItems-9.x-1.19.tar.bz2 RoughlyEnoughItems-9.x-1.19.zip | |
Fix #17409.x-1.19
Diffstat (limited to 'forge')
| -rw-r--r-- | forge/build.gradle | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/forge/build.gradle b/forge/build.gradle index 63a0728be..8f91f7d3f 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]) } } } |
