Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

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