Use sbt-pom-util to get SBT build info from POM.
This commit is contained in:
@@ -1,24 +1,21 @@
|
||||
name := "pythagoras"
|
||||
|
||||
version := "1.2-SNAPSHOT"
|
||||
|
||||
organization := "com.samskivert"
|
||||
seq(samskivert.POMUtil.pomToSettings("pom.xml") :_*)
|
||||
|
||||
crossPaths := false
|
||||
|
||||
javacOptions ++= Seq(
|
||||
"-Xlint", "-Xlint:-serial", "-source", "1.6", "-target", "1.6"
|
||||
)
|
||||
scalaVersion := "2.9.1"
|
||||
|
||||
autoScalaLibrary := false // no scala-library dependency
|
||||
|
||||
libraryDependencies ++= Seq(
|
||||
"junit" % "junit" % "4.+" % "test",
|
||||
"com.novocode" % "junit-interface" % "0.7" % "test->default"
|
||||
)
|
||||
javacOptions ++= Seq("-Xlint", "-Xlint:-serial", "-source", "1.6", "-target", "1.6")
|
||||
|
||||
// filter the super-source directory from the build
|
||||
unmanagedSources in Compile ~= (_.filterNot(_.getPath.indexOf("pythagoras/gwt") != -1))
|
||||
|
||||
// add our sources to the main jar file (including super-sources)
|
||||
// include source in our jar for GWT
|
||||
unmanagedResourceDirectories in Compile <+= baseDirectory / "src/main/java"
|
||||
|
||||
// disable doc publishing, TODO: reenable when scaladoc doesn't choke on our code
|
||||
publishArtifact in (Compile, packageDoc) := false
|
||||
|
||||
// allows SBT to run junit tests
|
||||
libraryDependencies += "com.novocode" % "junit-interface" % "0.7" % "test->default"
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
libraryDependencies += "com.samskivert" % "sbt-pom-util" % "0.1"
|
||||
Reference in New Issue
Block a user