-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathbuild.sbt
76 lines (59 loc) · 1.86 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
import sbt.Keys._
// ··· Project Info ···
name := "play-prerender"
organization := "com.github.jarlakxen"
crossScalaVersions := Seq("2.11.7")
scalaVersion <<= (crossScalaVersions) { versions => versions.head }
fork in run := true
publishMavenStyle := true
publishArtifact in Test := false
// ··· Project Options ···
javacOptions ++= Seq(
"-source", "1.7",
"-target", "1.7"
)
scalacOptions ++= Seq(
"-encoding",
"utf8",
"-feature",
"-language:postfixOps",
"-language:implicitConversions",
"-unchecked",
"-deprecation"
)
// ··· Project Repositories ···
resolvers ++= Seq("OSS" at "http://oss.sonatype.org/content/repositories/releases/")
// ··· Project Dependancies···
libraryDependencies ++= Seq(
// --- Play ---
"com.typesafe.play" %% "play" % "2.3.10" % "provided",
"com.typesafe.play" %% "play-ws" % "2.3.10" % "provided"
)
pomExtra := (
<url>https://github.com/Jarlakxen/play-prerender</url>
<licenses>
<license>
<name>Apache 2</name>
<url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
</license>
</licenses>
<scm>
<url>https://github.com/Jarlakxen/play-prerender</url>
<connection>scm:git:[email protected]:Jarlakxen/play-prerender.git</connection>
<developerConnection>scm:git:[email protected]:Jarlakxen/play-prerender.git</developerConnection>
</scm>
<developers>
<developer>
<id>Jarlakxen</id>
<name>Facundo Viale</name>
<url>https://github.com/Jarlakxen/play-prerender</url>
</developer>
</developers>
)
publishTo <<= version { v =>
val nexus = "https://oss.sonatype.org/"
if (v.endsWith("-SNAPSHOT"))
Some("sonatype-nexus-snapshots" at nexus + "content/repositories/snapshots/")
else
Some("sonatype-nexus-staging" at nexus + "service/local/staging/deploy/maven2/")
}