3
0
Mirror von https://github.com/IntellectualSites/FastAsyncWorldEdit.git synchronisiert 2024-11-05 02:50:05 +01:00

Fixed gradle setup

Dieser Commit ist enthalten in:
Matthew Miller 2019-10-13 22:06:54 +10:00
Ursprung 96e56bdd0c
Commit 1cca2182a9

Datei anzeigen

@ -90,29 +90,25 @@ sourceSets {
val crowdinApiKey = "crowdin_apikey"
fun Project.applyPlatformCrowdInConfig() {
if (!project.hasProperty(crowdinApiKey)) ext[crowdinApiKey] = ""
if (!project.hasProperty(crowdinApiKey)) ext[crowdinApiKey] = ""
apply(plugin = "com.mendhak.gradlecrowdin")
tasks.named<UploadSourceFileTask>("crowdinUpload") {
apiKey = crowdinApiKey
projectId = "worldedit-core"
files = arrayOf(
object {
var name = "strings.json"
var source = "$projectDir/src/main/resources/lang/strings.json"
}
)
}
tasks.named<DownloadTranslationsTask>("crowdinDownload") {
apiKey = crowdinApiKey
destination = "$projectDir/src/main/resources/lang"
projectId = "worldedit-core"
}
tasks.named("processResources").configure {
dependsOn("crowdinDownload")
}
tasks.named<UploadSourceFileTask>("crowdinUpload") {
apiKey = "${project.property(crowdinApiKey)}"
projectId = "worldedit-core"
files = arrayOf(
object {
var name = "strings.json"
var source = "$projectDir/src/main/resources/lang/strings.json"
}
)
}
tasks.named<DownloadTranslationsTask>("crowdinDownload") {
apiKey = "${project.property(crowdinApiKey)}"
destination = "$projectDir/src/main/resources/lang"
projectId = "worldedit-core"
}
tasks.named("processResources").configure {
dependsOn("crowdinDownload")
}