-
Notifications
You must be signed in to change notification settings - Fork 44
/
build.sbt
96 lines (82 loc) · 3.14 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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
lazy val commonSettings = Seq(
organization := "ch.epfl.gsn",
version := "2.0.2_SNAPSHOT",
scalaVersion := "2.11.2",
javacOptions in (Compile, compile) ++= Seq("-source", "1.7", "-target", "1.7", "-bootclasspath", "/usr/lib/jvm/java-7-openjdk-amd64/jre/lib/rt.jar"),
resolvers ++= Seq(
DefaultMavenRepository,
"Typesafe Repository" at "http://repo.typesafe.com/typesafe/releases/",
"osgeo" at "http://download.osgeo.org/webdav/geotools/",
"play-authenticate (release)" at "https://oss.sonatype.org/content/repositories/releases/",
"play-authenticate (snapshot)" at "https://oss.sonatype.org/content/repositories/snapshots/",
"Local ivy Repository" at ""+Path.userHome.asFile.toURI.toURL+"/.ivy2/local",
"Local cache" at ""+file(".").toURI.toURL+"lib/cache"
),
publishTo := Some("snapshots" at "https://oss.sonatype.org/content/repositories/snapshots"),
// publishTo := Some("releases" at "https://oss.sonatype.org/service/local/staging/deploy/maven2"),
/*
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")
}*/
credentials += Credentials(Path.userHome / ".ivy2" / ".credentials-sonatype"),
publishMavenStyle := true,
publishArtifact in (Compile) := false,
publishArtifact in (Test) := false,
publishArtifact in (Compile, packageBin) := true,
publishArtifact in (Compile, packageSrc) := true,
publishArtifact in (Compile, packageDoc) := true,
pomIncludeRepository := { x => false },
pomExtra := (
<url>http://gsn.epfl.ch</url>
<licenses>
<license>
<name>GPL-3.0+</name>
<url>https://opensource.org/licenses/GPL-3.0</url>
<distribution>repo</distribution>
</license>
</licenses>
<scm>
<url>git@github.com:LSIR/gsn.git</url>
<connection>scm:git:git@github.com:LSIR/gsn.git</connection>
</scm>
<developers>
<developer>
<id>EPFL-LSIR</id>
<name>The GSN Team</name>
<url>http://gsn.epfl.ch</url>
</developer>
</developers>
),
crossPaths := false,
useGpg := true,
parallelExecution in Test := false,
EclipseKeys.createSrc := EclipseCreateSrc.Default + EclipseCreateSrc.Resource
)
usePgpKeyHex("DC900B5F")
lazy val root = (project in file(".")).
aggregate(core, tools, extra, services)
lazy val core = (project in file("gsn-core")).
dependsOn(tools).
settings(commonSettings: _*).
enablePlugins(JavaServerAppPackaging, DebianPlugin)
lazy val extra = (project in file("gsn-extra")).
dependsOn(core).
settings(commonSettings: _*)
lazy val services = (project in file("gsn-services")).
dependsOn(tools).
settings(commonSettings: _*).
enablePlugins(PlayScala, DebianPlugin)
lazy val tools = (project in file("gsn-tools")).
settings(commonSettings: _*)
lazy val webui = (project in file("gsn-webui")).
enablePlugins(JavaServerAppPackaging, DebianPlugin)
lazy val startAll = taskKey[Unit]("Start all the GSN modules")
//startAll := {
//(webui/startDjango in webui).value
// (re-start in core).value
// (run in services).value
//}