Skip to content
Newer
Older
100644 125 lines (107 sloc) 4.16 KB
3d3e745 @holdenk New sbt
holdenk authored
1 name := "slashem"
2
1d9b5ba @hoffrocket cross compile 2.9 and 2.10
hoffrocket authored
3 version := "0.15.7"
3d3e745 @holdenk New sbt
holdenk authored
4
5 organization := "com.foursquare"
6
5df443c @jonshea Update finagle to 5.3.6.
jonshea authored
7 scalaVersion := "2.9.1"
3d3e745 @holdenk New sbt
holdenk authored
8
1d9b5ba @hoffrocket cross compile 2.9 and 2.10
hoffrocket authored
9 crossScalaVersions := Seq("2.9.1", "2.9.2", "2.10.2")
10
3d3e745 @holdenk New sbt
holdenk authored
11 libraryDependencies <++= (scalaVersion) { scalaVersion =>
12 val specsVersion = scalaVersion match {
1d9b5ba @hoffrocket cross compile 2.9 and 2.10
hoffrocket authored
13 case _ => "1.6.9"
3d3e745 @holdenk New sbt
holdenk authored
14 }
15 val scalaCheckVersion = scalaVersion match {
1d9b5ba @hoffrocket cross compile 2.9 and 2.10
hoffrocket authored
16 case _ => "1.10.1"
3d3e745 @holdenk New sbt
holdenk authored
17 }
18 val liftVersion = scalaVersion match {
1d9b5ba @hoffrocket cross compile 2.9 and 2.10
hoffrocket authored
19 case _ => "2.5.1"
3d3e745 @holdenk New sbt
holdenk authored
20 }
21 Seq(
76e5643 @holdenk Start adding facetField support
holdenk authored
22 "net.liftweb" %% "lift-record" % liftVersion % "compile",
21fc8fb @tdyas upgrade various deps and timeout config
tdyas authored
23 "org.mongodb" % "mongo-java-driver" % "[2.6.5,)" % "compile",
24 "junit" % "junit" % "[4.8.2,)" % "test",
25 "com.novocode" % "junit-interface" % "[0.7,)" % "test" ,
26 "org.scala-tools.testing" %% "specs" % specsVersion % "test",
e309b09 @jonshea Update to elasticsearch client 0.19.12.
jonshea authored
27 "org.elasticsearch" % "elasticsearch" % "0.19.12" % "compile" exclude("log4j", "log4j") exclude("com.sun.jmx","jmxri") exclude("com.sun.jdmk","jmxtools") exclude("com.codahale","jerkson_2.8.1") exclude("com.codahale","jerkson") exclude("com.twitter","streamyj_2.8.1") exclude("org.codehaus.jackson" , "jackson-mapper-asl") exclude("org.codehas.jackson" , "jackson-core-asl"),
0c0e92c @holdenk Make v0.6.4.13
holdenk authored
28 "org.codehaus.jackson" % "jackson-mapper-asl" % "1.8.8",
3f28e9a @holdenk Remove some deps
holdenk authored
29 "org.codehaus.jackson" % "jackson-core-asl" % "1.8.8",
1d9b5ba @hoffrocket cross compile 2.9 and 2.10
hoffrocket authored
30 "org.scalacheck" %% "scalacheck" % scalaCheckVersion % "test",
21fc8fb @tdyas upgrade various deps and timeout config
tdyas authored
31 "com.twitter" % "finagle-core" % "5.3.23" % "compile" exclude("thrift", "libthrift"),
32 "com.twitter" % "finagle-http" % "5.3.23" % "compile" exclude("thrift", "libthrift"),
33 "com.twitter" % "util-core" % "5.3.14" % "compile",
1d9b5ba @hoffrocket cross compile 2.9 and 2.10
hoffrocket authored
34 "org.scalaj" %% "scalaj-collection" % "1.5"
3d3e745 @holdenk New sbt
holdenk authored
35 )
36 }
37
38 publishTo <<= (version) { v =>
1906dfb @holdenk Publish to the Sonatype OSS repo.
holdenk authored
39 val nexus = "https://oss.sonatype.org/"
3d3e745 @holdenk New sbt
holdenk authored
40 if (v.endsWith("-SNAPSHOT"))
1906dfb @holdenk Publish to the Sonatype OSS repo.
holdenk authored
41 Some("snapshots" at nexus+"content/repositories/snapshots/")
3d3e745 @holdenk New sbt
holdenk authored
42 else
1906dfb @holdenk Publish to the Sonatype OSS repo.
holdenk authored
43 Some("releases" at nexus+"service/local/staging/deploy/maven2")
3d3e745 @holdenk New sbt
holdenk authored
44 }
45
5df443c @jonshea Update finagle to 5.3.6.
jonshea authored
46 resolvers ++= Seq(
47 "Bryan J Swift Repository" at "http://repos.bryanjswift.com/maven2/",
48 "twitter maven repo" at "http://maven.twttr.com/",
49 "codehaus maven repo" at "http://repository.codehaus.org/",
50 "sonatype maven repo" at "http://oss.sonatype.org/content/repositories/releases/"
51 )
3d3e745 @holdenk New sbt
holdenk authored
52
f862257 @holdenk Fix index on geo docs used for testing
holdenk authored
53
3d3e745 @holdenk New sbt
holdenk authored
54 resolvers <++= (version) { v =>
55 if (v.endsWith("-SNAPSHOT"))
56 Seq(ScalaToolsSnapshots)
57 else
58 Seq()
59 }
60
61 scalacOptions ++= Seq("-deprecation", "-unchecked")
62
63 testFrameworks += new TestFramework("com.novocode.junit.JUnitFrameworkNoMarker")
64
65
66 credentials ++= {
1906dfb @holdenk Publish to the Sonatype OSS repo.
holdenk authored
67 val sonaType = ("Sonatype Nexus Repository Manager", "oss.sonatype.org")
3d3e745 @holdenk New sbt
holdenk authored
68 def loadMavenCredentials(file: java.io.File) : Seq[Credentials] = {
69 xml.XML.loadFile(file) \ "servers" \ "server" map (s => {
70 val host = (s \ "id").text
1906dfb @holdenk Publish to the Sonatype OSS repo.
holdenk authored
71 val realm = if (host == sonaType._2) sonaType._1 else "Unknown"
3d3e745 @holdenk New sbt
holdenk authored
72 Credentials(realm, host, (s \ "username").text, (s \ "password").text)
73 })
74 }
75 val ivyCredentials = Path.userHome / ".ivy2" / ".credentials"
76 val mavenCredentials = Path.userHome / ".m2" / "settings.xml"
77 (ivyCredentials.asFile, mavenCredentials.asFile) match {
78 case (ivy, _) if ivy.canRead => Credentials(ivy) :: Nil
79 case (_, mvn) if mvn.canRead => loadMavenCredentials(mvn)
80 case _ => Nil
81 }
82 }
1906dfb @holdenk Publish to the Sonatype OSS repo.
holdenk authored
83
84 publishMavenStyle := true
85
86 pomIncludeRepository := { x => false }
87
88 pomExtra := (
89 <url>https://github.com/foursquare/slashem</url>
90 <licenses>
91 <license>
92 <name>Apache 2</name>
93 <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
94 <distribution>repo</distribution>
95 <comments>A business-friendly OSS license</comments>
96 </license>
97 </licenses>
98 <scm>
99 <url>git@github.com/foursquare/slashem.git</url>
100 <connection>scm:git:git@github.com/foursquare/slashem.git</connection>
101 </scm>
102 <developers>
103 <developer>
104 <id>jonshea</id>
105 <name>Jon Shea</name>
106 <email>jonshea@foursquare.com</email>
107 </developer>
108 <developer>
109 <name>Govind Kabra</name>
110 <email>govind@foursquare.com</email>
111 </developer>
112 <developer>
113 <name>Adam Alix</name>
114 <email>aalix@foursquare.com</email>
115 </developer>
116 </developers>
e47800c @holdenk Bump version & update some documentation
holdenk authored
117 )
118
119 ivyXML := (
120 <dependencies>
121 <exclude module="jmxtools"/>
122 <exclude module="jmxri"/>
123 </dependencies>
a817fc5 @holdenk bump version
holdenk authored
124 )
Something went wrong with that request. Please try again.