mirror of
https://github.com/darksaid98/Carbon.git
synced 2026-12-04 14:38:49 +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")
|
relocateDependency("it.unimi.dsi.fastutil")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
fun ShadowJar.relocateGuice() {
|
||||||
|
relocateDependency("com.google.inject")
|
||||||
|
relocateDependency("org.aopalliance")
|
||||||
|
relocateDependency("javax.inject")
|
||||||
|
}
|
||||||
|
|
||||||
fun ShadowJar.configureShadowJar() {
|
fun ShadowJar.configureShadowJar() {
|
||||||
minimize()
|
minimize()
|
||||||
standardRelocations()
|
standardRelocations()
|
||||||
|
|||||||
@@ -27,10 +27,7 @@ tasks {
|
|||||||
relocateDependency("io.papermc.lib")
|
relocateDependency("io.papermc.lib")
|
||||||
relocateDependency("io.leangen.geantyref")
|
relocateDependency("io.leangen.geantyref")
|
||||||
|
|
||||||
// Guice
|
relocateGuice()
|
||||||
relocateDependency("com.google.inject")
|
|
||||||
relocateDependency("org.aopalliance")
|
|
||||||
relocateDependency("javax.inject")
|
|
||||||
}
|
}
|
||||||
runServer {
|
runServer {
|
||||||
minecraftVersion("1.17.1")
|
minecraftVersion("1.17.1")
|
||||||
|
|||||||
@@ -18,6 +18,9 @@ dependencies {
|
|||||||
|
|
||||||
carbon(projects.carbonchatCommon) {
|
carbon(projects.carbonchatCommon) {
|
||||||
exclude("net.kyori", "adventure-api")
|
exclude("net.kyori", "adventure-api")
|
||||||
|
exclude("net.kyori", "adventure-text-serializer-gson")
|
||||||
|
exclude("cloud.commandframework")
|
||||||
|
exclude("io.leangen.geantyref")
|
||||||
}
|
}
|
||||||
|
|
||||||
modImplementation(libs.cloudFabric)
|
modImplementation(libs.cloudFabric)
|
||||||
@@ -37,6 +40,8 @@ tasks {
|
|||||||
shadowJar {
|
shadowJar {
|
||||||
configurations = arrayListOf(carbon) as List<FileCollection>
|
configurations = arrayListOf(carbon) as List<FileCollection>
|
||||||
archiveClassifier.set("dev-all")
|
archiveClassifier.set("dev-all")
|
||||||
|
|
||||||
|
relocateGuice()
|
||||||
}
|
}
|
||||||
remapJar {
|
remapJar {
|
||||||
archiveClassifier.set(null as String?)
|
archiveClassifier.set(null as String?)
|
||||||
|
|||||||
Reference in new issue
Block a user