scala - How to specify a dependency that does not appear in the published artifact? -


i have build contains 2 modules a , b. b depends on a. a contains resources (think: logging configuration). locally, if run sbt task b/console, want a on classpath. however, don't want publish a , hence don't want dependency appear in b's artifact. how can configure this?

you can use 'provided' scope when adding library dependency

librarydependencies += "javax.servlet" % "javax.servlet-api" % "3.0.1" % "provided" 

Comments

Popular posts from this blog

Is there a better way to structure post methods in Class Based Views -

performance - Why is XCHG reg, reg a 3 micro-op instruction on modern Intel architectures? -

jquery - Responsive Navbar with Sub Navbar -