tasks to move generated ts files to mod project

This commit is contained in:
Adam 2021-11-03 12:08:07 +01:00
parent 5ffd5010e4
commit 464d4c28fb
4 changed files with 177 additions and 7 deletions

View file

@ -74,11 +74,11 @@ project.tasks.withType<ProtobufCompileTask> {
val aggregateTask = project.tasks.register<Sync>("protobufCompileAll") {
group = Constants.PBG_TASK_GROUP
dependsOn(tasks.withType<ProtobufCompileTask>())
val pbCompileTasks = tasks.withType<ProtobufCompileTask>()
dependsOn(pbCompileTasks)
val genSrcDir = project.layout.pbAndGBuildDir.map { it.dir("generated-sources") }
val pbCompileTasks = tasks.withType<ProtobufCompileTask>()
from(pbCompileTasks.map { it.temporaryDir })
into(genSrcDir)
includeEmptyDirs = false