-
Notifications
You must be signed in to change notification settings - Fork 27
/
Copy pathbackbuild
84 lines (71 loc) · 2.65 KB
/
backbuild
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
name := "ckite"
organization := "io.ckite"
version := "0.2.0-SNAPSHOT"
scalaVersion := "2.11.4"
publishMavenStyle := true
publishArtifact in Test := false
pomIncludeRepository := { x => false}
libraryDependencies ++= Seq(
"org.slf4j" % "slf4j-api" % "1.6.4",
"com.twitter" %% "scrooge-core" % "3.17.0" exclude("org.scala-lang", "scala-library"),
"org.apache.thrift" % "libthrift" % "0.9.1" exclude("org.apache.httpcomponents", "httpclient") exclude("org.apache.httpcomponents", "httpcore") exclude("org.slf4j", "slf4j-api") exclude("org.apache.commons", "commons-lang3"),
"com.twitter" %% "finagle-core" % "6.24.0" exclude("com.twitter", "util-logging_2.11") exclude("com.twitter", "util-app_2.11"),
"com.twitter" %% "finagle-thrift" % "6.24.0" exclude("org.scala-lang", "scala-library") exclude("org.apache.thrift", "libthrift"),
"com.typesafe" % "config" % "1.0.2",
"org.mapdb" % "mapdb" % "0.9.13",
"com.esotericsoftware.kryo" % "kryo" % "2.22",
"com.twitter" %% "finagle-http" % "6.24.0" % "test",
"com.fasterxml.jackson.module" %% "ja" +
"ckson-module-scala" % "2.4.4" % "test",
"org.scalatest" %% "scalatest" % "2.2.2" % "test",
"ch.qos.logback" % "logback-classic" % "1.1.1" % "test",
"junit" % "junit" % "4.8.1" % "test"
)
unmanagedSourceDirectories in Compile <++= baseDirectory { base =>
Seq(
base / "src/main/resources",
base / "src/main/thrift"
)
}
unmanagedSourceDirectories in Test <++= baseDirectory { base =>
Seq(
base / "src/test/resources"
)
}
com.twitter.scrooge.ScroogeSBT.newSettings
/*
scroogeThriftOutputFolder in Compile <<= baseDirectory {
_ / "src/main/scala"
}
*/
publishTo <<= version { v: String =>
val nexus = "https://oss.sonatype.org/"
if (v.trim.endsWith("SNAPSHOT"))
Some("snapshots" at nexus + "content/repositories/snapshots")
if (v.trim.endsWith("LOCAL"))
Some(Resolver.file("file", new File(Path.userHome.absolutePath + "/.m2/repository")))
else
Some("releases" at nexus + "service/local/staging/deploy/maven2")
}
pomExtra := {
<url>http://ckite.io</url>
<licenses>
<license>
<name>Apache 2</name>
<url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
<distribution>repo</distribution>
</license>
</licenses>
<scm>
<connection>scm:git:github.com/pablosmedina/ckite.git</connection>
<developerConnection>scm:git:git@github.com:pablosmedina/ckite.git</developerConnection>
<url>github.com/pablosmedina/ckite.git</url>
</scm>
<developers>
<developer>
<id>pmedina</id>
<name>Pablo S. Medina</name>
<url>https://twitter.com/pablosmedina</url>
</developer>
</developers>
}