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 with 10 additions and 3 deletions.
  1. +9 −2 worldedit-core/build.gradle.kts
  2. +1 −1 worldedit-forge/build.gradle.kts
@@ -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.
You can’t perform that action at this time.