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