BlueMap/implementations/sponge/build.gradle.kts
Lukas Rieger 1454297bbd
Rework gradle-build system (#574)
* Rework gradle-build setup

* Fix versioning

* Fix github build

* Configure publishing

* Push BlueMapAPI

* Reorganize project naming

* Update neoforge-gradle

* Add gradle-stracktrace to github action

* Remove clean gradle target to hopefully no longer upset neogradle for some reason

* Update gradle and add stacktrace to github action again

* Update neogradle

* Switch to neoforges ModDevGradle
2024-09-12 17:45:21 +02:00

77 lines
2.1 KiB
Plaintext

import org.spongepowered.gradle.plugin.config.PluginLoaders
plugins {
bluemap.implementation
bluemap.modrinth
bluemap.ore
id ( libs.plugins.sponge.plugin.get().pluginId )
}
val supportedMinecraftVersions = listOf(
"1.20", "1.20.1", "1.20.2", "1.20.3", "1.20.4", "1.20.5", "1.20.6"
)
dependencies {
api ( project( ":common" ) ) {
exclude( group = "com.google.code.gson", module = "gson" )
}
api ( libs.bstats.sponge )
}
sponge {
apiVersion("11.0.0")
license("MIT")
loader {
name(PluginLoaders.JAVA_PLAIN)
version("1.0")
}
plugin("bluemap") {
displayName("bluemap")
entrypoint("de.bluecolored.bluemap.sponge.SpongePlugin")
description("A 3d-map of your Minecraft worlds view-able in your browser using three.js (WebGL)")
contributor("Blue (TBlueF, Lukas Rieger)") {
description("Lead Developer")
}
dependency("spongeapi") {
optional(false)
}
}
}
tasks.shadowJar {
// airlift
relocate ("io.airlift", "de.bluecolored.shadow.airlift")
// brigadier
relocate ("com.mojang.brigadier", "de.bluecolored.shadow.brigadier")
// bluenbt
relocate ("de.bluecolored.bluenbt", "de.bluecolored.shadow.bluenbt")
// caffeine
relocate ("com.github.benmanes.caffeine", "de.bluecolored.shadow.caffeine")
relocate ("org.checkerframework", "de.bluecolored.shadow.checkerframework")
relocate ("com.google.errorprone", "de.bluecolored.shadow.errorprone")
// dbcp2
relocate ("org.apache.commons", "de.bluecolored.shadow.apache.commons")
// configurate
relocate ("org.spongepowered.configurate", "de.bluecolored.shadow.configurate")
relocate ("com.typesafe.config", "de.bluecolored.shadow.typesafe.config")
relocate ("io.leangen.geantyref", "de.bluecolored.shadow.geantyref")
// lz4
relocate ("net.jpountz", "de.bluecolored.shadow.jpountz")
// bstats
relocate ("org.bstats", "de.bluecolored.shadow.bstats")
}
modrinth {
gameVersions.addAll(supportedMinecraftVersions)
}