Use sbt-pom-util to get SBT build info from POM.
This commit is contained in:
@@ -1,24 +1,21 @@
|
|||||||
name := "pythagoras"
|
seq(samskivert.POMUtil.pomToSettings("pom.xml") :_*)
|
||||||
|
|
||||||
version := "1.2-SNAPSHOT"
|
|
||||||
|
|
||||||
organization := "com.samskivert"
|
|
||||||
|
|
||||||
crossPaths := false
|
crossPaths := false
|
||||||
|
|
||||||
javacOptions ++= Seq(
|
scalaVersion := "2.9.1"
|
||||||
"-Xlint", "-Xlint:-serial", "-source", "1.6", "-target", "1.6"
|
|
||||||
)
|
|
||||||
|
|
||||||
autoScalaLibrary := false // no scala-library dependency
|
autoScalaLibrary := false // no scala-library dependency
|
||||||
|
|
||||||
libraryDependencies ++= Seq(
|
javacOptions ++= Seq("-Xlint", "-Xlint:-serial", "-source", "1.6", "-target", "1.6")
|
||||||
"junit" % "junit" % "4.+" % "test",
|
|
||||||
"com.novocode" % "junit-interface" % "0.7" % "test->default"
|
|
||||||
)
|
|
||||||
|
|
||||||
// filter the super-source directory from the build
|
// filter the super-source directory from the build
|
||||||
unmanagedSources in Compile ~= (_.filterNot(_.getPath.indexOf("pythagoras/gwt") != -1))
|
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"
|
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