aboutsummaryrefslogtreecommitdiff
path: root/fabric
diff options
context:
space:
mode:
authorshedaniel <daniel@shedaniel.me>2024-10-26 17:05:08 +0800
committershedaniel <daniel@shedaniel.me>2024-10-26 17:05:08 +0800
commitf8bd895afcf87805c258ee543795391b1e361054 (patch)
treeb6dd7ed71d7cac47efd4675dbea19cd2288e2798 /fabric
parent0dd7d2b83c1b9217e7f48b4e7c07f338b00302dd (diff)
parenta8b69f3c95ebbf615c75b09871f09e976836a948 (diff)
downloadRoughlyEnoughItems-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 'fabric')
-rw-r--r--fabric/build.gradle7
1 files changed, 4 insertions, 3 deletions
diff --git a/fabric/build.gradle b/fabric/build.gradle
index 280783862..a3e258053 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])
}
}
}