2021-04-14 14:16:48 +02:00
|
|
|
enableFeaturePreview("TYPESAFE_PROJECT_ACCESSORS")
|
|
|
|
|
2021-05-25 06:58:34 +02:00
|
|
|
dependencyResolutionManagement {
|
|
|
|
// configures repositories for all projects
|
|
|
|
repositories {
|
2024-05-11 11:41:07 +02:00
|
|
|
mavenLocal()
|
2021-05-25 06:58:34 +02:00
|
|
|
maven("https://repo.viaversion.com")
|
2023-03-01 22:56:06 +01:00
|
|
|
maven("https://repo.papermc.io/repository/maven-public/")
|
2021-05-25 06:58:34 +02:00
|
|
|
maven("https://oss.sonatype.org/content/repositories/snapshots/")
|
|
|
|
maven("https://repo.spongepowered.org/repository/maven-public/")
|
|
|
|
maven("https://libraries.minecraft.net")
|
|
|
|
mavenCentral()
|
|
|
|
}
|
|
|
|
// only use these repos
|
|
|
|
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
|
|
|
|
}
|
|
|
|
|
|
|
|
pluginManagement {
|
|
|
|
// default plugin versions
|
|
|
|
plugins {
|
2023-09-18 16:02:06 +02:00
|
|
|
id("net.kyori.blossom") version "2.1.0"
|
2023-09-06 03:20:32 +02:00
|
|
|
id("org.jetbrains.gradle.plugin.idea-ext") version "1.1.7"
|
2023-06-15 09:48:13 +02:00
|
|
|
id("com.github.johnrengelman.shadow") version "8.1.1"
|
2021-05-25 06:58:34 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
rootProject.name = "viaversion-parent"
|
|
|
|
|
|
|
|
includeBuild("build-logic")
|
|
|
|
|
2023-02-27 14:16:40 +01:00
|
|
|
include("compat", "compat:snakeyaml-compat-common", "compat:snakeyaml2-compat", "compat:snakeyaml1-compat", "compat:protocolsupport-compat")
|
2021-02-28 12:14:46 +01:00
|
|
|
|
2021-03-22 23:06:40 +01:00
|
|
|
setupViaSubproject("api")
|
2021-02-18 06:32:43 +01:00
|
|
|
setupViaSubproject("common")
|
|
|
|
setupViaSubproject("bukkit")
|
|
|
|
setupViaSubproject("bukkit-legacy")
|
|
|
|
setupViaSubproject("bungee")
|
|
|
|
setupViaSubproject("velocity")
|
|
|
|
setupViaSubproject("sponge")
|
|
|
|
setupViaSubproject("fabric")
|
2023-10-16 14:30:12 +02:00
|
|
|
setupViaSubproject("template")
|
2021-02-19 01:33:32 +01:00
|
|
|
|
|
|
|
setupSubproject("viaversion") {
|
|
|
|
projectDir = file("universal")
|
|
|
|
}
|
2021-02-17 14:49:10 +01:00
|
|
|
|
2021-02-18 06:32:43 +01: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)
|
|
|
|
}
|