mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2024-11-16 17:16:11 +00:00
Fixed gradle setup
This commit is contained in:
parent
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") {
|
tasks.named<UploadSourceFileTask>("crowdinUpload") {
|
||||||
apiKey = crowdinApiKey
|
apiKey = "${project.property(crowdinApiKey)}"
|
||||||
projectId = "worldedit-core"
|
projectId = "worldedit-core"
|
||||||
files = arrayOf(
|
files = arrayOf(
|
||||||
object {
|
object {
|
||||||
@ -107,7 +104,7 @@ fun Project.applyPlatformCrowdInConfig() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
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"
|
||||||
}
|
}
|
||||||
@ -115,4 +112,3 @@ fun Project.applyPlatformCrowdInConfig() {
|
|||||||
tasks.named("processResources").configure {
|
tasks.named("processResources").configure {
|
||||||
dependsOn("crowdinDownload")
|
dependsOn("crowdinDownload")
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
Loading…
Reference in New Issue
Block a user