2021-04-14 05:16:48 -07:00
|
|
|
enableFeaturePreview("TYPESAFE_PROJECT_ACCESSORS")
|
|
|
|
|
2021-05-24 21:58:34 -07:00
|
|
|
dependencyResolutionManagement {
|
|
|
|
// configures repositories for all projects
|
|
|
|
repositories {
|
|
|
|
maven("https://repo.viaversion.com")
|
2023-03-01 22:56:06 +01:00
|
|
|
maven("https://repo.papermc.io/repository/maven-public/")
|
2021-05-24 21:58:34 -07:00
|
|
|
mavenCentral()
|
|
|
|
}
|
|
|
|
// only use these repos
|
|
|
|
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
|
|
|
|
}
|
|
|
|
|
|
|
|
pluginManagement {
|
|
|
|
// default plugin versions
|
|
|
|
plugins {
|
2023-09-19 00:02:06 +10:00
|
|
|
id("net.kyori.blossom") version "2.1.0"
|
2024-12-29 12:52:05 +01:00
|
|
|
id("org.jetbrains.gradle.plugin.idea-ext") version "1.1.9"
|
|
|
|
id("com.gradleup.shadow") version "8.3.5"
|
2021-05-24 21:58:34 -07:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
rootProject.name = "viaversion-parent"
|
|
|
|
|
|
|
|
includeBuild("build-logic")
|
|
|
|
|
2021-03-22 23:06:40 +01:00
|
|
|
setupViaSubproject("api")
|
2021-02-17 21:32:43 -08:00
|
|
|
setupViaSubproject("common")
|
|
|
|
setupViaSubproject("bukkit")
|
|
|
|
setupViaSubproject("bukkit-legacy")
|
|
|
|
setupViaSubproject("velocity")
|
2024-10-02 10:41:59 +02:00
|
|
|
setupViaSubproject("sponge")
|
2021-02-17 21:32:43 -08:00
|
|
|
setupViaSubproject("fabric")
|
2021-02-18 16:33:32 -08:00
|
|
|
|
|
|
|
setupSubproject("viaversion") {
|
|
|
|
projectDir = file("universal")
|
|
|
|
}
|
2021-02-17 14:49:10 +01:00
|
|
|
|
2021-02-17 21:32:43 -08:00
|
|
|
fun setupViaSubproject(name: String) {
|
|
|
|
setupSubproject("viaversion-$name") {
|
|
|
|
projectDir = file(name)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
inline fun setupSubproject(name: String, block: ProjectDescriptor.() -> Unit) {
|
|
|
|
include(name)
|
|
|
|
project(":$name").apply(block)
|
|
|
|
}
|