Skip to content
This repository has been archived by the owner on Jan 31, 2022. It is now read-only.

Commit

Permalink
Avoid warning with naming clash
Browse files Browse the repository at this point in the history
Warning was:

Multiple resolvers having different access mechanism configured with same name 'sbt-plugin-releases'. To avoid conflict, Remove duplicate project resolvers (`resolvers`) or rename publishing resolver (`publishTo`).
  • Loading branch information
Philip Wills committed Sep 30, 2013
1 parent 7589a5d commit f0bdaa3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions build.sbt
Expand Up @@ -10,9 +10,9 @@ publishTo := {
val isSnapshot = version.value.contains("-SNAPSHOT")
val scalasbt = "http://scalasbt.artifactoryonline.com/scalasbt/"
val (name, url) = if (isSnapshot)
("sbt-plugin-snapshots", scalasbt+"sbt-plugin-snapshots")
("typesafe-sbt-plugin-snapshots", scalasbt+"sbt-plugin-snapshots")
else
("sbt-plugin-releases", scalasbt+"sbt-plugin-releases")
("typesafe-sbt-plugin-releases", scalasbt+"sbt-plugin-releases")
Some(Resolver.url(name, new URL(url))(Resolver.ivyStylePatterns))
}

Expand Down

0 comments on commit f0bdaa3

Please sign in to comment.