/
BirdNameProject.scala.erb
48 lines (40 loc) · 1.83 KB
/
BirdNameProject.scala.erb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
import sbt._
import Process._
import com.twitter.sbt._
/**
* Sbt project files are written in a DSL in scala.
*
* The % operator is just turning strings into maven dependency declarations, so lines like
* val example = "com.example" % "exampleland" % "1.0.3"
* mean to add a dependency on exampleland version 1.0.3 from provider "com.example".
*/
class BirdNameProject(info: ProjectInfo) extends StandardServiceProject(info)
with CompileThriftScala
with NoisyDependencies
with DefaultRepos
with SubversionPublisher
with PublishSourcesAndJavadocs
with PublishSite
{
val finagleVersion = "1.8.4"
val finagleC = "com.twitter" % "finagle-core" % finagleVersion
val finagleT = "com.twitter" % "finagle-thrift" % finagleVersion
val finagleO = "com.twitter" % "finagle-ostrich4" % finagleVersion
// thrift
val libthrift = "thrift" % "libthrift" % "0.5.0"
val util = "com.twitter" % "util" % "1.11.2"
override def originalThriftNamespaces = Map("BirdName" -> "com.twitter.birdname.thrift")
override val scalaThriftTargetNamespace = "com.twitter.birdname"
val slf4jVersion = "1.5.11"
val slf4jApi = "org.slf4j" % "slf4j-api" % slf4jVersion withSources() intransitive()
val slf4jBindings = "org.slf4j" % "slf4j-jdk14" % slf4jVersion withSources() intransitive()
// for tests
val specs = "org.scala-tools.testing" % "specs_2.8.1" % "1.6.7" % "test" withSources()
val jmock = "org.jmock" % "jmock" % "2.4.0" % "test"
val hamcrest_all = "org.hamcrest" % "hamcrest-all" % "1.1" % "test"
val cglib = "cglib" % "cglib" % "2.1_3" % "test"
val asm = "asm" % "asm" % "1.5.3" % "test"
val objenesis = "org.objenesis" % "objenesis" % "1.1" % "test"
override def mainClass = Some("com.twitter.birdname.Main")
override def subversionRepository = Some("http://svn.local.twitter.com/maven<%= '-public' if is_public %>")
}