Files
pythagoras/build.sbt
T
Michael Bayne 6a4c46114e Don't publish to the Maven repository from SBT.
We need SBT to publish to the local Ivy repository, so that we can reference
snapshots from other SBT projects. Pulling a snapshot from the local Maven
repository just doesn't seem to work with SBT+Ivy.
2011-09-06 15:51:32 -07:00

28 lines
754 B
Scala

name := "pythagoras"
version := "1.1-SNAPSHOT"
organization := "com.samskivert"
crossPaths := false
javacOptions ++= Seq(
"-Xlint", "-Xlint:-serial", "-source", "1.6", "-target", "1.6"
)
autoScalaLibrary := false // no scala-library dependency
libraryDependencies ++= Seq(
"junit" % "junit" % "4.+" % "test",
"com.novocode" % "junit-interface" % "0.7" % "test->default"
)
// 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)
unmanagedResourceDirectories in Compile <+= baseDirectory / "src/main/java"
// work around SBT bug
unmanagedResources in Compile ~= (_.filterNot(_.isDirectory))