Minor build script changes

Dieser Commit ist enthalten in:
MattBDev 2021-02-04 17:06:49 -05:00
Ursprung ac16c9a2ba
Commit f3d4621589
2 geänderte Dateien mit 5 neuen und 41 gelöschten Zeilen

Datei anzeigen

@ -48,10 +48,6 @@ val properties = Properties().also { props ->
props.load(it) props.load(it)
} }
} }
/*
val loomVersion: String = properties.getProperty("loom.version")
val mixinVersion: String = properties.getProperty("mixin.version")
*/
dependencies { dependencies {
implementation(gradleApi()) implementation(gradleApi())

Datei anzeigen

@ -22,11 +22,13 @@ repositories {
applyPlatformAndCoreConfiguration() applyPlatformAndCoreConfiguration()
configurations.all { configurations {
all {
resolutionStrategy { resolutionStrategy {
force("com.google.guava:guava:21.0") force("com.google.guava:guava:21.0")
} }
} }
}
dependencies { dependencies {
api(project(":worldedit-libs:core")) api(project(":worldedit-libs:core"))
@ -111,37 +113,3 @@ tasks.named<ShadowJar>("shadowJar") {
} }
} }
/*
val crowdinApiKey = "crowdin_apikey"
if (project.hasProperty(crowdinApiKey) && !gradle.startParameter.isOffline) {
tasks.named<UploadSourceFileTask>("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<DownloadTranslationsTask>("crowdinDownload") {
apiKey = "${project.property(crowdinApiKey)}"
destination = "${buildDir.resolve("crowdin-i18n")}"
projectId = "worldedit-core"
}
tasks.named<Copy>("processResources") {
dependsOn(dlTranslationsTask)
from(dlTranslationsTask.get().destination) {
into("lang")
}
}
tasks.named("classes") {
dependsOn("crowdinDownload")
}
}
*/