2022-02-27 22:38:55 +00:00
|
|
|
plugins {
|
|
|
|
`java-library`
|
2023-11-29 04:33:07 +00:00
|
|
|
// Ensure AP works in eclipse (no effect on other IDEs)
|
2024-02-23 16:58:39 +00:00
|
|
|
eclipse
|
2022-02-27 22:38:55 +00:00
|
|
|
id("geyser.build-logic")
|
2024-02-23 16:58:39 +00:00
|
|
|
alias(libs.plugins.lombok) apply false
|
2022-02-27 22:38:55 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
allprojects {
|
2023-08-21 23:04:08 +00:00
|
|
|
group = properties["group"] as String + "." + properties["id"] as String
|
|
|
|
version = properties["version"] as String
|
|
|
|
description = properties["description"] as String
|
|
|
|
}
|
|
|
|
|
2024-02-23 16:58:39 +00:00
|
|
|
val basePlatforms = setOf(
|
2022-02-27 22:38:55 +00:00
|
|
|
projects.bungeecord,
|
|
|
|
projects.spigot,
|
|
|
|
projects.standalone,
|
2024-02-19 21:25:49 +00:00
|
|
|
projects.velocity,
|
|
|
|
projects.viaproxy
|
2022-02-27 22:38:55 +00:00
|
|
|
).map { it.dependencyProject }
|
|
|
|
|
2024-02-23 16:58:39 +00:00
|
|
|
val moddedPlatforms = setOf(
|
|
|
|
projects.fabric,
|
2024-04-23 21:04:38 +00:00
|
|
|
projects.neoforge,
|
2024-02-23 16:58:39 +00:00
|
|
|
projects.mod
|
|
|
|
).map { it.dependencyProject }
|
|
|
|
|
2024-06-17 19:31:54 +00:00
|
|
|
val modrinthPlatforms = setOf(
|
|
|
|
projects.bungeecord,
|
|
|
|
projects.fabric,
|
|
|
|
projects.neoforge,
|
|
|
|
projects.spigot,
|
|
|
|
projects.velocity
|
|
|
|
).map { it.dependencyProject }
|
|
|
|
|
2022-02-27 22:38:55 +00:00
|
|
|
subprojects {
|
|
|
|
apply {
|
|
|
|
plugin("java-library")
|
|
|
|
plugin("io.freefair.lombok")
|
|
|
|
plugin("geyser.build-logic")
|
|
|
|
}
|
|
|
|
|
2023-02-09 16:31:00 +00:00
|
|
|
when (this) {
|
2024-02-23 16:58:39 +00:00
|
|
|
in basePlatforms -> plugins.apply("geyser.platform-conventions")
|
|
|
|
in moddedPlatforms -> plugins.apply("geyser.modded-conventions")
|
2023-02-09 16:31:00 +00:00
|
|
|
else -> plugins.apply("geyser.base-conventions")
|
2022-02-27 22:38:55 +00:00
|
|
|
}
|
2024-06-17 19:31:54 +00:00
|
|
|
|
|
|
|
// Not combined with platform-conventions as that also contains
|
|
|
|
// platforms which we cant publish to modrinth
|
|
|
|
if (modrinthPlatforms.contains(this)) {
|
|
|
|
plugins.apply("geyser.modrinth-uploading-conventions")
|
|
|
|
}
|
2024-02-23 16:58:39 +00:00
|
|
|
}
|