-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.sbt
63 lines (48 loc) · 1.82 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
58
59
60
61
62
63
name := "metrics-amazon-cloudwatch"
organization := "com.pongr"
scalaVersion := "2.9.1"
resolvers ++= Seq(
"Sonatype" at "https://oss.sonatype.org/content/groups/public",
"typesafe repo" at "http://repo.typesafe.com/typesafe/releases/"
)
libraryDependencies ++= Seq(
"org.specs2" %% "specs2" % "1.12.4" % "test",
"org.mockito" % "mockito-all" % "1.9.5" % "test",
"nl.grons" %% "metrics-scala" % "3.0.3",
"org.clapper" %% "grizzled-slf4j" % "0.6.10",
"com.amazonaws" % "aws-java-sdk" % "1.5.4"
)
seq(sbtrelease.Release.releaseSettings: _*)
//http://www.scala-sbt.org/using_sonatype.html
//https://docs.sonatype.org/display/Repository/Sonatype+OSS+Maven+Repository+Usage+Guide
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/")
}
publishMavenStyle := true
publishArtifact in Test := false
pomIncludeRepository := { _ => false }
licenses := Seq("Apache-2.0" -> url("http://opensource.org/licenses/Apache-2.0"))
homepage := Some(url("http://github.com/pongr/metrics-amazon-cloudwatch"))
organizationName := "Pongr"
organizationHomepage := Some(url("http://pongr.com"))
description := "Amazon Cloud watch reporter for metrics"
pomExtra := (
<scm>
<url>[email protected]:pongr/metrics-amazon-cloudwatch.git</url>
<connection>scm:git:[email protected]:pongr/metrics-amazon-cloudwatch.git</connection>
</scm>
<developers>
<developer>
<id>pcetsogtoo</id>
<name>Byamba Tumurkhuu</name>
<url>https://github.com/pcetsogtoo</url>
</developer>
<developer>
<id>zcox</id>
<name>Zach Cox</name>
<url>https://github.com/zcox</url>
</developer>
</developers>
)