gradle - Make one source set dependent on another -
i have integration test source set in gradle, , dependent on main classes being compiled. set doing
integrationtestclasses.dependson 'classes'
is way it, or there way setup dependencies on source sets happens automatically? in configurations
block have
integrationtestcompile { extendsfrom testcompile } integrationtestruntime { extendsfrom integrationtestcompile, testruntime }
what's missing is:
dependencies { integrationtestcompile sourcesets.main.output }
with in place, task dependencies should established automatically.
Comments
Post a Comment