-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.sbt
57 lines (44 loc) · 1.41 KB
/
build.sbt
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
name := "solr-plugin-cloudwatch"
description := "Solr plugin to enable cloudwatch logs"
organization := "com.netaporter"
version := "0.2"
scalaVersion := "2.11.4"
crossPaths := false
scalacOptions ++= Seq("-feature", "-unchecked", "-deprecation")
libraryDependencies ++=
"com.amazonaws" % "aws-java-sdk-cloudwatchmetrics" % "1.9.6" ::
"org.apache.solr" % "solr-core" % "4.10.2" % "provided" ::
Nil
// Generate junit xml reports
testOptions <+= (target in Test) map { t =>
Tests.Argument("-oD", "-u", t + "/test-reports")
}
publishMavenStyle := true
publishArtifact in Test := false
pomIncludeRepository := { _ => false }
publishTo <<= version { (v: String) =>
val nexus = "https://oss.sonatype.org/"
if (v.trim.endsWith("SNAPSHOT"))
Some("snapshots" at nexus + "content/repositories/snapshots")
else
Some("releases" at nexus + "service/local/staging/deploy/maven2")
}
pomExtra := (
<url>https://github.com/net-a-porter/scala-uri</url>
<licenses>
<license>
<name>Apache 2</name>
<url>http://www.apache.org/licenses/LICENSE-2.0</url>
<distribution>repo</distribution>
</license>
</licenses>
<scm>
<url>[email protected]:net-a-porter/solr-plugin-cloudwatch.git</url>
<connection>scm:[email protected]:net-a-porter/solr-plugin-cloudwatch.git</connection>
</scm>
<developers>
<developer>
<id>if</id>
<name>Ian Forsey</name>
</developer>
</developers>)