tasks to move generated ts files to mod project
This commit is contained in:
parent
5ffd5010e4
commit
464d4c28fb
4 changed files with 177 additions and 7 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue