chrisbanes/gradle-mvn-push

Transitive dependencies with Gradle 4.x

tobrun opened this issue · 2 comments

The introduction Gradle 4.x has broken resolving transitive dependencies from libraries published with the plugin provided in this repository.

Use-case:

  • have a library with an api dependency
  • publish that library to maven
  • consume that external library

Expected behaviour:

  • dependency is availlalble at compile and runtime

Actual behaviour:

  • dependency is not available

More info in dcendents/android-maven-gradle-plugin#61

cc @chrisbanes

After digging into this found that there's some kind of conflict when including transitive dependencies which use different versions of Gradle (it seems like a Gradle bug).

Using the same Gradle version to generate the different libraries solves OP.

After more digging and testing found that wasn’t any conflict and it was because transitive dependencies weren’t exposed correctly. Good to close here @tobrun