Skip to content

Commit 3388ea9

Browse files
authored
Merge pull request #8 from scala-native/04_minimal
updating for 0.4M2 and preparing for initial release
2 parents 432addb + 1255308 commit 3388ea9

File tree

17 files changed

+755
-1069
lines changed

17 files changed

+755
-1069
lines changed

.gitignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
target/
2+
*/target/
3+
project/project
4+
examples/*/target
5+
lowered.hnir

build.sbt

Lines changed: 49 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,39 @@
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+
124
lazy val commonSettings = Seq(
225
organization := "dev.whaling",
3-
version := "preview",
26+
version := "0.1.1-SNAPSHOT",
427
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
630
)
731

832
lazy val core = (project in file("core"))
33+
.settings(name := "native-loop-core")
934
.settings(commonSettings:_*)
35+
.settings(skip in publish := false)
36+
.settings(skip in publishLocal := false)
1037
.enablePlugins(ScalaNativePlugin)
1138

1239
lazy val pipe = (project in file("pipe"))
@@ -24,12 +51,30 @@ lazy val server = (project in file("server"))
2451
.enablePlugins(ScalaNativePlugin)
2552
.dependsOn(core)
2653

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"))
2863
.settings(commonSettings:_*)
2964
.enablePlugins(ScalaNativePlugin)
3065
.dependsOn(core,server,client)
3166

32-
lazy val pipeExample = (project in file("pipe-example"))
67+
lazy val pipeExample = (project in file("examples/pipe"))
3368
.settings(commonSettings:_*)
3469
.enablePlugins(ScalaNativePlugin)
3570
.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

Comments
 (0)