Mirror von
https://github.com/ViaVersion/ViaBackwards.git
synchronisiert 2024-09-08 05:42:51 +02:00
49 Zeilen
1.3 KiB
Plaintext
49 Zeilen
1.3 KiB
Plaintext
enableFeaturePreview("TYPESAFE_PROJECT_ACCESSORS")
|
|
enableFeaturePreview("VERSION_CATALOGS")
|
|
|
|
rootProject.name = "viabackwards-parent"
|
|
|
|
dependencyResolutionManagement {
|
|
repositories {
|
|
mavenLocal()
|
|
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/maven")
|
|
mavenCentral()
|
|
}
|
|
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
|
|
}
|
|
|
|
pluginManagement {
|
|
plugins {
|
|
id("net.kyori.blossom") version "1.2.0"
|
|
id("com.github.johnrengelman.shadow") version "7.0.0"
|
|
}
|
|
}
|
|
|
|
includeBuild("build-logic")
|
|
|
|
setupViaSubproject("common")
|
|
setupViaSubproject("bukkit")
|
|
setupViaSubproject("bungee")
|
|
setupViaSubproject("velocity")
|
|
setupViaSubproject("sponge")
|
|
setupViaSubproject("fabric")
|
|
|
|
setupSubproject("viabackwards") {
|
|
projectDir = file("universal")
|
|
}
|
|
|
|
fun setupViaSubproject(name: String) {
|
|
setupSubproject("viabackwards-$name") {
|
|
projectDir = file(name)
|
|
}
|
|
}
|
|
|
|
inline fun setupSubproject(name: String, block: ProjectDescriptor.() -> Unit) {
|
|
include(name)
|
|
project(":$name").apply(block)
|
|
}
|