From 45b11b6f7c4636ec3a33f9808d564f2e8fd67a1c Mon Sep 17 00:00:00 2001 From: Michael Bayne Date: Tue, 20 Dec 2011 19:12:27 -0800 Subject: [PATCH] Use sbt-pom-util to get SBT build info from POM. --- build.sbt | 23 ++++++++++------------- project/plugins.sbt | 1 + 2 files changed, 11 insertions(+), 13 deletions(-) create mode 100644 project/plugins.sbt diff --git a/build.sbt b/build.sbt index 9dc8995..3c48ce0 100644 --- a/build.sbt +++ b/build.sbt @@ -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" diff --git a/project/plugins.sbt b/project/plugins.sbt new file mode 100644 index 0000000..bc4c2c7 --- /dev/null +++ b/project/plugins.sbt @@ -0,0 +1 @@ +libraryDependencies += "com.samskivert" % "sbt-pom-util" % "0.1"