From 41a3eff5384f1dcfa18ff4546fa48c36f1f0660e Mon Sep 17 00:00:00 2001 From: Michael Bayne Date: Fri, 12 Aug 2011 16:22:36 -0700 Subject: [PATCH] Build file tweaks. --- build.sbt | 15 +++++++++++++++ pom.xml | 4 +--- 2 files changed, 16 insertions(+), 3 deletions(-) diff --git a/build.sbt b/build.sbt index bb20bf6..272384d 100644 --- a/build.sbt +++ b/build.sbt @@ -8,7 +8,22 @@ crossPaths := false javacOptions ++= Seq("-Xlint", "-Xlint:-serial") +autoScalaLibrary := false // no scala-library dependency + libraryDependencies ++= Seq( "junit" % "junit" % "4.+" % "test", "com.novocode" % "junit-interface" % "0.7" % "test->default" ) + +// add our sources to the main jar file +unmanagedResourceDirectories in Compile <+= baseDirectory / "src/main/java" + +// work around SBT bug +unmanagedResources in Compile ~= (_.filterNot(_.isDirectory)) + +// this hackery causes publish-local to install to ~/.m2/repository instead of ~/.ivy +otherResolvers := Seq(Resolver.file("dotM2", file(Path.userHome + "/.m2/repository"))) + +publishLocalConfiguration <<= (packagedArtifacts, deliverLocal, ivyLoggingLevel) map { + (arts, _, level) => new PublishConfiguration(None, "dotM2", arts, level) +} diff --git a/pom.xml b/pom.xml index e8193e7..1afc821 100644 --- a/pom.xml +++ b/pom.xml @@ -6,9 +6,7 @@ jar 1.1-SNAPSHOT pythagoras - - Portable geometry routines, adapted from Apache Harmony geometry classes. - + A portable geometry library. http://github.com/samskivert/pythagoras/ http://github.com/samskivert/pythagoras/issues