2022-02-27 22:38:55 +00:00
|
|
|
plugins {
|
|
|
|
`java-library`
|
|
|
|
id("geyser.build-logic")
|
|
|
|
id("io.freefair.lombok") version "6.3.0" apply false
|
|
|
|
}
|
|
|
|
|
|
|
|
allprojects {
|
2023-02-09 16:31:00 +00:00
|
|
|
group = "org.geysermc.geyser"
|
2022-02-27 22:38:55 +00:00
|
|
|
version = "2.1.0-SNAPSHOT"
|
|
|
|
description = "Allows for players from Minecraft: Bedrock Edition to join Minecraft: Java Edition servers."
|
2022-04-20 16:36:10 +00:00
|
|
|
|
|
|
|
tasks.withType<JavaCompile> {
|
|
|
|
options.encoding = "UTF-8"
|
|
|
|
}
|
2022-02-27 22:38:55 +00:00
|
|
|
}
|
|
|
|
|
2023-04-27 03:37:16 +00:00
|
|
|
java {
|
|
|
|
toolchain {
|
|
|
|
languageVersion.set(JavaLanguageVersion.of(16))
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-02-27 22:38:55 +00:00
|
|
|
val platforms = setOf(
|
2022-10-17 02:47:26 +00:00
|
|
|
projects.fabric,
|
2022-02-27 22:38:55 +00:00
|
|
|
projects.bungeecord,
|
|
|
|
projects.spigot,
|
|
|
|
projects.sponge,
|
|
|
|
projects.standalone,
|
|
|
|
projects.velocity
|
|
|
|
).map { it.dependencyProject }
|
|
|
|
|
|
|
|
subprojects {
|
|
|
|
apply {
|
|
|
|
plugin("java-library")
|
|
|
|
plugin("io.freefair.lombok")
|
|
|
|
plugin("geyser.build-logic")
|
|
|
|
}
|
|
|
|
|
2023-02-09 16:31:00 +00:00
|
|
|
when (this) {
|
|
|
|
in platforms -> plugins.apply("geyser.platform-conventions")
|
|
|
|
else -> plugins.apply("geyser.base-conventions")
|
2022-02-27 22:38:55 +00:00
|
|
|
}
|
|
|
|
}
|