Fix fabric build pt 2

This commit is contained in:
Jason Penilla authored and Josua Parks committed 2021-11-16 20:46:15 -08:00
1 parent 5c93c4b217
commit 7948481450
6 files changed
+35 -6

No files matched your search

@@ -3,6 +3,8 @@ plugins {
id("com.github.johnrengelman.shadow")
}
val shadowPlatform = extensions.create<CarbonShadowPlatformExtension>("carbonShadowPlatform", project)
tasks {
jar {
archiveClassifier.set("unshaded")
@@ -16,3 +18,14 @@ tasks {
extensions.configure<CarbonPlatformExtension> {
jarTask.set(tasks.shadowJar)
}
afterEvaluate {
tasks.shadowJar {
if (shadowPlatform.relocateGuice.get()) {
relocateGuice()
}
if (shadowPlatform.relocateCloud.get()) {
relocateCloud()
}
}
}