diff options
| author | shedaniel <daniel@shedaniel.me> | 2024-10-26 17:05:08 +0800 |
|---|---|---|
| committer | shedaniel <daniel@shedaniel.me> | 2024-10-26 17:05:08 +0800 |
| commit | f8bd895afcf87805c258ee543795391b1e361054 (patch) | |
| tree | b6dd7ed71d7cac47efd4675dbea19cd2288e2798 /forge/build.gradle | |
| parent | 0dd7d2b83c1b9217e7f48b4e7c07f338b00302dd (diff) | |
| parent | a8b69f3c95ebbf615c75b09871f09e976836a948 (diff) | |
| download | RoughlyEnoughItems-15.x-1.20.5.tar.gz RoughlyEnoughItems-15.x-1.20.5.tar.bz2 RoughlyEnoughItems-15.x-1.20.5.zip | |
Merge remote-tracking branch 'origin/14.x-1.20.4' into 15.x-1.20.515.x-1.20.5
Diffstat (limited to 'forge/build.gradle')
| -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 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]) } } } |
