scala - How to make an sbt project reference external java sources -
could post code example of how reference external java source directory in sbt project?
if following
override def mainsourceroots = super.mainsourceroots +++ externalsourcepath
the sbt compile task find , compile java sources fail. e.g.
[info] compilation successful. java.lang.runtimeexception: path /full/path/to/java/class/com/foo/bar/someclass.java not in .
sbt 0.9 support external sub-projects. until then, suggest build other 1 jar, , drop results ./lib
.
Comments
Post a Comment