Permalink
Browse files

[split] remove sbt from snowflake

RB_ID=88528
  • Loading branch information...
Ryan King
Ryan King committed Sep 26, 2012
1 parent 34345d8 commit fb21b3cf7fd64acce90cb3949de691d023e5efb1
Showing with 1 addition and 94 deletions.
  1. +1 −1 OWNERS
  2. +0 −9 project/build.properties
  3. +0 −54 project/build/Snowflake.scala
  4. +0 −20 project/plugins/Plugins.scala
  5. +0 −10 project/versions.properties
View
2 OWNERS
@@ -1 +1 @@
-rk
+ryan
View
@@ -1,9 +0,0 @@
-#
-#Tue Mar 16 15:33:33 PDT 2010
-project.name=snowflake
-project.organization=com.twitter.service
-project.version=1.0.1-SNAPSHOT
-sbt.version=0.7.4
-def.scala.version=2.7.7
-build.scala.versions=2.8.1
-project.initialize=false
@@ -1,54 +0,0 @@
-import sbt._
-import com.twitter.sbt._
-import Process._
-
-class SnowflakeProject(info: ProjectInfo) extends StandardServiceProject(info)
- with DefaultRepos
- with CompileThriftJava
- with CompileThriftRuby
- with ProjectDependencies
- with NoisyDependencies {
- val slf4jApi = "org.slf4j" % "slf4j-api" % "1.5.8"
- val slf4jLog = "org.slf4j" % "slf4j-nop" % "1.5.8"
- val sp = "org.scala-tools.testing" % "specs_2.8.1" % "1.6.8"
- val thrift = "thrift" % "libthrift" % "0.5.0"
- val commonsCodec = "commons-codec" % "commons-codec" % "1.4"
-
- projectDependencies(
- "ostrich",
- "util" ~ "util-logging",
- "util" ~ "util-thrift",
- "scala-zookeeper-client"
- )
-
- override def ivyXML =
- <dependencies>
- <exclude module="jms"/>
- <exclude module="jmxtools"/>
- <exclude module="jmxri"/>
- <exclude org="apache-log4j"/>
- <override org="junit" rev="4.8.1"/>
- </dependencies>
-
- override def pomExtra =
- <licenses>
- <license>
- <name>Apache 2</name>
- <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
- <distribution>repo</distribution>
- </license>
- </licenses>
-
- // generate a jar of just the thrift classes.
- def clientPaths = (mainCompilePath ##) / "com" / "twitter" / "service" / "snowflake" / "gen" ** "*.class"
- def packageClientAction = packageTask(clientPaths, outputPath, "snowflake-" + version.toString + "-thrift.jar", packageOptions).dependsOn(compile)
- lazy val packageClient = packageClientAction
-
- override def packageAction = super.packageAction.dependsOn(packageClientAction)
- override def artifacts = Set(Artifact("snowflake", "thrift"))
-
- override def testResources =
- descendents(testResourcesPath ##, "*") +++
- descendents(info.projectPath / "config" ##, "*")
-
-}
@@ -1,20 +0,0 @@
-import sbt._
-
-class Plugins(info: ProjectInfo) extends PluginDefinition(info) {
- 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" % "1.0.4"
- val sbtThrift = "com.twitter" % "sbt-thrift" % "2.0.1"
-}
@@ -1,10 +0,0 @@
-#Automatically generated by ProjectDependencies
-#Thu Apr 05 13:53:06 PDT 2012
-com.twitter/scala-zookeeper-client=3.0.4
-util|util-logging=com.twitter/util-logging
-ostrich|ostrich=com.twitter/ostrich
-com.twitter/ostrich=6.0.0
-scala-zookeeper-client|scala-zookeeper-client=com.twitter/scala-zookeeper-client
-com.twitter/util-logging=3.0.0
-util|util-thrift=com.twitter/util-thrift
-com.twitter/util-thrift=3.0.0

0 comments on commit fb21b3c

Please sign in to comment.