forked from rowdyrabbit/play-cors
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.sbt
66 lines (48 loc) · 1.69 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
name := "play-cors"
organization := "be.cafeba"
version := "1.1-SNAPSHOT"
scalaVersion := "2.11.1"
crossScalaVersions := Seq("2.11.1", "2.10.4")
publishMavenStyle := true
publishArtifact in Test := false
pomIncludeRepository := { x => false }
pomExtra := (
<url>https://github.com/rowdyrabbit/play-cors</url>
<licenses>
<license>
<name>MIT License</name>
<url>http://opensource.org/licenses/MIT</url>
<distribution>repo</distribution>
</license>
</licenses>
<scm>
<url>[email protected]:rowdyrabbit/play-cors.git</url>
<connection>scm:git:[email protected]:rowdyrabbit/play-cors.git</connection>
</scm>
<developers>
<developer>
<id>rowdyrabbit</id>
<name>Denise Fernandez</name>
<url>http://cafeba.be</url>
</developer>
</developers>
)
libraryDependencies ++= Seq(
"com.typesafe.play" %% "play" % "2.3.0" % "provided",
"com.typesafe.play" %% "play-test" % "2.3.0" % "test"
)
parallelExecution in Test := false
testOptions += Tests.Argument(TestFrameworks.JUnit, "-q", "-v")
publishTo <<= (version) { version: String =>
val nexus = "https://oss.sonatype.org/"
if (version.trim.endsWith("SNAPSHOT")) Some("snapshots" at nexus + "content/repositories/snapshots")
else Some("releases" at nexus + "service/local/staging/deploy/maven2")
}
javacOptions ++= Seq("-source", "1.6", "-target", "1.6", "-Xlint:unchecked", "-encoding", "UTF-8")
scalacOptions += "-deprecation"
lazy val root = (project in file(".")).enablePlugins(PlayScala)
lazy val sample = (project in file("sample/sample-cors"))
.enablePlugins(PlayScala)
.settings(
Keys.fork in Test := false
).dependsOn(root).aggregate(root)