Also changing the publishTo target for the plugin as per Josh Suereth's suggestion
This commit is contained in:
parent
c3e90352a3
commit
3e6097e89a
1 changed files with 6 additions and 0 deletions
|
|
@ -274,6 +274,12 @@ object AkkaBuild extends Build {
|
|||
settings = defaultSettings ++ Seq(
|
||||
sbtPlugin := true,
|
||||
publishMavenStyle := false, // SBT Plugins should be published as Ivy
|
||||
publishTo <<= (version) { version: String =>
|
||||
val scalasbt = "http://scalasbt.artifactoryonline.com/scalasbt/"
|
||||
val (name, u) = if (version.contains("-SNAPSHOT")) ("sbt-plugin-snapshots", scalasbt+"sbt-plugin-snapshots")
|
||||
else ("sbt-plugin-releases", scalasbt+"sbt-plugin-releases")
|
||||
Some(Resolver.url(name, url(u))(Resolver.ivyStylePatterns))
|
||||
},
|
||||
scalacOptions in Compile := Seq("-encoding", "UTF-8", "-deprecation", "-unchecked"),
|
||||
scalaVersion := "2.9.1",
|
||||
scalaBinaryVersion <<= scalaVersion
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue