You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@iota.apache.org by to...@apache.org on 2016/07/03 16:39:38 UTC

incubator-iota git commit: Added project folder for Performers

Repository: incubator-iota
Updated Branches:
  refs/heads/master 02d8ab643 -> 7886e998d


Added project folder for Performers


Project: http://git-wip-us.apache.org/repos/asf/incubator-iota/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-iota/commit/7886e998
Tree: http://git-wip-us.apache.org/repos/asf/incubator-iota/tree/7886e998
Diff: http://git-wip-us.apache.org/repos/asf/incubator-iota/diff/7886e998

Branch: refs/heads/master
Commit: 7886e998d6e8571a8921da8ff8b950819b4396fc
Parents: 02d8ab6
Author: Tony Faustini <to...@apache.org>
Authored: Sun Jul 3 09:39:32 2016 -0700
Committer: Tony Faustini <to...@apache.org>
Committed: Sun Jul 3 09:39:32 2016 -0700

----------------------------------------------------------------------
 Performers/project/Build.scala      | 161 +++++++++++++++++++++++++++++++
 Performers/project/build.properties |   1 +
 Performers/project/plugins.sbt      |   4 +
 3 files changed, 166 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-iota/blob/7886e998/Performers/project/Build.scala
----------------------------------------------------------------------
diff --git a/Performers/project/Build.scala b/Performers/project/Build.scala
new file mode 100644
index 0000000..31da1e9
--- /dev/null
+++ b/Performers/project/Build.scala
@@ -0,0 +1,161 @@
+/**
+  * (C) Copyright Litbit 2016
+  *
+  * Licensed under the Apache License, Version 2.0 (the "License");
+  * you may not use this file except in compliance with the License.
+  * You may obtain a copy of the License at
+  *
+  * http://www.apache.org/licenses/LICENSE-2.0
+  *
+  * Unless required by applicable law or agreed to in writing, software
+  * distributed under the License is distributed on an "AS IS" BASIS,
+  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  * See the License for the specific language governing permissions and
+  * limitations under the License.
+  *
+  */
+
+import sbt._
+import sbt.Keys._
+
+object BuildSettings {
+
+  val ParentProject = "jars_parent"
+  val Fey = "fey"
+  val Stream = "fey_stream"
+  val ZMQ = "fey_zmq"
+
+
+  val Version = "1.0"
+  val ScalaVersion = "2.11.8"
+
+  lazy val rootbuildSettings = Defaults.coreDefaultSettings ++ Seq(
+    name := ParentProject,
+    version := Version,
+    scalaVersion := ScalaVersion,
+    organization := "com.libit",
+    description := "Fey External Jars Project",
+    scalacOptions := Seq("-deprecation", "-unchecked", "-encoding", "utf8", "-Xlint")
+  )
+
+  lazy val FeybuildSettings = Defaults.coreDefaultSettings ++ Seq(
+    name := Fey,
+    version := Version,
+    scalaVersion := ScalaVersion,
+    organization := "com.litbit",
+    description := "Fey Development Instance",
+    scalacOptions := Seq("-deprecation", "-unchecked", "-encoding", "utf8", "-Xlint")
+  )
+
+  lazy val StreambuildSettings = Defaults.coreDefaultSettings ++ Seq(
+    name := Stream,
+    version := Version,
+    scalaVersion := ScalaVersion,
+    organization := "org.apache.iota.fey.performer",
+    description := "Simple Stream Application",
+    scalacOptions := Seq("-deprecation", "-unchecked", "-encoding", "utf8", "-Xlint")
+  )
+
+   lazy val ZMQbuildSettings = Defaults.coreDefaultSettings ++ Seq(
+    name := ZMQ,
+    version := Version,
+    scalaVersion := ScalaVersion,
+    organization := "org.apache.iota.fey.performer",
+    description := "ZMQ Application",
+    scalacOptions := Seq("-deprecation", "-unchecked", "-encoding", "utf8", "-Xlint")
+  )
+
+}
+
+object Resolvers {
+
+  val typesafe = "Typesafe Repository" at "http://repo.typesafe.com/typesafe/releases/"
+  val sonatype = "Sonatype Release" at "https://oss.sonatype.org/content/repositories/releases"
+  val mvnrepository = "MVN Repo" at "http://mvnrepository.com/artifact"
+  val litbitBitbucket = "Litbit Repo" at "https://s3-us-west-2.amazonaws.com/maven.litbit.com/snapshots"
+  val emuller = "emueller-bintray" at "http://dl.bintray.com/emueller/maven"
+
+  val allResolvers = Seq(typesafe, sonatype, mvnrepository, emuller, litbitBitbucket)
+
+}
+
+object Dependency {
+  //Use when building Artifacts (jar files)
+  val akka_actor = "com.typesafe.akka" %% "akka-actor" % "2.4.2" % "provided"
+  val fey = "org.apache.iota" %% "fey-core" % "1.0-SNAPSHOT" % "provided"
+  val zmq = "org.zeromq" % "jeromq" % "0.3.5"
+}
+
+object Dependencies {
+
+  import Dependency._
+
+  val FeyDependencies = Seq(akka_actor, fey)
+  val StreamDependencies = Seq(akka_actor, fey)
+  val ZMQDependecies = Seq(akka_actor, zmq, fey)
+}
+
+object JarsBuild extends Build {
+
+  import Resolvers._
+  import BuildSettings._
+
+  lazy val parent = Project(
+    id = "jars_parent",
+    base = file("."),
+    aggregate = Seq(Stream, CherryRP, ZMQ, Kafka, MQTT, Fey),
+    settings = rootbuildSettings ++ Seq(
+      aggregate in update := false
+    )
+  )
+
+  lazy val fey = Project(
+    id = "fey",
+    base = file("./fey"),
+    settings = FeybuildSettings ++ Seq(
+      maxErrors := 5,
+      ivyScala := ivyScala.value map {
+        _.copy(overrideScalaVersion = true)
+      },
+      triggeredMessage := Watched.clearWhenTriggered,
+      resolvers := allResolvers,
+      libraryDependencies ++= Dependencies.FeyDependencies,
+      mainClass := Some("org.apache.iota.fey.Application"),
+      fork := true,
+      connectInput in run := true
+    ))
+
+  lazy val stream = Project(
+    id = "fey_stream",
+    base = file("./stream"),
+    settings = StreambuildSettings ++ Seq(
+      maxErrors := 5,
+
+      ivyScala := ivyScala.value map {
+        _.copy(overrideScalaVersion = true)
+      },
+      triggeredMessage := Watched.clearWhenTriggered,
+      resolvers := allResolvers,
+      libraryDependencies ++= Dependencies.StreamDependencies,
+      mainClass := Some("org.apache.iota.fey.performer.stream.Application"),
+      fork := true,
+      connectInput in run := true
+    ))
+
+   lazy val zmq = Project(
+    id = "fey_zmq",
+    base = file("./zmq"),
+    settings = ZMQbuildSettings ++ Seq(
+      maxErrors := 5,
+      ivyScala := ivyScala.value map {
+        _.copy(overrideScalaVersion = true)
+      },
+      triggeredMessage := Watched.clearWhenTriggered,
+      resolvers := allResolvers,
+      libraryDependencies ++= Dependencies.ZMQDependecies,
+      mainClass := Some("org.apache.iota.fey.performer.zmq.Application"),
+      fork := true,
+      connectInput in run := true
+    ))
+
+}
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-iota/blob/7886e998/Performers/project/build.properties
----------------------------------------------------------------------
diff --git a/Performers/project/build.properties b/Performers/project/build.properties
new file mode 100644
index 0000000..9ad7e84
--- /dev/null
+++ b/Performers/project/build.properties
@@ -0,0 +1 @@
+sbt.version=0.13.8
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-iota/blob/7886e998/Performers/project/plugins.sbt
----------------------------------------------------------------------
diff --git a/Performers/project/plugins.sbt b/Performers/project/plugins.sbt
new file mode 100644
index 0000000..8d0b78a
--- /dev/null
+++ b/Performers/project/plugins.sbt
@@ -0,0 +1,4 @@
+logLevel := Level.Warn
+
+addSbtPlugin("com.eed3si9n" % "sbt-assembly" % "0.13.0")
+addSbtPlugin("io.spray" % "sbt-revolver" % "0.7.2")
\ No newline at end of file