I have a Play project that is intended to be a library that I would like to publish locally during development phase.
I can achieve this by running publish-local
My question is how to add dependency in the main project so that in the main project we could access the utilities defined in the local library?
It seems I need to add the dependency in Build.scala. Here's what I would do for external libray: "com.google.inject" % "guice" % "3.0"
What would I do in this case?
You must add a Resolver
precising your local ivy repository:
resolvers += Resolver.file("Local repo", file("/home/USER/.ivy2/local"))(Resolver.ivyStylePatterns)
You may want to manage resolvers ordering/priorities (meaning, start searching from local repo, then if not found, try external repositories). In this case, you must deal with Proxy Repositories .
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.