Build file tweaks.
This commit is contained in:
@@ -8,7 +8,22 @@ crossPaths := false
|
|||||||
|
|
||||||
javacOptions ++= Seq("-Xlint", "-Xlint:-serial")
|
javacOptions ++= Seq("-Xlint", "-Xlint:-serial")
|
||||||
|
|
||||||
|
autoScalaLibrary := false // no scala-library dependency
|
||||||
|
|
||||||
libraryDependencies ++= Seq(
|
libraryDependencies ++= Seq(
|
||||||
"junit" % "junit" % "4.+" % "test",
|
"junit" % "junit" % "4.+" % "test",
|
||||||
"com.novocode" % "junit-interface" % "0.7" % "test->default"
|
"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)
|
||||||
|
}
|
||||||
|
|||||||
@@ -6,9 +6,7 @@
|
|||||||
<packaging>jar</packaging>
|
<packaging>jar</packaging>
|
||||||
<version>1.1-SNAPSHOT</version>
|
<version>1.1-SNAPSHOT</version>
|
||||||
<name>pythagoras</name>
|
<name>pythagoras</name>
|
||||||
<description>
|
<description>A portable geometry library.</description>
|
||||||
Portable geometry routines, adapted from Apache Harmony geometry classes.
|
|
||||||
</description>
|
|
||||||
<url>http://github.com/samskivert/pythagoras/</url>
|
<url>http://github.com/samskivert/pythagoras/</url>
|
||||||
<issueManagement>
|
<issueManagement>
|
||||||
<url>http://github.com/samskivert/pythagoras/issues</url>
|
<url>http://github.com/samskivert/pythagoras/issues</url>
|
||||||
|
|||||||
Reference in New Issue
Block a user