Skip to content

Commit 381d31e

Browse files
committed
changed publish style
1 parent 58896c9 commit 381d31e

File tree

2 files changed

+10
-4
lines changed

2 files changed

+10
-4
lines changed

project/SquerylBuild.scala

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,10 +48,12 @@ object SquerylBuild extends Build {
4848
<url>https://github.com/davewhittaker</url>
4949
</developer>
5050
</developers>),
51-
publishTo := Some(Resolver.file("file", file("target/publish"))),
52-
publish ~= {_ =>
53-
val script = Path.userHome / ".sbt/publish"
54-
if (script.exists) "%s %s".format(script.getAbsolutePath, file("target/publish").getAbsolutePath) !
51+
publishTo <<= version { (v: String) =>
52+
val nexus = "https://oss.sonatype.org/"
53+
if (v.trim.endsWith("SNAPSHOT"))
54+
Some("snapshots" at nexus + "content/repositories/snapshots")
55+
else
56+
Some("releases" at nexus + "service/local/staging/deploy/maven2")
5557
},
5658
publishArtifact in Test := false,
5759
pomIncludeRepository := { _ => false },

project/plugins.sbt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
//LS Plugin
22
resolvers ++= Seq(
3+
Resolver.url("sbt-plugin-releases",
4+
new URL("http://scalasbt.artifactoryonline.com/scalasbt/sbt-plugin-releases/"))(Resolver.ivyStylePatterns),
35
"less is" at "http://repo.lessis.me",
46
"coda" at "http://repo.codahale.com")
57

68
//addSbtPlugin("me.lessis" % "ls-sbt" % "0.1.1")
9+
10+
addSbtPlugin("com.typesafe.sbt" % "sbt-pgp" % "0.7")

0 commit comments

Comments
 (0)