mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2025-07-04 12:06:41 +00:00
Gradle Upgrades and Clipboard Refactoring
This commit is contained in:
@ -114,7 +114,7 @@ tasks.named<ShadowJar>("shadowJar") {
|
||||
|
||||
val crowdinApiKey = "crowdin_apikey"
|
||||
|
||||
if (project.hasProperty(crowdinApiKey)) {
|
||||
if (project.hasProperty(crowdinApiKey) && !gradle.startParameter.isOffline) {
|
||||
tasks.named<UploadSourceFileTask>("crowdinUpload") {
|
||||
apiKey = "${project.property(crowdinApiKey)}"
|
||||
projectId = "worldedit-core"
|
||||
@ -126,12 +126,19 @@ if (project.hasProperty(crowdinApiKey)) {
|
||||
)
|
||||
}
|
||||
|
||||
tasks.named<DownloadTranslationsTask>("crowdinDownload") {
|
||||
val dlTranslationsTask = tasks.named<DownloadTranslationsTask>("crowdinDownload") {
|
||||
apiKey = "${project.property(crowdinApiKey)}"
|
||||
destination = "${file("build/resources/main/lang")}"
|
||||
destination = "${buildDir.resolve("crowdin-i18n")}"
|
||||
projectId = "worldedit-core"
|
||||
}
|
||||
|
||||
tasks.named<Copy>("processResources") {
|
||||
dependsOn(dlTranslationsTask)
|
||||
from(dlTranslationsTask.get().destination) {
|
||||
into("lang")
|
||||
}
|
||||
}
|
||||
|
||||
tasks.named("classes").configure {
|
||||
dependsOn("crowdinDownload")
|
||||
}
|
||||
|
Reference in New Issue
Block a user