-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathbuild.sbt
53 lines (40 loc) · 1.72 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
organization := "com.github.play2war.ext"
name := "redirect-playlogger"
crossScalaVersions := Seq("2.9.1", "2.10.4", "2.11.1")
scalaVersion := "2.10.0"
resolvers += "Typesafe releases" at "http://repo.typesafe.com/typesafe/releases"
autoScalaLibrary := false
libraryDependencies <+= (scalaVersion) { scalaVersion: String =>
if (scalaVersion.contains("2.11")) {
"com.typesafe.play" %% "play" % "2.3.0" % "provided->default"
} else {
val playVersion = if (scalaVersion.contains("2.9")) "2.0.4"
else "2.1.0"
"play" %% "play" % playVersion % "provided->default"
}
}
publishTo <<= (version) { version: String =>
val nexus = "https://oss.sonatype.org/"
val repo = if (version.trim.endsWith("SNAPSHOT")) Resolver.url("snapshot", url(nexus + "content/repositories/snapshots"))
// val repo = if (version.trim.endsWith("SNAPSHOT")) Resolver.file("file", file(Path.userHome.absolutePath + "/.ivy2/publish"))
// else Resolver.file("file", file(Path.userHome.absolutePath + "/.ivy2/publish"))
else Resolver.url("release", url(nexus + "service/local/staging/deploy/maven2"))
Some(repo)
}
publishMavenStyle := true
releaseSettings
pomIncludeRepository := { _ => false }
licenses := Seq("The Apache Software License, Version 2.0" -> url("http://www.apache.org/licenses/LICENSE-2.0.txt"))
homepage := Some(url("https://github.com/dlecan/redirect-playlogger"))
pomExtra := (
<scm>
<url>[email protected]:dlecan/redirect-playlogger.git</url>
<connection>scm:git:[email protected]:dlecan/redirect-playlogger.git</connection>
</scm>
<developers>
<developer>
<id>dlecan</id>
<name>Damien Lecan</name>
<email>[email protected]</email>
</developer>
</developers>)