2024-02-18 11:28:02 +08:00
|
|
|
pluginManagement {
|
|
|
|
repositories {
|
|
|
|
gradlePluginPortal()
|
|
|
|
maven {
|
2024-04-30 08:29:02 +08:00
|
|
|
name = "EngineHub"
|
|
|
|
url = uri("https://maven.enginehub.org/repo/")
|
2024-02-18 11:28:02 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2024-01-22 06:29:02 +08:00
|
|
|
plugins {
|
|
|
|
id("org.gradle.toolchains.foojay-resolver-convention") version "0.8.0"
|
2024-07-18 13:00:26 +08:00
|
|
|
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"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2024-01-22 06:29:02 +08:00
|
|
|
}
|
|
|
|
|
2024-07-24 10:19:44 +08:00
|
|
|
logger.lifecycle("""
|
2024-04-30 08:29:02 +08:00
|
|
|
*******************************************
|
|
|
|
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
|
|
|
|
*******************************************
|
2024-07-24 10:19:44 +08:00
|
|
|
""")
|
2024-04-30 08:29:02 +08:00
|
|
|
|
2019-07-11 02:07:00 +08:00
|
|
|
rootProject.name = "worldedit"
|
|
|
|
|
2024-04-30 08:29:02 +08:00
|
|
|
includeBuild("build-logic")
|
|
|
|
|
2019-07-11 02:07:00 +08:00
|
|
|
include("worldedit-libs")
|
|
|
|
|
2024-06-15 13:00:04 +08:00
|
|
|
listOf("1.20.2", "1.20.4", "1.20.6", "1.21").forEach {
|
2022-06-10 08:21:11 +08:00
|
|
|
include("worldedit-bukkit:adapters:adapter-$it")
|
|
|
|
}
|
2021-10-02 12:11:29 +08:00
|
|
|
|
2024-06-01 13:30:00 +08:00
|
|
|
listOf("bukkit", "core", "fabric", "neoforge", "sponge", "cli").forEach {
|
2019-07-11 02:07:00 +08:00
|
|
|
include("worldedit-libs:$it")
|
|
|
|
include("worldedit-$it")
|
|
|
|
}
|
2021-01-25 18:14:09 +08:00
|
|
|
include("worldedit-mod")
|
2019-07-11 02:07:00 +08:00
|
|
|
include("worldedit-libs:core:ap")
|
|
|
|
|
|
|
|
include("worldedit-core:doctools")
|
2022-06-07 08:11:41 +08:00
|
|
|
|
|
|
|
include("verification")
|