-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.sbt
39 lines (34 loc) · 1005 Bytes
/
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
lazy val commonSettings =
Def.settings(
scalaVersion := "2.11.11",
organization := "com.github.nadavwr",
publishArtifact in (Compile, packageDoc) := false,
licenses += ("MIT", url("http://opensource.org/licenses/MIT"))
)
def commonConfiguration(project: Project): Project =
project
.enablePlugins(ScalaNativePlugin)
.settings(commonSettings)
lazy val pthread =
(project in file("."))
.configure(commonConfiguration)
.settings(
moduleName := "libpthread-scala-native",
bintrayVcsUrl := Some("[email protected]:nadavwr/libpthread-scala-native.git")
)
lazy val unpublished =
Def.settings(
publish := {},
publishLocal := {},
publishM2 := {}
)
lazy val plainSample =
(project in file("plainSample"))
.configure(commonConfiguration)
.settings(unpublished)
.dependsOn(pthread)
lazy val prettySample =
(project in file("prettySample"))
.configure(commonConfiguration)
.settings(unpublished)
.dependsOn(pthread)