简体   繁体   中英

How to reference to library if it's not in project structure in Gradle?

Maven stores artifacts in local repository so i can build library and project separately and library reference (dependency) in project can be resolved if library is already installed in local repository. How to do it using Gradle? (relates to android and java projects)

CI builds should always share binaries via a binary repository (eg Artifactory or Nexus), not via a local repository. If you want to share the library as source, You can have two multi-project builds that both include the library as a subproject. Subprojects can be located anywhere on the file system; for details, see the "multi-project builds" chapter in the Gradle User Guide .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM