diff options
| author | shedaniel <daniel@shedaniel.me> | 2021-06-01 03:15:16 +0800 |
|---|---|---|
| committer | shedaniel <daniel@shedaniel.me> | 2021-06-01 03:15:16 +0800 |
| commit | 9980229533d250b812ae395780109636717da56a (patch) | |
| tree | 22bd24ce18b86ed94c85b629ce1b41d06650387c /default-plugin | |
| parent | 81dfe46b423b4dcf854e8901cebe09e96570f97b (diff) | |
| download | RoughlyEnoughItems-9980229533d250b812ae395780109636717da56a.tar.gz RoughlyEnoughItems-9980229533d250b812ae395780109636717da56a.tar.bz2 RoughlyEnoughItems-9980229533d250b812ae395780109636717da56a.zip | |
Generate fake jars for fabric loom
Diffstat (limited to 'default-plugin')
| -rw-r--r-- | default-plugin/build.gradle | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/default-plugin/build.gradle b/default-plugin/build.gradle index 77906c073..9662dd803 100644 --- a/default-plugin/build.gradle +++ b/default-plugin/build.gradle @@ -25,11 +25,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 |
