Permalink
Browse files

Use isSnapshot key in build

  • Loading branch information...
1 parent 0b22f33 commit fa2a0f00cc21f2abaccc2ca4f5a9b4ce55713084 @mdr mdr committed May 9, 2012
Showing with 6 additions and 8 deletions.
  1. +1 −0 CHANGELOG
  2. +5 −8 project/Build.scala
View
@@ -1,4 +1,5 @@
0.1.3 (..)
+* Add EOF to ComplilationUnit, ensuring entire source is represented in the tree
0.1.2 (7/May/12)
View
@@ -22,7 +22,7 @@ object ScalariformBuild extends Build {
parallelExecution in Test := false,
publishMavenStyle := true,
publishArtifact in Test := false,
- // Workaround for package object Scaladoc error: https://github.com/harrah/xsbt/issues/85
+ // Workaround for package object Scaladoc error (https://github.com/harrah/xsbt/issues/85):
unmanagedClasspath in Compile += Attributed.blank(file("doesnotexist")),
pomIncludeRepository := { _ => false },
EclipseKeys.withSource := true,
@@ -47,13 +47,10 @@ object ScalariformBuild extends Build {
deps :+ scalatestVersion
},
exportJars := true, // Needed for cli oneJar
- publishTo <<= version { (v: String)
- val nexus = "https://oss.sonatype.org/"
- if (v.trim.endsWith("SNAPSHOT"))
- Some("snapshots" at nexus + "content/repositories/snapshots")
- else
- Some("releases" at nexus + "service/local/staging/deploy/maven2")
- }))
+ publishTo <<= isSnapshot(
+ if (_) Some("snapshots" at "https://oss.sonatype.org/content/repositories/snapshots")
+ else Some("releases" at "https://oss.sonatype.org/service/local/staging/deploy/maven2"))
+ ))
lazy val cli = Project("cli", file("cli"), settings = subprojectSettings ++ SbtOneJar.oneJarSettings ++
Seq(

0 comments on commit fa2a0f0

Please sign in to comment.