mirror of
https://github.com/EngineHub/WorldEdit.git
synced 2024-12-15 04:41:37 +08:00
88 lines
2.5 KiB
Plaintext
88 lines
2.5 KiB
Plaintext
pluginManagement {
|
|
repositories {
|
|
gradlePluginPortal()
|
|
maven {
|
|
name = "EngineHub"
|
|
url = uri("https://maven.enginehub.org/repo/")
|
|
}
|
|
}
|
|
}
|
|
plugins {
|
|
id("org.gradle.toolchains.foojay-resolver-convention") version "0.8.0"
|
|
id("fabric-loom") version "1.6.12"
|
|
}
|
|
dependencyResolutionManagement {
|
|
repositories {
|
|
maven {
|
|
name = "EngineHub"
|
|
url = uri("https://maven.enginehub.org/repo/")
|
|
}
|
|
ivy {
|
|
url = uri("https://repo.enginehub.org/language-files/")
|
|
name = "EngineHub Language Files"
|
|
patternLayout {
|
|
artifact("[organisation]/[module]/[revision]/[artifact]-[revision](+[classifier])(.[ext])")
|
|
setM2compatible(true)
|
|
}
|
|
metadataSources {
|
|
artifact()
|
|
}
|
|
content {
|
|
includeModuleByRegex(".*", "worldedit-lang")
|
|
}
|
|
}
|
|
gradle.settingsEvaluated {
|
|
// Duplicates repositoriesHelper.kt, since we can't import it
|
|
val allowedPrefixes = listOf(
|
|
"https://maven.enginehub.org",
|
|
"https://repo.maven.apache.org/maven2/",
|
|
"file:"
|
|
)
|
|
|
|
for (repo in this@repositories) {
|
|
if (repo is MavenArtifactRepository) {
|
|
val urlString = repo.url.toString()
|
|
check(allowedPrefixes.any { urlString.startsWith(it) }) {
|
|
"Only EngineHub/Central repositories are allowed: ${repo.url} found"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
logger.lifecycle("""
|
|
*******************************************
|
|
You are building WorldEdit!
|
|
|
|
If you encounter trouble:
|
|
1) Read COMPILING.md if you haven't yet
|
|
2) Try running 'build' in a separate Gradle run
|
|
3) Use gradlew and not gradle
|
|
4) If you still need help, ask on Discord! https://discord.gg/enginehub
|
|
|
|
Output files will be in [subproject]/build/libs
|
|
*******************************************
|
|
""")
|
|
|
|
rootProject.name = "worldedit"
|
|
|
|
includeBuild("build-logic")
|
|
|
|
include("worldedit-libs")
|
|
|
|
listOf("1.20.2", "1.20.4", "1.20.6", "1.21").forEach {
|
|
include("worldedit-bukkit:adapters:adapter-$it")
|
|
}
|
|
|
|
listOf("bukkit", "core", "fabric", "neoforge", "sponge", "cli").forEach {
|
|
include("worldedit-libs:$it")
|
|
include("worldedit-$it")
|
|
}
|
|
include("worldedit-mod")
|
|
include("worldedit-libs:core:ap")
|
|
|
|
include("worldedit-core:doctools")
|
|
|
|
include("verification")
|