aboutsummaryrefslogtreecommitdiff
path: root/fabric/build.gradle
diff options
context:
space:
mode:
Diffstat (limited to 'fabric/build.gradle')
-rw-r--r--fabric/build.gradle7
1 files changed, 4 insertions, 3 deletions
diff --git a/fabric/build.gradle b/fabric/build.gradle
index 1c6ddb6f9..efba53113 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])
}
}
}