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 -

Qt QGraphicsScene is not accessable from QGraphicsView (on Qt 5.6.1) -

Python Tornado package error when running server -