From f3d46215890de2d6850dd8a2ff41dec115f29209 Mon Sep 17 00:00:00 2001 From: MattBDev <4009945+MattBDev@users.noreply.github.com> Date: Thu, 4 Feb 2021 17:06:49 -0500 Subject: [PATCH] Minor build script changes --- buildSrc/build.gradle.kts | 4 ---- worldedit-core/build.gradle.kts | 42 ++++----------------------------- 2 files changed, 5 insertions(+), 41 deletions(-) diff --git a/buildSrc/build.gradle.kts b/buildSrc/build.gradle.kts index 16abd68fb..c0f2746a6 100644 --- a/buildSrc/build.gradle.kts +++ b/buildSrc/build.gradle.kts @@ -48,10 +48,6 @@ val properties = Properties().also { props -> props.load(it) } } -/* -val loomVersion: String = properties.getProperty("loom.version") -val mixinVersion: String = properties.getProperty("mixin.version") - */ dependencies { implementation(gradleApi()) diff --git a/worldedit-core/build.gradle.kts b/worldedit-core/build.gradle.kts index f879a2034..eb63caafa 100644 --- a/worldedit-core/build.gradle.kts +++ b/worldedit-core/build.gradle.kts @@ -22,9 +22,11 @@ repositories { applyPlatformAndCoreConfiguration() -configurations.all { - resolutionStrategy { - force("com.google.guava:guava:21.0") +configurations { + all { + resolutionStrategy { + force("com.google.guava:guava:21.0") + } } } @@ -111,37 +113,3 @@ tasks.named("shadowJar") { } } -/* -val crowdinApiKey = "crowdin_apikey" - -if (project.hasProperty(crowdinApiKey) && !gradle.startParameter.isOffline) { - tasks.named("crowdinUpload") { - apiKey = "${project.property(crowdinApiKey)}" - projectId = "worldedit-core" - files = arrayOf( - object { - var name = "strings.json" - var source = "${file("src/main/resources/lang/strings.json")}" - } - ) - } - - val dlTranslationsTask = tasks.named("crowdinDownload") { - apiKey = "${project.property(crowdinApiKey)}" - destination = "${buildDir.resolve("crowdin-i18n")}" - projectId = "worldedit-core" - } - - tasks.named("processResources") { - dependsOn(dlTranslationsTask) - from(dlTranslationsTask.get().destination) { - into("lang") - } - } - - tasks.named("classes") { - dependsOn("crowdinDownload") - } -} - - */