mirror of
https://github.com/darksaid98/Carbon.git
synced 2026-12-04 14:38:49 +00:00
Fix fabric build pt 2
This commit is contained in:
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()
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user