[Forge] Include all -core resources, for all langs

This commit is contained in:
Octavia Togami 2020-02-03 21:26:13 -08:00
parent 38f3f8e667
commit 92eab931ea
No known key found for this signature in database
GPG Key ID: CC364524D1983C99
2 changed files with 10 additions and 3 deletions

View File

@ -105,12 +105,19 @@
)
}
tasks.named<DownloadTranslationsTask>("crowdinDownload") {
val dlTranslationsTask = tasks.named<DownloadTranslationsTask>("crowdinDownload") {
apiKey = "${project.property(crowdinApiKey)}"
destination = "${file("build/resources/main/lang")}"
destination = "${buildDir.resolve("crowdin-i18n")}"
projectId = "worldedit-core"
}
tasks.named<Copy>("processResources") {
dependsOn(dlTranslationsTask)
from(dlTranslationsTask.get().destination) {
into("lang")
}
}
tasks.named("classes").configure {
dependsOn("crowdinDownload")
}

View File

@ -77,7 +77,7 @@
}
// copy from -core resources as well
from(project(":worldedit-core").sourceSets["main"].resources.srcDirs)
from(project(":worldedit-core").tasks.named("processResources"))
}
tasks.named<Jar>("jar") {