geforkt von Mirrors/FastAsyncWorldEdit
Cherry-pick build-script changes from upstream
Dieser Commit ist enthalten in:
Ursprung
8981a5c484
Commit
20304bf7ad
@ -30,18 +30,6 @@ repositories {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
/*
|
|
||||||
configurations.all {
|
|
||||||
resolutionStrategy {
|
|
||||||
// Fabric needs this.
|
|
||||||
force(
|
|
||||||
"commons-io:commons-io:2.6",
|
|
||||||
"org.ow2.asm:asm:8.0.1",
|
|
||||||
"org.ow2.asm:asm-commons:8.0.1"
|
|
||||||
)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
*/
|
|
||||||
|
|
||||||
val properties = Properties().also { props ->
|
val properties = Properties().also { props ->
|
||||||
project.projectDir.resolveSibling("gradle.properties").bufferedReader().use {
|
project.projectDir.resolveSibling("gradle.properties").bufferedReader().use {
|
||||||
@ -57,12 +45,11 @@ dependencies {
|
|||||||
implementation("net.ltgt.apt-eclipse:net.ltgt.apt-eclipse.gradle.plugin:0.21")
|
implementation("net.ltgt.apt-eclipse:net.ltgt.apt-eclipse.gradle.plugin:0.21")
|
||||||
implementation("net.ltgt.apt-idea:net.ltgt.apt-idea.gradle.plugin:0.21")
|
implementation("net.ltgt.apt-idea:net.ltgt.apt-idea.gradle.plugin:0.21")
|
||||||
/*
|
/*
|
||||||
implementation("gradle.plugin.com.mendhak.gradlecrowdin:plugin:0.1.0")
|
implementation("org.jfrog.buildinfo:build-info-extractor-gradle:4.19.0")
|
||||||
implementation("org.enginehub.gradle:gradle-codecov-plugin:0.1.0")
|
implementation("org.spongepowered:SpongeGradle:0.11.5")
|
||||||
implementation("org.jfrog.buildinfo:build-info-extractor-gradle:4.16.0")
|
implementation("net.minecraftforge.gradle:ForgeGradle:4.0.9")
|
||||||
implementation("gradle.plugin.org.spongepowered:spongegradle:0.9.0")
|
|
||||||
implementation("net.minecraftforge.gradle:ForgeGradle:3.0.181")
|
|
||||||
implementation("net.fabricmc:fabric-loom:$loomVersion")
|
implementation("net.fabricmc:fabric-loom:$loomVersion")
|
||||||
implementation("net.fabricmc:sponge-mixin:$mixinVersion")
|
implementation("net.fabricmc:sponge-mixin:$mixinVersion")
|
||||||
|
implementation("org.enginehub.gradle:gradle-codecov-plugin:0.1.0")
|
||||||
*/
|
*/
|
||||||
}
|
}
|
||||||
|
@ -27,11 +27,6 @@ fun Project.applyPlatformAndCoreConfiguration() {
|
|||||||
|
|
||||||
ext["internalVersion"] = "$version;${rootProject.ext["gitCommitHash"]}"
|
ext["internalVersion"] = "$version;${rootProject.ext["gitCommitHash"]}"
|
||||||
|
|
||||||
configure<JavaPluginConvention> {
|
|
||||||
sourceCompatibility = JavaVersion.VERSION_1_8
|
|
||||||
targetCompatibility = sourceCompatibility
|
|
||||||
}
|
|
||||||
|
|
||||||
tasks
|
tasks
|
||||||
.withType<JavaCompile>()
|
.withType<JavaCompile>()
|
||||||
.matching { it.name == "compileJava" || it.name == "compileTestJava" }
|
.matching { it.name == "compileJava" || it.name == "compileTestJava" }
|
||||||
@ -55,11 +50,11 @@ fun Project.applyPlatformAndCoreConfiguration() {
|
|||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
"compileOnly"("org.jetbrains:annotations:20.1.0")
|
"compileOnly"("org.jetbrains:annotations:20.1.0")
|
||||||
"testImplementation"("org.junit.jupiter:junit-jupiter-api:5.6.1")
|
"testImplementation"("org.junit.jupiter:junit-jupiter-api:${Versions.JUNIT}")
|
||||||
"testImplementation"("org.junit.jupiter:junit-jupiter-params:5.6.1")
|
"testImplementation"("org.junit.jupiter:junit-jupiter-params:${Versions.JUNIT}")
|
||||||
"testImplementation"("org.mockito:mockito-core:3.3.3")
|
"testImplementation"("org.mockito:mockito-core:${Versions.MOCKITO}")
|
||||||
"testImplementation"("org.mockito:mockito-junit-jupiter:3.3.3")
|
"testImplementation"("org.mockito:mockito-junit-jupiter:${Versions.MOCKITO}")
|
||||||
"testRuntime"("org.junit.jupiter:junit-jupiter-engine:5.6.1")
|
"testRuntime"("org.junit.jupiter:junit-jupiter-engine:${Versions.JUNIT}")
|
||||||
}
|
}
|
||||||
|
|
||||||
// Java 8 turns on doclint which we fail
|
// Java 8 turns on doclint which we fail
|
||||||
|
2
gradle/wrapper/gradle-wrapper.properties
vendored
2
gradle/wrapper/gradle-wrapper.properties
vendored
@ -1,5 +1,5 @@
|
|||||||
distributionBase=GRADLE_USER_HOME
|
distributionBase=GRADLE_USER_HOME
|
||||||
distributionPath=wrapper/dists
|
distributionPath=wrapper/dists
|
||||||
distributionUrl=https\://services.gradle.org/distributions/gradle-6.8.1-all.zip
|
distributionUrl=https\://services.gradle.org/distributions/gradle-6.8.2-all.zip
|
||||||
zipStoreBase=GRADLE_USER_HOME
|
zipStoreBase=GRADLE_USER_HOME
|
||||||
zipStorePath=wrapper/dists
|
zipStorePath=wrapper/dists
|
||||||
|
@ -6,7 +6,7 @@ listOf("bukkit", "core").forEach {
|
|||||||
include("worldedit-libs:$it")
|
include("worldedit-libs:$it")
|
||||||
include("worldedit-$it")
|
include("worldedit-$it")
|
||||||
}
|
}
|
||||||
include("worldedit-mod")
|
// include("worldedit-mod")
|
||||||
include("worldedit-libs:core:ap")
|
include("worldedit-libs:core:ap")
|
||||||
|
|
||||||
dependencyResolutionManagement {
|
dependencyResolutionManagement {
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar
|
import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar
|
||||||
|
|
||||||
plugins {
|
plugins {
|
||||||
id("java-library")
|
`java-library`
|
||||||
}
|
}
|
||||||
|
|
||||||
applyPlatformAndCoreConfiguration()
|
applyPlatformAndCoreConfiguration()
|
||||||
@ -87,7 +87,7 @@ dependencies {
|
|||||||
compileOnly("org.spigotmcv1_16_r1:spigotmcv1_16_r1:1_16_r1")
|
compileOnly("org.spigotmcv1_16_r1:spigotmcv1_16_r1:1_16_r1")
|
||||||
compileOnly("org.spigotmcv1_16_r2:spigotmcv1_16_r2:1_16_r2")
|
compileOnly("org.spigotmcv1_16_r2:spigotmcv1_16_r2:1_16_r2")
|
||||||
compileOnly("org.spigotmcv1_16_r3:spigotmcv1_16_r3:1_16_r3")
|
compileOnly("org.spigotmcv1_16_r3:spigotmcv1_16_r3:1_16_r3")
|
||||||
implementation("it.unimi.dsi:fastutil:8.4.4")
|
implementation("it.unimi.dsi:fastutil")
|
||||||
api("com.destroystokyo.paper:paper-api:1.16.5-R0.1-SNAPSHOT") {
|
api("com.destroystokyo.paper:paper-api:1.16.5-R0.1-SNAPSHOT") {
|
||||||
exclude("junit", "junit")
|
exclude("junit", "junit")
|
||||||
isTransitive = false
|
isTransitive = false
|
||||||
@ -99,7 +99,7 @@ dependencies {
|
|||||||
compileOnly("com.sk89q:dummypermscompat:1.10") {
|
compileOnly("com.sk89q:dummypermscompat:1.10") {
|
||||||
exclude("com.github.MilkBowl", "VaultAPI")
|
exclude("com.github.MilkBowl", "VaultAPI")
|
||||||
}
|
}
|
||||||
implementation("org.apache.logging.log4j:log4j-slf4j-impl:2.8.1")
|
implementation("org.slf4j:slf4j-jdk14:${Versions.SLF4J}")
|
||||||
testImplementation("org.mockito:mockito-core:1.9.0-rc1")
|
testImplementation("org.mockito:mockito-core:1.9.0-rc1")
|
||||||
compileOnly("com.sk89q.worldguard:worldguard-bukkit:7.0.4") {
|
compileOnly("com.sk89q.worldguard:worldguard-bukkit:7.0.4") {
|
||||||
exclude("com.sk89q.worldedit", "worldedit-bukkit")
|
exclude("com.sk89q.worldedit", "worldedit-bukkit")
|
||||||
@ -122,8 +122,10 @@ dependencies {
|
|||||||
}
|
}
|
||||||
|
|
||||||
tasks.named<Copy>("processResources") {
|
tasks.named<Copy>("processResources") {
|
||||||
|
val internalVersion = project.ext["internalVersion"]
|
||||||
|
inputs.property("internalVersion", internalVersion)
|
||||||
filesMatching("plugin.yml") {
|
filesMatching("plugin.yml") {
|
||||||
expand("internalVersion" to project.ext["internalVersion"])
|
expand("internalVersion" to internalVersion)
|
||||||
}
|
}
|
||||||
// exclude adapters entirely from this JAR, they should only be in the shadow JAR
|
// exclude adapters entirely from this JAR, they should only be in the shadow JAR
|
||||||
exclude("**/worldedit-adapters.jar")
|
exclude("**/worldedit-adapters.jar")
|
||||||
@ -149,20 +151,17 @@ tasks.named<ShadowJar>("shadowJar") {
|
|||||||
include(dependency("org.slf4j:slf4j-api"))
|
include(dependency("org.slf4j:slf4j-api"))
|
||||||
include(dependency("org.apache.logging.log4j:log4j-slf4j-impl"))
|
include(dependency("org.apache.logging.log4j:log4j-slf4j-impl"))
|
||||||
include(dependency("org.antlr:antlr4-runtime"))
|
include(dependency("org.antlr:antlr4-runtime"))
|
||||||
relocate("de.notmyfault", "com.boydti.fawe") {
|
relocate("org.bstats", "com.sk89q.worldedit.bstats") {
|
||||||
include(dependency("de.notmyfault:serverlib:1.0.1"))
|
include(dependency("org.bstats:"))
|
||||||
}
|
}
|
||||||
relocate("io.papermc.lib", "com.sk89q.worldedit.bukkit.paperlib") {
|
relocate("io.papermc.lib", "com.sk89q.worldedit.bukkit.paperlib") {
|
||||||
include(dependency("io.papermc:paperlib:1.0.6"))
|
include(dependency("io.papermc:paperlib"))
|
||||||
}
|
}
|
||||||
relocate("it.unimi.dsi.fastutil", "com.sk89q.worldedit.bukkit.fastutil") {
|
relocate("it.unimi.dsi.fastutil", "com.sk89q.worldedit.bukkit.fastutil") {
|
||||||
include(dependency("it.unimi.dsi:fastutil"))
|
include(dependency("it.unimi.dsi:fastutil"))
|
||||||
}
|
}
|
||||||
relocate("org.bstats", "com.boydti.fawe.metrics") {
|
relocate("de.notmyfault", "com.boydti.fawe") {
|
||||||
include(dependency("org.bstats:bstats-bukkit:2.1.0"))
|
include(dependency("de.notmyfault:serverlib:1.0.1"))
|
||||||
}
|
|
||||||
relocate("org.bstats", "com.boydti.fawe.metrics") {
|
|
||||||
include(dependency("org.bstats:bstats-base:2.1.0"))
|
|
||||||
}
|
}
|
||||||
relocate("com.intellectualsites.paster", "com.boydti.fawe.paster") {
|
relocate("com.intellectualsites.paster", "com.boydti.fawe.paster") {
|
||||||
include(dependency("com.intellectualsites.paster:Paster:1.0.1-SNAPSHOT"))
|
include(dependency("com.intellectualsites.paster:Paster:1.0.1-SNAPSHOT"))
|
||||||
|
@ -22,38 +22,38 @@ repositories {
|
|||||||
|
|
||||||
applyPlatformAndCoreConfiguration()
|
applyPlatformAndCoreConfiguration()
|
||||||
|
|
||||||
configurations {
|
dependencies {
|
||||||
all {
|
constraints {
|
||||||
resolutionStrategy {
|
implementation( "org.yaml:snakeyaml") {
|
||||||
force("com.google.guava:guava:21.0")
|
version { strictly("1.26") }
|
||||||
}
|
because("Bukkit provides SnakeYaml")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
|
||||||
api(project(":worldedit-libs:core"))
|
api(project(":worldedit-libs:core"))
|
||||||
implementation("de.schlichtherle:truezip:6.8.4")
|
implementation("de.schlichtherle:truezip:6.8.4")
|
||||||
implementation("net.java.truevfs:truevfs-profile-default_2.13:0.12.2")
|
implementation("net.java.truevfs:truevfs-profile-default_2.13:0.12.1")
|
||||||
implementation("org.mozilla:rhino-runtime:1.7.12")
|
implementation("org.mozilla:rhino-runtime:1.7.13")
|
||||||
implementation("org.yaml:snakeyaml:1.27")
|
implementation("org.yaml:snakeyaml")
|
||||||
implementation("com.google.guava:guava:21.0")
|
implementation("com.google.guava:guava")
|
||||||
implementation("com.google.code.findbugs:jsr305:3.0.2")
|
implementation("com.google.code.findbugs:jsr305:1.3.9")
|
||||||
implementation("com.google.code.gson:gson:2.8.6")
|
implementation("com.google.code.gson:gson")
|
||||||
implementation("org.slf4j:slf4j-api:1.7.26")
|
implementation("org.slf4j:slf4j-api:${Versions.SLF4J}")
|
||||||
implementation("it.unimi.dsi:fastutil:8.4.4")
|
implementation("it.unimi.dsi:fastutil")
|
||||||
|
|
||||||
antlr("org.antlr:antlr4:4.7.2")
|
val antlrVersion = "4.9.1"
|
||||||
implementation("org.antlr:antlr4-runtime:4.7.2")
|
antlr("org.antlr:antlr4:$antlrVersion")
|
||||||
|
implementation("org.antlr:antlr4-runtime:$antlrVersion")
|
||||||
|
|
||||||
implementation("com.googlecode.json-simple:json-simple:1.1.1") { isTransitive = false }
|
implementation("com.googlecode.json-simple:json-simple:1.1.1") { isTransitive = false }
|
||||||
compileOnly(project(":worldedit-libs:core:ap"))
|
compileOnly(project(":worldedit-libs:core:ap"))
|
||||||
annotationProcessor(project(":worldedit-libs:core:ap"))
|
annotationProcessor(project(":worldedit-libs:core:ap"))
|
||||||
// ensure this is on the classpath for the AP
|
// ensure this is on the classpath for the AP
|
||||||
annotationProcessor("com.google.guava:guava:21.0")
|
annotationProcessor("com.google.guava:guava:21.0")
|
||||||
compileOnly("com.google.auto.value:auto-value-annotations:1.7")
|
compileOnly("com.google.auto.value:auto-value-annotations:${Versions.AUTO_VALUE}")
|
||||||
annotationProcessor("com.google.auto.value:auto-value:1.7")
|
annotationProcessor("com.google.auto.value:auto-value:${Versions.AUTO_VALUE}")
|
||||||
testImplementation("ch.qos.logback:logback-core:1.2.3")
|
testImplementation("ch.qos.logback:logback-core:${Versions.LOGBACK}")
|
||||||
testImplementation("ch.qos.logback:logback-classic:1.2.3")
|
testImplementation("ch.qos.logback:logback-classic:${Versions.LOGBACK}")
|
||||||
implementation("com.github.luben:zstd-jni:1.4.8-2")
|
implementation("com.github.luben:zstd-jni:1.4.8-2")
|
||||||
compileOnly("net.fabiozumbi12:redprotect:1.9.6")
|
compileOnly("net.fabiozumbi12:redprotect:1.9.6")
|
||||||
api("com.github.intellectualsites.plotsquared:PlotSquared-API:4.514") { isTransitive = false }
|
api("com.github.intellectualsites.plotsquared:PlotSquared-API:4.514") { isTransitive = false }
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren