mirror of
https://github.com/GeyserMC/Geyser.git
synced 2024-08-14 23:57:35 +00:00
52 lines
1.2 KiB
Text
52 lines
1.2 KiB
Text
|
plugins {
|
||
|
application
|
||
|
}
|
||
|
|
||
|
architectury {
|
||
|
platformSetupLoomIde()
|
||
|
neoForge()
|
||
|
}
|
||
|
|
||
|
dependencies {
|
||
|
// See https://github.com/google/guava/issues/6618
|
||
|
modules {
|
||
|
module("com.google.guava:listenablefuture") {
|
||
|
replacedBy("com.google.guava:guava", "listenablefuture is part of guava")
|
||
|
}
|
||
|
}
|
||
|
|
||
|
neoForge(libs.neoforge.minecraft)
|
||
|
|
||
|
api(project(":mod", configuration = "namedElements"))
|
||
|
shadow(project(path = ":mod", configuration = "transformProductionNeoForge")) {
|
||
|
isTransitive = false
|
||
|
}
|
||
|
shadow(projects.core) {
|
||
|
exclude(group = "com.google.guava", module = "guava")
|
||
|
exclude(group = "com.google.code.gson", module = "gson")
|
||
|
exclude(group = "org.slf4j")
|
||
|
exclude(group = "io.netty.incubator")
|
||
|
}
|
||
|
}
|
||
|
|
||
|
application {
|
||
|
mainClass.set("org.geysermc.geyser.platform.forge.GeyserNeoForgeMain")
|
||
|
}
|
||
|
|
||
|
tasks {
|
||
|
shadowJar {
|
||
|
relocate("it.unimi.dsi.fastutil", "org.geysermc.relocate.fastutil")
|
||
|
}
|
||
|
|
||
|
remapJar {
|
||
|
archiveBaseName.set("Geyser-NeoForge")
|
||
|
}
|
||
|
|
||
|
remapModrinthJar {
|
||
|
archiveBaseName.set("geyser-neoforge")
|
||
|
}
|
||
|
}
|
||
|
|
||
|
modrinth {
|
||
|
loaders.add("neoforge")
|
||
|
}
|