0

Consider the following project structure:

app
|_subprojA
|   |_build.gradle
|_subprojB
|   |_build.gradle
|_settings.gradle

settings.gradle

include 'subprojA'
include 'subprojB'

build.gradle (subprojA)

...
dependencies {
...
}

build.gradle (subprojB)

...
dependencies {
  compile project(':subprojA')
}

Run ./gradlew subprojA:uploadArchives and ./gradlew subprojB:uploadArchives

another project, try importing com.abc:subprojB:x.y.z complains that subprojA is not available in any repo.

What I want: in my local i want subprojB to point to the local subprojA for ease in development but while publishing subprojB to artifactory i want it to create a transitive dependency on com.abc:subprojA:x.y.z.

6harat
  • 542
  • 6
  • 18
  • How are you publishing the libraries? – Bjørn Vester Mar 25 '21 at 12:38
  • using `maven` plugin ``` uploadArchives { repositories { mavenDeployer { repository(url: "") { authentication(userName: "", password: "") } pom.version = version pom.artifactId = "subprojA" pom.groupId = "com.abc" ``` – 6harat Mar 25 '21 at 14:59

0 Answers0