mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2024-12-23 09:47:38 +00:00
Fixed gradle setup
This commit is contained in:
parent
96e56bdd0c
commit
1cca2182a9
@ -90,29 +90,25 @@ 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") {
|
projectId = "worldedit-core"
|
||||||
apiKey = crowdinApiKey
|
files = arrayOf(
|
||||||
projectId = "worldedit-core"
|
object {
|
||||||
files = arrayOf(
|
var name = "strings.json"
|
||||||
object {
|
var source = "$projectDir/src/main/resources/lang/strings.json"
|
||||||
var name = "strings.json"
|
}
|
||||||
var source = "$projectDir/src/main/resources/lang/strings.json"
|
)
|
||||||
}
|
}
|
||||||
)
|
|
||||||
}
|
tasks.named<DownloadTranslationsTask>("crowdinDownload") {
|
||||||
|
apiKey = "${project.property(crowdinApiKey)}"
|
||||||
tasks.named<DownloadTranslationsTask>("crowdinDownload") {
|
destination = "$projectDir/src/main/resources/lang"
|
||||||
apiKey = crowdinApiKey
|
projectId = "worldedit-core"
|
||||||
destination = "$projectDir/src/main/resources/lang"
|
}
|
||||||
projectId = "worldedit-core"
|
|
||||||
}
|
tasks.named("processResources").configure {
|
||||||
|
dependsOn("crowdinDownload")
|
||||||
tasks.named("processResources").configure {
|
|
||||||
dependsOn("crowdinDownload")
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user