2024-02-23 16:58:39 +00:00
|
|
|
plugins {
|
|
|
|
application
|
|
|
|
}
|
|
|
|
|
|
|
|
architectury {
|
|
|
|
platformSetupLoomIde()
|
|
|
|
fabric()
|
|
|
|
}
|
|
|
|
|
2024-03-19 22:05:30 +00:00
|
|
|
val includeTransitive: Configuration = configurations.getByName("includeTransitive")
|
|
|
|
|
2024-02-23 16:58:39 +00:00
|
|
|
dependencies {
|
|
|
|
modImplementation(libs.fabric.loader)
|
|
|
|
modApi(libs.fabric.api)
|
|
|
|
|
|
|
|
api(project(":mod", configuration = "namedElements"))
|
|
|
|
shadow(project(path = ":mod", configuration = "transformProductionFabric")) {
|
|
|
|
isTransitive = false
|
|
|
|
}
|
2024-03-19 22:05:30 +00:00
|
|
|
shadow(projects.core) { isTransitive = false }
|
|
|
|
includeTransitive(projects.core)
|
|
|
|
|
|
|
|
// These are NOT transitively included, and instead shadowed + relocated.
|
|
|
|
// Avoids fabric complaining about non-SemVer versioning
|
|
|
|
shadow(libs.protocol.connection) { isTransitive = false }
|
|
|
|
shadow(libs.protocol.common) { isTransitive = false }
|
|
|
|
shadow(libs.protocol.codec) { isTransitive = false }
|
2024-07-24 21:06:59 +00:00
|
|
|
shadow(libs.minecraftauth) { isTransitive = false }
|
2024-03-19 22:05:30 +00:00
|
|
|
shadow(libs.raknet) { isTransitive = false }
|
2024-02-23 16:58:39 +00:00
|
|
|
|
2024-03-19 22:05:30 +00:00
|
|
|
// Consequences of shading + relocating mcauthlib: shadow/relocate mcpl!
|
|
|
|
shadow(libs.mcprotocollib) { isTransitive = false }
|
|
|
|
|
|
|
|
// Since we also relocate cloudburst protocol: shade erosion common
|
|
|
|
shadow(libs.erosion.common) { isTransitive = false }
|
|
|
|
|
2024-04-13 22:16:26 +00:00
|
|
|
// Let's shade in our own api/common module
|
2024-03-24 16:12:40 +00:00
|
|
|
shadow(projects.api) { isTransitive = false }
|
2024-04-01 21:33:12 +00:00
|
|
|
shadow(projects.common) { isTransitive = false }
|
2024-03-24 16:12:40 +00:00
|
|
|
|
2024-03-19 22:05:30 +00:00
|
|
|
// Permissions
|
2024-02-23 16:58:39 +00:00
|
|
|
modImplementation(libs.fabric.permissions)
|
|
|
|
include(libs.fabric.permissions)
|
|
|
|
}
|
|
|
|
|
|
|
|
application {
|
|
|
|
mainClass.set("org.geysermc.geyser.platform.fabric.GeyserFabricMain")
|
|
|
|
}
|
|
|
|
|
2024-03-19 22:05:30 +00:00
|
|
|
relocate("org.cloudburstmc.netty")
|
|
|
|
relocate("org.cloudburstmc.protocol")
|
|
|
|
relocate("com.github.steveice10.mc.auth")
|
|
|
|
|
2024-02-23 16:58:39 +00:00
|
|
|
tasks {
|
|
|
|
remapJar {
|
|
|
|
archiveBaseName.set("Geyser-Fabric")
|
|
|
|
}
|
|
|
|
|
|
|
|
remapModrinthJar {
|
|
|
|
archiveBaseName.set("geyser-fabric")
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
modrinth {
|
|
|
|
loaders.add("fabric")
|
2024-06-17 19:31:54 +00:00
|
|
|
uploadFile.set(tasks.getByPath("remapModrinthJar"))
|
2024-02-23 16:58:39 +00:00
|
|
|
dependencies {
|
|
|
|
required.project("fabric-api")
|
|
|
|
}
|
|
|
|
}
|