Skip to content
Browse files

new plugins boilerplate.

  • Loading branch information...
1 parent af5a066 commit f1b758c71ddbd508331acb7e7eb567e66cc96cae Robey Pointer committed
Showing with 23 additions and 2 deletions.
  1. +23 −2 lib/template/project/plugins.sbt
View
25 lib/template/project/plugins.sbt
@@ -1,3 +1,24 @@
-resolvers += "twitter-repo" at "http://maven.twttr.com"
+sbtResolver <<= (sbtResolver) { r =>
+ Option(System.getenv("SBT_PROXY_REPO")) map { x =>
+ Resolver.url("proxy repo for sbt", url(x))(Resolver.ivyStylePatterns)
+ } getOrElse r
+}
-addSbtPlugin("com.twitter" %% "sbt-scrooge2" % "0.0.1")
+resolvers <<= (resolvers) { r =>
+ (Option(System.getenv("SBT_PROXY_REPO")) map { url =>
+ Seq("proxy-repo" at url)
+ } getOrElse {
+ r ++ Seq(
+ "twitter.com" at "http://maven.twttr.com/",
+ "scala-tools" at "http://scala-tools.org/repo-releases/",
+ "maven" at "http://repo1.maven.org/maven2/",
+ "freemarker" at "http://freemarker.sourceforge.net/maven2/"
+ )
+ }) ++ Seq("local" at ("file:" + System.getProperty("user.home") + "/.m2/repo/"))
+}
+
+externalResolvers <<= (resolvers) map identity
+
+addSbtPlugin("com.twitter" %% "sbt-package-dist" % "1.0.0")
+
+addSbtPlugin("com.twitter" %% "sbt11-scrooge" % "1.0.0")

0 comments on commit f1b758c

Please sign in to comment.
Something went wrong with that request. Please try again.