forked from julienrf/play-jsmessages
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.sbt
72 lines (63 loc) · 2.13 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
parallelExecution in Global := false
val commonSettings = Seq(
organization := "org.julienrf",
version := "4.0.0-SNAPSHOT",
scalaVersion := "2.11.8"
)
lazy val homePage = settingKey[File]("Path to the project home page")
lazy val jsmessages = project
.settings(commonSettings: _*)
.settings(
name := "play-jsmessages",
crossScalaVersions := Seq("2.11.8", "2.12.1"),
libraryDependencies ++= Seq(
component("play")
),
publishMavenStyle := true,
publishTo := {
val nexus = "https://oss.sonatype.org"
if (isSnapshot.value) Some("snapshots" at s"$nexus/content/repositories/snapshots")
else Some("releases" at s"$nexus/service/local/staging/deploy/maven2")
},
pomExtra := (
<url>http://github.com/julienrf/play-jsmessages</url>
<licenses>
<license>
<name>MIT License</name>
<url>http://opensource.org/licenses/mit-license.php</url>
</license>
</licenses>
<scm>
<url>git@github.com:julienrf/play-jsmessages.git</url>
<connection>scm:git:git@github.com:julienrf/play-jsmessages.git</connection>
</scm>
<developers>
<developer>
<id>julienrf</id>
<name>Julien Richard-Foy</name>
<url>http://julien.richard-foy.fr</url>
</developer>
</developers>
),
useGpg := true
)
// Settings for sample play-apps, containing the tests.
val sampleSettings = commonSettings ++ Seq(
libraryDependencies ++= Seq(
guice,
"com.typesafe.play" %% "play-ahc-ws-standalone" % "1.0.0" % Test,
"org.scalatestplus.play" %% "scalatestplus-play" % "3.0.0" % Test
),
resolvers += "scalaz-bintray" at "http://dl.bintray.com/scalaz/releases"
)
lazy val sampleScala = Project("sample-scala", file("sample-scala"))
.settings(sampleSettings: _*)
.enablePlugins(PlayScala)
.dependsOn(jsmessages)
lazy val sampleJava = Project("sample-java", file("sample-java"))
.settings(sampleSettings: _*)
.enablePlugins(PlayJava)
.dependsOn(jsmessages)
lazy val playJsmessages = project.in(file("."))
.settings(commonSettings: _*)
.aggregate(jsmessages, sampleScala, sampleJava)