mirror of
https://github.com/darksaid98/Carbon.git
synced 2026-12-02 06:28:54 +00:00
Fix fabric build
This commit is contained in:
1 parent
f7622a28ee
commit
5c93c4b217
3 files changed
+12
-4
No files matched your search
@@ -29,6 +29,12 @@ fun ShadowJar.standardRelocations() {
|
||||
relocateDependency("it.unimi.dsi.fastutil")
|
||||
}
|
||||
|
||||
fun ShadowJar.relocateGuice() {
|
||||
relocateDependency("com.google.inject")
|
||||
relocateDependency("org.aopalliance")
|
||||
relocateDependency("javax.inject")
|
||||
}
|
||||
|
||||
fun ShadowJar.configureShadowJar() {
|
||||
minimize()
|
||||
standardRelocations()
|
||||
|
||||
@@ -27,10 +27,7 @@ tasks {
|
||||
relocateDependency("io.papermc.lib")
|
||||
relocateDependency("io.leangen.geantyref")
|
||||
|
||||
// Guice
|
||||
relocateDependency("com.google.inject")
|
||||
relocateDependency("org.aopalliance")
|
||||
relocateDependency("javax.inject")
|
||||
relocateGuice()
|
||||
}
|
||||
runServer {
|
||||
minecraftVersion("1.17.1")
|
||||
|
||||
@@ -18,6 +18,9 @@ dependencies {
|
||||
|
||||
carbon(projects.carbonchatCommon) {
|
||||
exclude("net.kyori", "adventure-api")
|
||||
exclude("net.kyori", "adventure-text-serializer-gson")
|
||||
exclude("cloud.commandframework")
|
||||
exclude("io.leangen.geantyref")
|
||||
}
|
||||
|
||||
modImplementation(libs.cloudFabric)
|
||||
@@ -37,6 +40,8 @@ tasks {
|
||||
shadowJar {
|
||||
configurations = arrayListOf(carbon) as List<FileCollection>
|
||||
archiveClassifier.set("dev-all")
|
||||
|
||||
relocateGuice()
|
||||
}
|
||||
remapJar {
|
||||
archiveClassifier.set(null as String?)
|
||||
|
||||
Reference in new issue
Block a user