mirror of
https://github.com/ViaVersion/ViaVersion.git
synced 2024-11-18 08:05:19 +01:00
59 lines
1.7 KiB
Plaintext
59 lines
1.7 KiB
Plaintext
enableFeaturePreview("TYPESAFE_PROJECT_ACCESSORS")
|
|
enableFeaturePreview("VERSION_CATALOGS")
|
|
|
|
dependencyResolutionManagement {
|
|
// configures repositories for all projects
|
|
repositories {
|
|
maven("https://repo.viaversion.com")
|
|
maven("https://papermc.io/repo/repository/maven-public/")
|
|
maven("https://oss.sonatype.org/content/repositories/snapshots/")
|
|
maven("https://nexus.velocitypowered.com/repository/velocity-artifacts-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 {
|
|
id("net.kyori.blossom") version "1.2.0"
|
|
id("com.github.johnrengelman.shadow") version "7.0.0"
|
|
}
|
|
}
|
|
|
|
rootProject.name = "viaversion-parent"
|
|
|
|
includeBuild("build-logic")
|
|
|
|
include("adventure")
|
|
include("java-compat", "java-compat:java-compat-common", "java-compat:java-compat-unsafe")
|
|
|
|
setupViaSubproject("api")
|
|
setupViaSubproject("api-legacy")
|
|
setupViaSubproject("common")
|
|
setupViaSubproject("bukkit")
|
|
setupViaSubproject("bukkit-legacy")
|
|
setupViaSubproject("bungee")
|
|
setupViaSubproject("velocity")
|
|
setupViaSubproject("sponge")
|
|
setupViaSubproject("sponge-legacy")
|
|
setupViaSubproject("fabric")
|
|
|
|
setupSubproject("viaversion") {
|
|
projectDir = file("universal")
|
|
}
|
|
|
|
fun setupViaSubproject(name: String) {
|
|
setupSubproject("viaversion-$name") {
|
|
projectDir = file(name)
|
|
}
|
|
}
|
|
|
|
inline fun setupSubproject(name: String, block: ProjectDescriptor.() -> Unit) {
|
|
include(name)
|
|
project(":$name").apply(block)
|
|
}
|