gradle project dependencies
Answered
How do I add a gradle project as a dependency of another gradle project? I tried to add it like so:
dependencies {
compile project(':cache_data')
}
But this seems to cause problems because I've already attached that project into the current project. I did this because I want to edit both projects.
I also tried to add 'cache_data' as a dependency using the Project Strcuture -> Modules window, but syncing gradle overwrites this.
Please sign in to leave a comment.
Make a multi project and import it in IDEA: https://docs.gradle.org/current/userguide/multi_project_builds.html.
BTW this is for 2016.3.1. I believe this (or something similar) was supported in IntelliJ 14.
That works great! Thank you.
Any chances for having project dependencies between gradle projects generated *without* using multi-project builds?
https://docs.gradle.org/3.1/release-notes.html#composite-builds is another way.