it fixes the issue A summary of how I manage dependencies. All dependency definitions are defined in gradle/dependencies.gradle, which is applied to all projects and the buildscript. I usually break it into three categories. A full example is here.
will help you I think I found a solution that works in a gradle way. And although, the gradle plugin is unable to resolve properly the dependency between the two javacard projects, the override mechanism of a gradle task allowed me to insert an additional dependency relation. Here is the relevant portion of proj02/build.gradle that did the trick: