Mirror von
https://github.com/GeyserMC/Geyser.git
synchronisiert 2024-09-08 20:43:04 +02:00
41 Zeilen
1.0 KiB
Plaintext
41 Zeilen
1.0 KiB
Plaintext
plugins {
|
|
`java-library`
|
|
// Ensure AP works in eclipse (no effect on other IDEs)
|
|
eclipse
|
|
id("geyser.build-logic")
|
|
alias(libs.plugins.lombok) apply false
|
|
}
|
|
|
|
allprojects {
|
|
group = properties["group"] as String + "." + properties["id"] as String
|
|
version = properties["version"] as String
|
|
description = properties["description"] as String
|
|
}
|
|
|
|
val basePlatforms = setOf(
|
|
projects.bungeecord,
|
|
projects.spigot,
|
|
projects.standalone,
|
|
projects.velocity,
|
|
projects.viaproxy
|
|
).map { it.dependencyProject }
|
|
|
|
val moddedPlatforms = setOf(
|
|
projects.fabric,
|
|
projects.neoforge,
|
|
projects.mod
|
|
).map { it.dependencyProject }
|
|
|
|
subprojects {
|
|
apply {
|
|
plugin("java-library")
|
|
plugin("io.freefair.lombok")
|
|
plugin("geyser.build-logic")
|
|
}
|
|
|
|
when (this) {
|
|
in basePlatforms -> plugins.apply("geyser.platform-conventions")
|
|
in moddedPlatforms -> plugins.apply("geyser.modded-conventions")
|
|
else -> plugins.apply("geyser.base-conventions")
|
|
}
|
|
} |