Do not try crowdin if using offline mode

This commit is contained in:
Octavia Togami 2020-02-23 17:39:30 -08:00
parent bfbf9a4862
commit ae1e68e10f
No known key found for this signature in database
GPG Key ID: CC364524D1983C99

View File

@ -93,7 +93,7 @@
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"