diff options
author | Jakob Odersky <jodersky@gmail.com> | 2015-05-06 10:51:29 +0200 |
---|---|---|
committer | Jakob Odersky <jodersky@gmail.com> | 2015-05-06 12:13:11 +0200 |
commit | 5e611b35a891ab35d15a5eb8fcb8fcee6de1bb08 (patch) | |
tree | af3d48f72ac401fae995b8c9e31f4c96c038c7b2 /project/FlowBuild.scala | |
parent | 8a5734ed1bf73838a274409a929d1728bbd8cd40 (diff) | |
download | akka-serial-5e611b35a891ab35d15a5eb8fcb8fcee6de1bb08.tar.gz akka-serial-5e611b35a891ab35d15a5eb8fcb8fcee6de1bb08.tar.bz2 akka-serial-5e611b35a891ab35d15a5eb8fcb8fcee6de1bb08.zip |
refactor build
Diffstat (limited to 'project/FlowBuild.scala')
-rw-r--r-- | project/FlowBuild.scala | 101 |
1 files changed, 0 insertions, 101 deletions
diff --git a/project/FlowBuild.scala b/project/FlowBuild.scala deleted file mode 100644 index 3c1e8f5..0000000 --- a/project/FlowBuild.scala +++ /dev/null @@ -1,101 +0,0 @@ -import sbt._ -import Keys._ -import JniKeys._ -import UniqueVersionKeys._ -import NativeKeys._ - - -object FlowBuild extends Build { - val Organization = "com.github.jodersky" - val ScalaVersion = "2.11.5" - val Version = "2.1.0" - - - lazy val commonSettings: Seq[Setting[_]] = - UniqueVersionDefaults.settings ++ - Seq( - organization := Organization, - scalaVersion in ThisBuild := ScalaVersion, - crossScalaVersions in ThisBuild := Seq("2.10.4", ScalaVersion), - baseVersion := Version, - licenses := Seq(("BSD-3-Clause", url("http://opensource.org/licenses/BSD-3-Clause"))), - homepage := Some(url("http://github.com/jodersky/flow")), - resolvers += "Typesafe Repo" at "http://repo.typesafe.com/typesafe/releases/", - scalacOptions ++= Seq("-deprecation", "-unchecked", "-feature")) - - lazy val publishSettings: Seq[Setting[_]] = Seq( - publishMavenStyle := true, - publishTo := { - val nexus = "https://oss.sonatype.org/" - if (isSnapshot.value) - Some("snapshots" at nexus + "content/repositories/snapshots") - else - Some("releases" at nexus + "service/local/staging/deploy/maven2") - }, - 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(flow, flowNative) - settings( - publish := (), - publishLocal := () - ) - ) - - lazy val flow: Project = ( - Project("flow", file("flow")) - settings(commonSettings: _*) - settings(publishSettings: _*) - settings(JniDefaults.settings: _*) - settings( - javahHeaderDirectory := (baseDirectory in ThisBuild).value / "flow-native" / "src", - javahClasses := Seq("com.github.jodersky.flow.internal.NativeSerial"), - compileOrder in Compile := CompileOrder.Mixed, - libraryDependencies += Dependencies.akkaActor - ) - ) - - lazy val flowNative: Project = ( - Project("flow-native", file("flow-native-sbt")) - settings(commonSettings: _*) - settings(publishSettings: _*) - settings(NativeDefaults.settings: _*) - settings( - crossPaths := false, - nativeBuildDirectory := (baseDirectory in ThisBuild).value / "flow-native" - ) - ) - - lazy val samplesTerminal = ( - Project("flow-samples-terminal", file("flow-samples") / "terminal") - settings(commonSettings: _*) - settings(runSettings: _*) - dependsOn(flow) - - //kind of dirty, but it gets the sample to run without installing native libraries - settings( - (run in Compile) <<= (run in Compile).dependsOn(nativeBuild in flowNative), - javaOptions += "-Djava.library.path=" + (nativeOutputDirectory in flowNative).value.getAbsolutePath() - ) - ) - -} |