mirror of
https://github.com/ViaVersion/ViaVersion.git
synced 2024-11-21 17:45:36 +01:00
bda4ea9fd0
Had to move the rewriter classes into the flattened package to make them package private, but this is nicer than having a separate module just for those
48 lines
1.2 KiB
Plaintext
48 lines
1.2 KiB
Plaintext
enableFeaturePreview("TYPESAFE_PROJECT_ACCESSORS")
|
|
|
|
dependencyResolutionManagement {
|
|
// configures repositories for all projects
|
|
repositories {
|
|
maven("https://repo.viaversion.com")
|
|
maven("https://repo.papermc.io/repository/maven-public/")
|
|
mavenCentral()
|
|
}
|
|
// only use these repos
|
|
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
|
|
}
|
|
|
|
pluginManagement {
|
|
// default plugin versions
|
|
plugins {
|
|
id("net.kyori.blossom") version "2.1.0"
|
|
id("org.jetbrains.gradle.plugin.idea-ext") version "1.1.7"
|
|
id("com.gradleup.shadow") version "8.3.0"
|
|
}
|
|
}
|
|
|
|
rootProject.name = "viaversion-parent"
|
|
|
|
includeBuild("build-logic")
|
|
|
|
setupViaSubproject("api")
|
|
setupViaSubproject("common")
|
|
setupViaSubproject("bukkit")
|
|
setupViaSubproject("bukkit-legacy")
|
|
setupViaSubproject("velocity")
|
|
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)
|
|
}
|