0
0
mirror of https://github.com/GeyserMC/Floodgate.git synced 2024-11-11 11:29:29 +00:00
Floodgate/build.gradle.kts
2023-02-13 21:49:28 +01:00

43 lines
1.2 KiB
Plaintext

plugins {
`java-library`
id("floodgate.build-logic")
id("io.freefair.lombok") version "6.3.0" apply false
}
allprojects {
group = "org.geysermc.floodgate"
version = property("version")!!
description = "Allows Bedrock players to join Java edition servers while keeping the server in online mode"
}
val deployProjects = setOf(
projects.api,
// for future Floodgate integration + Fabric
projects.core,
projects.bungee,
projects.spigot,
projects.velocity
).map { it.dependencyProject }
//todo re-add checkstyle when we switch back to 2 space indention
// and take a look again at spotbugs someday
subprojects {
apply {
plugin("java-library")
plugin("io.freefair.lombok")
plugin("floodgate.build-logic")
}
val relativePath = projectDir.relativeTo(rootProject.projectDir).path
if (relativePath.startsWith("database" + File.separator)) {
group = rootProject.group as String + ".database"
plugins.apply("floodgate.database-conventions")
}
when (this) {
in deployProjects -> plugins.apply("floodgate.publish-conventions")
else -> plugins.apply("floodgate.base-conventions")
}
}