What is the syntax for a gradle subproject task depending on a parent project's task?

前端 未结 2 512
刺人心
刺人心 2021-02-15 17:03

I need some help with a Gradle build file. I have some subprojects which depend on tasks in the top folder. I just need to take a test task and split it into two se

2条回答
  •  无人共我
    2021-02-15 17:51

    Just remove the declaration in subprojects and declare your dependency directly in the subproject, in C.gradle:

    runDifferentTests.dependsOn rootProject.bTask
    

提交回复
热议问题