diff options
| author | shedaniel <daniel@shedaniel.me> | 2024-10-26 17:03:44 +0800 |
|---|---|---|
| committer | shedaniel <daniel@shedaniel.me> | 2024-10-26 17:04:27 +0800 |
| commit | a8b69f3c95ebbf615c75b09871f09e976836a948 (patch) | |
| tree | 89e86954d80ca0aceffc7863c6d26c786c4862c1 | |
| parent | 106896bce86f1984df7be0bda33aba93c8815c4a (diff) | |
| parent | d0acdeaf8e855627086ed1257c6c98a0dfd7f670 (diff) | |
| download | RoughlyEnoughItems-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
| -rw-r--r-- | fabric/build.gradle | 7 | ||||
| -rw-r--r-- | forge/build.gradle | 7 | ||||
| -rw-r--r-- | neoforge/build.gradle | 7 |
3 files changed, 12 insertions, 9 deletions
diff --git a/fabric/build.gradle b/fabric/build.gradle index 2af182e1d..f8a3ec93f 100644 --- a/fabric/build.gradle +++ b/fabric/build.gradle @@ -100,16 +100,17 @@ publishing { publication.artifactId = rootProject.name + "-" + projectName + "-fabric" project.afterEvaluate { def project = project(":" + projectName) - publication.artifact(project.fakeJar) { classifier null } + def normalArtifact, sourceArtifact + publication.artifact(project.fakeJar) { classifier null; normalArtifact = it } def remapSourcesJarTask = project.remapSourcesJar publication.artifact(remapSourcesJarTask) { builtBy remapSourcesJarTask classifier "sources" + sourceArtifact = it } - // Hack to inherit the dependencies without inheriting the artifacts - publication.setArtifacts(publication.artifacts) from components.java + publication.setArtifacts([normalArtifact, sourceArtifact]) } } } 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]) } } } diff --git a/neoforge/build.gradle b/neoforge/build.gradle index fe5f1ce10..2b08855b0 100644 --- a/neoforge/build.gradle +++ b/neoforge/build.gradle @@ -147,15 +147,16 @@ publishing { project.afterEvaluate { def project = project(":" + projectName) remapMojang.inputFile = project.fakeForgeJar.archiveFile - publication.artifact(remapMojang) { classifier null } + def normalArtifact, sourceArtifact + publication.artifact(remapMojang) { classifier null; normalArtifact = it } publication.artifact(remapMojangSourcesJar) { builtBy remapMojangSourcesJar classifier "sources" + sourceArtifact = it } - // Hack to inherit the dependencies without inheriting the artifacts - publication.setArtifacts(publication.artifacts) from components.java + publication.setArtifacts([normalArtifact, sourceArtifact]) } } } |
