diff --git a/cloud-minecraft-bom/build.gradle.kts b/cloud-minecraft-bom/build.gradle.kts new file mode 100644 index 00000000..ca292f18 --- /dev/null +++ b/cloud-minecraft-bom/build.gradle.kts @@ -0,0 +1,26 @@ +plugins { + `java-platform` + id("conventions.publishing") +} + +indra { + configurePublications { + from(components["javaPlatform"]) + } +} + +dependencies { + constraints { + for (subproject in rootProject.subprojects) { + if (subproject == project) { // the bom itself + continue + } + + if (subproject.name.startsWith("example-")) { + continue + } + + api(project(subproject.path)) + } + } +} diff --git a/settings.gradle.kts b/settings.gradle.kts index c0b87c1f..7d4835d2 100644 --- a/settings.gradle.kts +++ b/settings.gradle.kts @@ -45,6 +45,8 @@ dependencyResolutionManagement { rootProject.name = "cloud-minecraft" +include("cloud-minecraft-bom") + include("cloud-brigadier") include("cloud-bukkit") include("cloud-bungee")