aboutsummaryrefslogtreecommitdiff
path: root/project
diff options
context:
space:
mode:
authorIsmael Juma <ismael@juma.me.uk>2011-07-31 20:17:12 +0100
committerIsmael Juma <ismael@juma.me.uk>2011-07-31 20:17:58 +0100
commit3f5d7b5d1154b5661cff8741efc49c70c76b3f47 (patch)
treecb315bdd7dba532e981ddca9495c9cb5714bf8ac /project
parent7565cc2e339c26f1212f67c00ed68d38d56840b0 (diff)
downloadspark-3f5d7b5d1154b5661cff8741efc49c70c76b3f47.tar.gz
spark-3f5d7b5d1154b5661cff8741efc49c70c76b3f47.tar.bz2
spark-3f5d7b5d1154b5661cff8741efc49c70c76b3f47.zip
Add publishTo configuration that publishes to target directory.
Until Spark is available in a Maven repository, this makes it easy to deploy to e.g. GitHub pages by copying target/maven to the repository.
Diffstat (limited to 'project')
-rw-r--r--project/SparkBuild.scala1
1 files changed, 1 insertions, 0 deletions
diff --git a/project/SparkBuild.scala b/project/SparkBuild.scala
index 456c0da0db..3f37da5139 100644
--- a/project/SparkBuild.scala
+++ b/project/SparkBuild.scala
@@ -22,6 +22,7 @@ object SparkBuild extends Build {
retrieveManaged := true,
transitiveClassifiers in Scope.GlobalScope := Seq("sources"),
testListeners <<= target.map(t => Seq(new eu.henkelmann.sbt.JUnitXmlTestsListener(t.getAbsolutePath))),
+ publishTo <<= baseDirectory { base => Some(Resolver.file("Local", base / "target" / "maven" asFile)(Patterns(true, Resolver.mavenStyleBasePattern))) },
libraryDependencies ++= Seq(
"org.eclipse.jetty" % "jetty-server" % "7.4.2.v20110526",
"org.scalatest" % "scalatest_2.9.0" % "1.6.1" % "test",