Fixed issues brought up in review

This commit is contained in:
Matthew Miller
2019-11-18 19:50:52 +10:00
parent 625be46b30
commit ded86d4872
19 changed files with 76 additions and 41 deletions

View File

@ -95,20 +95,20 @@ if (project.hasProperty(crowdinApiKey)) {
apiKey = "${project.property(crowdinApiKey)}"
projectId = "worldedit-core"
files = arrayOf(
object {
var name = "strings.json"
var source = "$projectDir/src/main/resources/lang/strings.json"
}
object {
var name = "strings.json"
var source = "${file("src/main/resources/lang/strings.json")}"
}
)
}
tasks.named<DownloadTranslationsTask>("crowdinDownload") {
apiKey = "${project.property(crowdinApiKey)}"
destination = "$projectDir/src/main/resources/lang"
destination = "${file("build/resources/main/lang")}"
projectId = "worldedit-core"
}
tasks.named("processResources").configure {
tasks.named("classes").configure {
dependsOn("crowdinDownload")
}
}