I have a mini-application in my source code which I am trying to move to a separate subproject. However, the mini-application depends on the main project. How would one set up a build.gradle
file to reflect this?
Here is my directory structure:
/
src/
main/java/<main project source>
build.gradle
settings.gradle
subproject/
src/
main/java/<subproject source>
build.gradle
I was thinking that one could do something like this in the build.gradle
file for the subproject:
build.dependsOn ":build"
But that doesn't seem to work.