Skip to content
Permalink
Browse files
[Forge] Include all -core resources, for all langs
  • Loading branch information
octylFractal committed Feb 4, 2020
1 parent 38f3f8e commit 92eab931ead2c722727acfb9b5426545c36d3120
Showing 2 changed files with 10 additions and 3 deletions.
@@ -105,12 +105,19 @@ if (project.hasProperty(crowdinApiKey)) {
)
}

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")
}
@@ -77,7 +77,7 @@ tasks.named<Copy>("processResources") {
}

// 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") {

0 comments on commit 92eab93

Please sign in to comment.