aboutsummaryrefslogtreecommitdiff
path: root/runtime
diff options
context:
space:
mode:
authorshedaniel <daniel@shedaniel.me>2021-06-01 03:15:16 +0800
committershedaniel <daniel@shedaniel.me>2021-06-01 03:15:16 +0800
commit9980229533d250b812ae395780109636717da56a (patch)
tree22bd24ce18b86ed94c85b629ce1b41d06650387c /runtime
parent81dfe46b423b4dcf854e8901cebe09e96570f97b (diff)
downloadRoughlyEnoughItems-9980229533d250b812ae395780109636717da56a.tar.gz
RoughlyEnoughItems-9980229533d250b812ae395780109636717da56a.tar.bz2
RoughlyEnoughItems-9980229533d250b812ae395780109636717da56a.zip
Generate fake jars for fabric loom
Diffstat (limited to 'runtime')
-rw-r--r--runtime/build.gradle10
1 files changed, 9 insertions, 1 deletions
diff --git a/runtime/build.gradle b/runtime/build.gradle
index 1a32a7a10..44abf331b 100644
--- a/runtime/build.gradle
+++ b/runtime/build.gradle
@@ -30,11 +30,19 @@ java {
withSourcesJar()
}
+task fakeJar(type: Jar, dependsOn: remapJar) {
+ from remapJar.archiveFile.map { zipTree(it) }
+ from(rootProject.file("fake/fabric.mod.json")) {
+ into ""
+ }
+ archiveClassifier.set "fake"
+}
+
publishing {
publications {
mavenCommon(MavenPublication) {
artifactId = rootProject.name + "-" + project.name
- artifact remapJar
+ artifact(fakeJar) { classifier null }
afterEvaluate {
artifact(remapSourcesJar.output) {
builtBy remapSourcesJar