mirror of
https://github.com/GeyserMC/Floodgate.git
synced 2025-12-19 14:59:20 +00:00
42 lines
1.1 KiB
Plaintext
42 lines
1.1 KiB
Plaintext
plugins {
|
|
`java-library`
|
|
id("floodgate.build-logic") apply false
|
|
// id("com.github.spotbugs") version "4.8.0" apply false
|
|
id("io.freefair.lombok") version "6.3.0" apply false
|
|
}
|
|
|
|
val platforms = setOf(
|
|
projects.bungee,
|
|
projects.spigot,
|
|
projects.velocity
|
|
).map { it.dependencyProject }
|
|
|
|
val api: Project = projects.api.dependencyProject
|
|
|
|
subprojects {
|
|
// apply(plugin = "pmd")
|
|
// apply(plugin = "com.github.spotbugs")
|
|
|
|
apply {
|
|
plugin("java-library")
|
|
plugin("io.freefair.lombok")
|
|
plugin("floodgate.build-logic")
|
|
}
|
|
|
|
group = "org.geysermc.floodgate"
|
|
//todo make nicer
|
|
if (project.name in arrayOf("mysql", "sqlite")) {
|
|
group = group as String + ".database"
|
|
}
|
|
version = "2.1.1-SNAPSHOT"
|
|
|
|
when (this) {
|
|
in platforms -> plugins.apply("floodgate.shadow-conventions")
|
|
api -> plugins.apply("floodgate.base-conventions")
|
|
else -> plugins.apply("floodgate.standard-conventions")
|
|
}
|
|
|
|
dependencies {
|
|
compileOnly("org.checkerframework", "checker-qual", Versions.checkerQual)
|
|
}
|
|
} |