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.

0
5 comments
Avatar
Permanently deleted user

BTW this is for 2016.3.1. I believe this (or something similar) was supported in IntelliJ 14.

0
Avatar
Permanently deleted user

That works great! Thank you.

0
Avatar
Permanently deleted user

Any chances for having project dependencies between gradle projects generated *without* using multi-project builds?

0

Please sign in to leave a comment.