2022-02-27 23:38:55 +01:00
|
|
|
enableFeaturePreview("TYPESAFE_PROJECT_ACCESSORS")
|
|
|
|
|
|
|
|
dependencyResolutionManagement {
|
2022-10-03 22:11:07 +02:00
|
|
|
// repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
|
2022-02-27 23:38:55 +01:00
|
|
|
repositories {
|
2022-11-07 03:32:55 +01:00
|
|
|
mavenLocal()
|
2022-02-27 23:38:55 +01:00
|
|
|
// Floodgate, Cumulus etc.
|
2022-09-15 00:09:08 +02:00
|
|
|
maven("https://repo.opencollab.dev/main")
|
2022-02-27 23:38:55 +01:00
|
|
|
|
|
|
|
// Paper, Velocity
|
2022-06-08 14:09:14 +02:00
|
|
|
maven("https://repo.papermc.io/repository/maven-public")
|
2022-02-27 23:38:55 +01:00
|
|
|
// Spigot
|
|
|
|
maven("https://hub.spigotmc.org/nexus/content/repositories/snapshots") {
|
|
|
|
mavenContent { snapshotsOnly() }
|
|
|
|
}
|
|
|
|
|
|
|
|
// BungeeCord
|
|
|
|
maven("https://oss.sonatype.org/content/repositories/snapshots") {
|
|
|
|
mavenContent { snapshotsOnly() }
|
|
|
|
}
|
|
|
|
|
|
|
|
// Minecraft
|
|
|
|
maven("https://libraries.minecraft.net") {
|
|
|
|
name = "minecraft"
|
|
|
|
mavenContent { releasesOnly() }
|
|
|
|
}
|
|
|
|
|
|
|
|
mavenCentral()
|
|
|
|
|
2022-03-20 05:29:24 +01:00
|
|
|
// ViaVersion
|
|
|
|
maven("https://repo.viaversion.com") {
|
|
|
|
name = "viaversion"
|
|
|
|
}
|
|
|
|
|
2022-02-27 23:38:55 +01:00
|
|
|
maven("https://jitpack.io") {
|
|
|
|
content { includeGroupByRegex("com\\.github\\..*") }
|
|
|
|
}
|
2022-09-18 21:18:48 +02:00
|
|
|
|
|
|
|
// For Adventure snapshots
|
|
|
|
maven("https://s01.oss.sonatype.org/content/repositories/snapshots/")
|
2022-02-27 23:38:55 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
pluginManagement {
|
|
|
|
repositories {
|
|
|
|
gradlePluginPortal()
|
2022-10-03 22:11:07 +02:00
|
|
|
maven("https://maven.fabricmc.net/")
|
2022-10-05 00:18:53 +02:00
|
|
|
maven("https://repo.opencollab.dev/maven-snapshots")
|
2022-02-27 23:38:55 +01:00
|
|
|
}
|
|
|
|
plugins {
|
|
|
|
id("net.kyori.blossom") version "1.2.0"
|
|
|
|
id("net.kyori.indra")
|
|
|
|
id("net.kyori.indra.git")
|
|
|
|
}
|
|
|
|
includeBuild("build-logic")
|
|
|
|
}
|
|
|
|
|
|
|
|
rootProject.name = "geyser-parent"
|
|
|
|
|
|
|
|
include(":ap")
|
|
|
|
include(":api")
|
2022-10-03 22:11:07 +02:00
|
|
|
include(":fabric")
|
2022-02-27 23:38:55 +01:00
|
|
|
include(":standalone")
|
|
|
|
include(":core")
|
|
|
|
|
|
|
|
// Specify project dirs
|
|
|
|
project(":standalone").projectDir = file("bootstrap/standalone")
|
2024-02-18 19:03:14 +01:00
|
|
|
|
|
|
|
//todo see what's possible with fabric
|
|
|
|
project(":fabric").projectDir = file("bootstrap/fabric")
|
|
|
|
|
|
|
|
arrayOf("bungeecord", "spigot", "velocity").forEach { platform ->
|
|
|
|
arrayOf("base", "isolated").forEach {
|
|
|
|
var id = ":$platform-$it"
|
|
|
|
// isolated is the new default
|
|
|
|
if (id.endsWith("-isolated")) id = ":$platform"
|
|
|
|
|
|
|
|
include(id)
|
|
|
|
project(id).projectDir = file("bootstrap/$platform/$it")
|
|
|
|
}
|
|
|
|
}
|