1
+
2
+ homepage := Some (url(" https://github.com/scala-native/scala-native-loop" ))
3
+ licenses := Seq (" Apache 2.0" -> url(" http://www.apache.org/licenses/LICENSE-2.0" ))
4
+ publishMavenStyle := true
5
+ publishArtifact in Test := false
6
+ pomIncludeRepository := { _ => false }
7
+ publishTo in ThisBuild := {
8
+ val nexus = " https://oss.sonatype.org/"
9
+ if (isSnapshot.value)
10
+ Some (" snapshots" at nexus + " content/repositories/snapshots" )
11
+ else
12
+ Some (" releases" at nexus + " service/local/staging/deploy/maven2" )
13
+ }
14
+ scmInfo := Some (
15
+ ScmInfo (
16
+ url(" https://github.com/scala-native/scala-native-loop" ),
17
+ " scm:git:[email protected] :scala-native/scala-native-loop.git"
18
+ )
19
+ )
20
+ developers := List (
21
+ Developer (
" rwhaling" ,
" Richard Whaling" ,
" [email protected] " , url(
" http://whaling.dev" ))
22
+ )
23
+
1
24
lazy val commonSettings = Seq (
2
25
organization := " dev.whaling" ,
3
- version := " preview " ,
26
+ version := " 0.1.1-SNAPSHOT " ,
4
27
scalaVersion := " 2.11.12" ,
5
- libraryDependencies += " io.argonaut" % " argonaut_native0.3_2.11" % " 6.2.3"
28
+ skip in publish := true ,
29
+ skip in publishLocal := true
6
30
)
7
31
8
32
lazy val core = (project in file(" core" ))
33
+ .settings(name := " native-loop-core" )
9
34
.settings(commonSettings:_* )
35
+ .settings(skip in publish := false )
36
+ .settings(skip in publishLocal := false )
10
37
.enablePlugins(ScalaNativePlugin )
11
38
12
39
lazy val pipe = (project in file(" pipe" ))
@@ -24,12 +51,30 @@ lazy val server = (project in file("server"))
24
51
.enablePlugins(ScalaNativePlugin )
25
52
.dependsOn(core)
26
53
27
- lazy val serverExample = (project in file(" server-example" ))
54
+ lazy val scalaJsCompat = (project in file(" scalajs-compat" ))
55
+ .settings(name := " native-loop-js-compat" )
56
+ .settings(commonSettings:_* )
57
+ .settings(skip in publish := false )
58
+ .settings(skip in publishLocal := false )
59
+ .enablePlugins(ScalaNativePlugin )
60
+ .dependsOn(core)
61
+
62
+ lazy val serverExample = (project in file(" examples/server" ))
28
63
.settings(commonSettings:_* )
29
64
.enablePlugins(ScalaNativePlugin )
30
65
.dependsOn(core,server,client)
31
66
32
- lazy val pipeExample = (project in file(" pipe-example " ))
67
+ lazy val pipeExample = (project in file(" examples/ pipe" ))
33
68
.settings(commonSettings:_* )
34
69
.enablePlugins(ScalaNativePlugin )
35
70
.dependsOn(core,pipe,client)
71
+
72
+ lazy val curlExample = (project in file(" examples/curl" ))
73
+ .settings(commonSettings:_* )
74
+ .enablePlugins(ScalaNativePlugin )
75
+ .dependsOn(core,client)
76
+
77
+ lazy val timerExample = (project in file(" examples/timer" ))
78
+ .settings(commonSettings:_* )
79
+ .enablePlugins(ScalaNativePlugin )
80
+ .dependsOn(core)
0 commit comments