Permalink
Browse files

going to Build.scala instead of build.sbt

  • Loading branch information...
1 parent 8a85cd7 commit e04e92cb2a26ec96537a2a8b67c7af2d04766096 mmcbride committed Feb 1, 2012
Showing with 19 additions and 40 deletions.
  1. +0 −17 build.sbt
  2. +19 −0 project/Build.scala
  3. +0 −23 project/build/SbtThriftPlugin.scala
View
17 build.sbt
@@ -1,17 +0,0 @@
-import com.twitter.sbt._
-
-organization := "com.twitter"
-
-name := "sbt-thrift2"
-
-version := "0.0.1-SNAPSHOT"
-
-sbtPlugin := true
-
-seq(StandardProject.newSettings: _*)
-
-seq(SubversionPublisher.newSettings: _*)
-
-SubversionPublisher.subversionRepository := Some("https://svn.twitter.biz/maven-public")
-
-seq(ScriptedPlugin.scriptedSettings: _*)
View
19 project/Build.scala
@@ -0,0 +1,19 @@
+import sbt._
+import Keys._
+
+import com.twitter.sbt._
+
+object SbtThriftPlugin extends Build {
+ lazy val root = Project(id = "sbt-thrift2",
+ base = file("."))
+ .settings(StandardProject.newSettings: _*)
+ .settings(SubversionPublisher.newSettings: _*)
+ .settings(
+ organization := "com.twitter",
+ name := "sbt-thrift2",
+ SubversionPublisher.subversionRepository := Some("https://svn.twitter.biz/maven-public"),
+ version := "0.0.1-SNAPSHOT",
+ sbtPlugin := true
+ )
+ .settings(ScriptedPlugin.scriptedSettings: _*)
+}
View
23 project/build/SbtThriftPlugin.scala
@@ -1,23 +0,0 @@
-import sbt._
-import com.twitter.sbt._
-
-class SbtThriftPlugin(info: ProjectInfo) extends PluginProject(info)
- with StandardManagedProject with DefaultRepos with SubversionPublisher {
- override def disableCrossPaths = true
-
- val jruby = "org.jruby" % "jruby-complete" % "1.6.0.RC2"
-
- override def subversionRepository = Some("http://svn.local.twitter.com/maven-public")
- override def managedStyle = ManagedStyle.Maven
- def snapshotDeployRepo = "libs-snapshots-local"
- def releaseDeployRepo = "libs-releases-local"
-
- 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>
-}

0 comments on commit e04e92c

Please sign in to comment.