From 3888befb3c38b9b10bd3f0c1446f13e9861b95e7 Mon Sep 17 00:00:00 2001 From: shedaniel Date: Sat, 20 Nov 2021 15:03:05 +0800 Subject: Add @REIPlugin annotation to the forge api artifact --- api/build.gradle | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'api/build.gradle') diff --git a/api/build.gradle b/api/build.gradle index 7939ee6a5..f2a8a50d2 100644 --- a/api/build.gradle +++ b/api/build.gradle @@ -26,6 +26,17 @@ 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 "" + } + from(rootProject.file("fake/REIPlugin.class")) { + into "me/shedaniel/rei/forge" + } + classifier "fake-forge" +} + artifacts { apiElements(fakeJar) runtimeElements(fakeJar) -- cgit