Skip to content
This repository has been archived by the owner on Sep 18, 2021. It is now read-only.

Commit

Permalink
allow building open source only
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanking committed Apr 22, 2011
1 parent e2494dc commit 948d31c
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion project/plugins/Plugins.scala
@@ -1,7 +1,20 @@
import sbt._

class Plugins(info: sbt.ProjectInfo) extends sbt.PluginDefinition(info) {
val twitterMaven = "twitter.com" at "http://maven.twttr.com/"
import scala.collection.jcl
val environment = jcl.Map(System.getenv())
def isSBTOpenTwitter = environment.get("SBT_OPEN_TWITTER").isDefined
def isSBTTwitter = environment.get("SBT_TWITTER").isDefined

override def repositories = if (isSBTOpenTwitter) {
Set("twitter.artifactory" at "http://artifactory.local.twitter.com/open-source/")
} else if (isSBTTwitter) {
Set("twitter.artifactory" at "http://artifactory.local.twitter.com/repo/")
} else {
super.repositories ++ Seq("twitter.com" at "http://maven.twttr.com/")
}
override def ivyRepositories = Seq(Resolver.defaultLocal(None)) ++ repositories

val defaultProject = "com.twitter" % "standard-project" % "0.11.3"
val sbtThrift = "com.twitter" % "sbt-thrift" % "1.1.0"

Expand Down

0 comments on commit 948d31c

Please sign in to comment.