aboutsummaryrefslogtreecommitdiff
path: root/api
diff options
context:
space:
mode:
authorshedaniel <daniel@shedaniel.me>2022-09-25 18:46:22 +0800
committershedaniel <daniel@shedaniel.me>2022-09-25 18:47:53 +0800
commitf05a50204ad710ced0b1b78ec69c0b954f5e2986 (patch)
treede5cdbc7b3c07cc154a4968343d653c707469352 /api
parent6ad403672ef58063904e196fb5947c2de24b9c8f (diff)
downloadRoughlyEnoughItems-f05a50204ad710ced0b1b78ec69c0b954f5e2986.tar.gz
RoughlyEnoughItems-f05a50204ad710ced0b1b78ec69c0b954f5e2986.tar.bz2
RoughlyEnoughItems-f05a50204ad710ced0b1b78ec69c0b954f5e2986.zip
Fix forge api and default plugin publishing and fix #1055
Diffstat (limited to 'api')
-rw-r--r--api/build.gradle17
1 files changed, 11 insertions, 6 deletions
diff --git a/api/build.gradle b/api/build.gradle
index 9cbc69fa1..23ee2975c 100644
--- a/api/build.gradle
+++ b/api/build.gradle
@@ -1,3 +1,5 @@
+import net.fabricmc.loom.task.RemapJarTask
+
archivesBaseName = rootProject.name + "-" + project.name
dependencies {
@@ -22,13 +24,16 @@ task fakeJar(type: Jar, dependsOn: remapJar) {
classifier null
}
-task fakeForgeJar(type: Jar, dependsOn: remapJar) {
- from remapJar.archiveFile.map { zipTree(it) }
- from(rootProject.file("fake/fabric.mod.json")) {
- into ""
+task fakeForgeJar(type: Jar, dependsOn: jar) {
+ from jar.archiveFile.map { zipTree(it) }
+ from(rootProject.file("fake/mods.toml")) {
+ into "META-INF"
}
- from(rootProject.file("fake/REIPlugin.class")) {
- into "me/shedaniel/rei/forge"
+ ["REIPlugin", "REIPluginClient", "REIPluginCommon", "REIPluginDedicatedServer",
+ "REIPluginLoader", "REIPluginLoaderClient", "REIPluginLoaderCommon", "REIPluginLoaderDedicatedServer"].each {
+ from(rootProject.file("fake/$it.class")) {
+ into "me/shedaniel/rei/forge"
+ }
}
classifier "fake-forge"
}