-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathbuild.sbt
77 lines (60 loc) · 2.08 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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
// Project info
name := "play-statsd"
// So that we can publish it into Sonatype
organization := "net.vz.play.statsd"
// The version comes from version.sbt, and is generated by the release plugin
scalaVersion := "2.9.1"
resolvers ++= Seq(
DefaultMavenRepository,
Resolver.url("Play", url("http://download.playframework.org/ivy-releases/"))(Resolver.ivyStylePatterns),
"Typesafe Repository" at "http://repo.typesafe.com/typesafe/releases/",
"Typesafe Other Repository" at "http://repo.typesafe.com/typesafe/repo/",
Resolver.url("sbt-plugin-releases", url("http://scalasbt.artifactoryonline.com/scalasbt/sbt-plugin-releases/"))(Resolver.ivyStylePatterns)
)
// Dependencies
libraryDependencies ++= Seq(
"play" %% "play" % "2.0.4"
)
// Test dependencies
libraryDependencies ++= Seq(
"org.specs2" %% "specs2" % "1.9" % "test",
"play" %% "play-test" % "2.0.4" % "test"
)
parallelExecution in Test := false
// Configuration required for deploying to sonatype
publishMavenStyle := true
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")
}
pomIncludeRepository := { _ => false }
publishArtifact in Test := false
pomExtra := (
<url>http://github.com/vznet/play-statsd</url>
<inceptionYear>2012</inceptionYear>
<licenses>
<license>
<name>Apache 2</name>
<url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
<distribution>repo</distribution>
<comments>A business-friendly OSS license</comments>
</license>
</licenses>
<scm>
<url>git@github.com:vznet/play-statsd.git</url>
<connection>scm:git:git@github.com:vznet/play-statsd.git</connection>
</scm>
<developers>
<developer>
<name>James Roper</name>
<email>james@jazzy.id.au</email>
<url>http://jazzy.id.au</url>
<roles>
<role>Author</role>
</roles>
<organization>VZ Netzwerke</organization>
</developer>
</developers>)