From 509184f5ce378d6f14eccb6d310806bb2a6aa3be Mon Sep 17 00:00:00 2001 From: Ran <43445785+RanCraftPlayz@users.noreply.github.com> Date: Mon, 12 Sep 2022 10:11:57 +0600 Subject: [PATCH] Shade the API using Forgix --- build.gradle | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/build.gradle b/build.gradle index 487674f1e..ad9359432 100644 --- a/build.gradle +++ b/build.gradle @@ -131,8 +131,13 @@ forgix { jarLocation = "build/libs/DistantHorizons-${rootProject.versionStr}.jar" } - removeDuplicate "com.seibel.lod.core" + custom { + projectName = "api" + jarLocation = "build/libs/DistantHorizons-API-${rootProject.versionStr}.jar" + } + removeDuplicate "com.seibel.lod.api" + removeDuplicate "com.seibel.lod.core" } architectury { @@ -243,7 +248,7 @@ subprojects { p -> // Add the api if (p != project(":api") && p != project(":core")) { - customModule(project(":api")) { + implementation(project(":api")) { // Remove Junit test libraries exclude group: "org.junit.jupiter", module: "junit-jupiter" exclude group: "org.junit.jupiter", module: "junit-jupiter-engine"