java - Gradle dependencies of local dependency -
so let's have project a, requires dependencies. , have project b, has project 1 of dependencies. have following code in project b's build.gradle:
project b's build.gradle:
dependencies { compile files("projecta_dir/build/libs/projecta.jar") }
however, since gradle not include project a's dependencies in projecta.jar default. wondering if there's way let project b compile project without creating fatjar project a.
the jar file doesn't contain transitive dependencies , doesn't have pom file describes dependencies used module.
it means that, if importing jar file using compile files
you have specify dependencies in project.
you should use maven repository, private or public, avoid issue.
in case, gradle downloads dependencies using pom file contains dependencies list.
Comments
Post a Comment