geforkt von Mirrors/FastAsyncWorldEdit
Fixed gradle setup
Dieser Commit ist enthalten in:
Ursprung
96e56bdd0c
Commit
1cca2182a9
@ -90,13 +90,10 @@ sourceSets {
|
|||||||
|
|
||||||
val crowdinApiKey = "crowdin_apikey"
|
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 = "${project.property(crowdinApiKey)}"
|
||||||
tasks.named<UploadSourceFileTask>("crowdinUpload") {
|
|
||||||
apiKey = crowdinApiKey
|
|
||||||
projectId = "worldedit-core"
|
projectId = "worldedit-core"
|
||||||
files = arrayOf(
|
files = arrayOf(
|
||||||
object {
|
object {
|
||||||
@ -104,15 +101,14 @@ fun Project.applyPlatformCrowdInConfig() {
|
|||||||
var source = "$projectDir/src/main/resources/lang/strings.json"
|
var source = "$projectDir/src/main/resources/lang/strings.json"
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
tasks.named<DownloadTranslationsTask>("crowdinDownload") {
|
tasks.named<DownloadTranslationsTask>("crowdinDownload") {
|
||||||
apiKey = crowdinApiKey
|
apiKey = "${project.property(crowdinApiKey)}"
|
||||||
destination = "$projectDir/src/main/resources/lang"
|
destination = "$projectDir/src/main/resources/lang"
|
||||||
projectId = "worldedit-core"
|
projectId = "worldedit-core"
|
||||||
}
|
}
|
||||||
|
|
||||||
tasks.named("processResources").configure {
|
tasks.named("processResources").configure {
|
||||||
dependsOn("crowdinDownload")
|
dependsOn("crowdinDownload")
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren