Make one source set dependent on another

后端 未结 2 755
执笔经年
执笔经年 2021-02-18 21:58

I have an integration test source set in gradle, and it is dependent on my main classes being compiled. I set that up by doing

integrationTestClasses.dependsOn \         


        
2条回答
  •  不知归路
    2021-02-18 22:27

    What's missing is:

    dependencies {
        integrationTestCompile sourceSets.main.output
    }
    

    With this in place, task dependencies should be established automatically.

提交回复
热议问题