mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2024-12-23 09:47:38 +00:00
Only download translations if a key is provided
This commit is contained in:
parent
9a01bf9ab2
commit
f3c97887bc
@ -90,8 +90,7 @@ sourceSets {
|
|||||||
|
|
||||||
val crowdinApiKey = "crowdin_apikey"
|
val crowdinApiKey = "crowdin_apikey"
|
||||||
|
|
||||||
if (!project.hasProperty(crowdinApiKey)) ext[crowdinApiKey] = ""
|
if (project.hasProperty(crowdinApiKey)) {
|
||||||
|
|
||||||
tasks.named<UploadSourceFileTask>("crowdinUpload") {
|
tasks.named<UploadSourceFileTask>("crowdinUpload") {
|
||||||
apiKey = "${project.property(crowdinApiKey)}"
|
apiKey = "${project.property(crowdinApiKey)}"
|
||||||
projectId = "worldedit-core"
|
projectId = "worldedit-core"
|
||||||
@ -112,3 +111,4 @@ tasks.named<DownloadTranslationsTask>("crowdinDownload") {
|
|||||||
tasks.named("processResources").configure {
|
tasks.named("processResources").configure {
|
||||||
dependsOn("crowdinDownload")
|
dependsOn("crowdinDownload")
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user