You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 25, 2021. It is now read-only.
I maintain an Android library project where the dcendents.android-maven plugin is used to deploy to mavenLocal while developing and the gradle-nexus-plugin is used to publish to an internal Nexus repository.
The following Gradle configuration is used:
Top level build.gradle
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
repositories {
jcenter()
}
dependencies {
classpath "com.android.tools.build:gradle:2.1.3"
classpath "com.neenbedankt.gradle.plugins:android-apt:1.8"
}
}
allprojects {
repositories {
jcenter()
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}
As you can see from the configuration the library itself depends on Google support libraries.
The problem
When integrating the library in an application project I noticed that the transitive dependencies of the library (speaking of the Google support libraries) can not be found by Gradle. This only happens when I reference mavenLocal(). When I reference the Nexus repository everything is fine.
When I compare the pom files from mavenLocal() and Nexus it can be seen that the one deployed to mavenLocal() is missing the transitive dependencies.
Sorry I lack personal time right now to work on this project and I'm not currently working on Android projects at work either at the moment so it's a bit hard to test all the different issues that are reported.
I need to build some test project(s) to cover all the different scenarios and I plan to work on that next.
Otherwise concerning your particular issue I will need to review the gradle-nexus-plugin to understand what it is doing differently.
I maintain an Android library project where the dcendents.android-maven plugin is used to deploy to mavenLocal while developing and the gradle-nexus-plugin is used to publish to an internal Nexus repository.
The following Gradle configuration is used:
Top level build.gradle
Library build.gradle
As you can see from the configuration the library itself depends on Google support libraries.
The problem
When integrating the library in an application project I noticed that the transitive dependencies of the library (speaking of the Google support libraries) can not be found by Gradle. This only happens when I reference mavenLocal(). When I reference the Nexus repository everything is fine.
When I compare the pom files from mavenLocal() and Nexus it can be seen that the one deployed to mavenLocal() is missing the transitive dependencies.
Pom file from mavenLocal
Pom file from Nexus
Related issues
The text was updated successfully, but these errors were encountered: