aboutsummaryrefslogtreecommitdiff
path: root/project/FlowBuild.scala
diff options
context:
space:
mode:
authorJakob Odersky <jodersky@gmail.com>2015-12-08 21:44:31 -0800
committerJakob Odersky <jodersky@gmail.com>2015-12-08 21:44:31 -0800
commiteab2e148c7605ca0fd836bbe9230734895cce7d0 (patch)
treed7b2a00c2890830fd60a3ba811141ceb48a5d650 /project/FlowBuild.scala
parent230e840e09eda41f95bb813ff666fc58c663c095 (diff)
downloadakka-serial-eab2e148c7605ca0fd836bbe9230734895cce7d0.tar.gz
akka-serial-eab2e148c7605ca0fd836bbe9230734895cce7d0.tar.bz2
akka-serial-eab2e148c7605ca0fd836bbe9230734895cce7d0.zip
Use sbt-jni plugin
Diffstat (limited to 'project/FlowBuild.scala')
-rw-r--r--project/FlowBuild.scala75
1 files changed, 75 insertions, 0 deletions
diff --git a/project/FlowBuild.scala b/project/FlowBuild.scala
new file mode 100644
index 0000000..15a3fe4
--- /dev/null
+++ b/project/FlowBuild.scala
@@ -0,0 +1,75 @@
+import sbt._
+import Keys._
+
+object FlowBuild extends Build {
+
+ val scalaVersions = List("2.11.7", "2.12.0-M3")
+
+ lazy val commonSettings: Seq[Setting[_]] = Seq(
+ version := "2.4.0-SNAPSHOT",
+ scalaVersion in ThisBuild := scalaVersions.head,
+ crossScalaVersions in ThisBuild := scalaVersions.reverse,
+ scalacOptions ++= Seq("-deprecation", "-unchecked", "-feature", "-target:jvm-1.8"),
+ organization := "com.github.jodersky",
+ licenses := Seq(("BSD New", url("http://opensource.org/licenses/BSD-3-Clause"))),
+ homepage := Some(url("https://github.com/jodersky/flow")),
+ pomIncludeRepository := { _ => false },
+ pomExtra := {
+ <scm>
+ <url>git@github.com:jodersky/flow.git</url>
+ <connection>scm:git:git@github.com:jodersky/flow.git</connection>
+ </scm>
+ <developers>
+ <developer>
+ <id>jodersky</id>
+ <name>Jakob Odersky</name>
+ </developer>
+ </developers>
+ }
+ )
+
+ lazy val runSettings: Seq[Setting[_]] = Seq(
+ fork := true,
+ connectInput in run := true,
+ outputStrategy := Some(StdoutOutput)
+ )
+
+ lazy val root: Project = (
+ Project("root", file("."))
+ aggregate(main, native)
+ settings(commonSettings: _*)
+ settings(
+ publishArtifact := false,
+ publish := (),
+ publishLocal := (),
+ publishTo := Some(Resolver.file("Unused transient repository", target.value / "unusedrepo")) // make sbt-pgp happy
+ )
+ )
+
+ lazy val main = Project(
+ id = "flow-main",
+ base = file("flow-main"),
+ settings = commonSettings
+ )
+
+ lazy val native = Project(
+ id = "flow-native",
+ base = file("flow-native"),
+ settings = commonSettings
+ )
+
+ lazy val samplesTerminal = Project(
+ id = "flow-samples-terminal",
+ base = file("flow-samples") / "terminal",
+ settings = commonSettings,
+ dependencies = Seq(main, native % Runtime)
+ )
+
+ lazy val samplesWatcher = Project(
+ id = "flow-samples-watcher",
+ base = file("flow-samples"),
+ settings = commonSettings,
+ dependencies = Seq(main, native % Runtime)
+ )
+
+}