[GitHub] incubator-gearpump pull request #108: [GEARPUMP-226] refactor build files

2016-11-10 Thread asfgit
Github user asfgit closed the pull request at:

https://github.com/apache/incubator-gearpump/pull/108


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---


[GitHub] incubator-gearpump pull request #108: [GEARPUMP-226] refactor build files

2016-11-07 Thread manuzhang
Github user manuzhang commented on a diff in the pull request:

https://github.com/apache/incubator-gearpump/pull/108#discussion_r86915123
  
--- Diff: project/BuildGearpump.scala ---
@@ -0,0 +1,258 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you 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 com.typesafe.sbt.SbtPgp.autoImport._
+import BuildExamples.examples
+import BuildExperiments.experiments
+import BuildExternals.externals
+import BuildIntegrationTests.integrationTests
+import BuildDashboard.services
+import Dependencies._
+import Docs._
+import de.johoop.jacoco4sbt.JacocoPlugin.jacoco
+import sbt.Keys._
+import sbt._
+import Pack.packProject
+import sbtassembly.AssemblyPlugin.autoImport._
+
+import xerial.sbt.Sonatype._
+
+object BuildGearpump extends sbt.Build {
+
+  val apacheRepo = "https://repository.apache.org/;
+  val distDirectory = "output"
+  val projectName = "gearpump"
+
+  val commonSettings = Seq(jacoco.settings: _*) ++ sonatypeSettings ++
+Seq(
+  resolvers ++= Seq(
+"patriknw at bintray" at "http://dl.bintray.com/patriknw/maven;,
+"apache-repo" at 
"https://repository.apache.org/content/repositories;,
+"maven1-repo" at "http://repo1.maven.org/maven2;,
+"maven2-repo" at "http://mvnrepository.com/artifact;,
+"sonatype" at 
"https://oss.sonatype.org/content/repositories/releases;,
+"bintray/non" at "http://dl.bintray.com/non/maven;,
+"clockfly" at "http://dl.bintray.com/clockfly/maven;,
+"clojars" at "http://clojars.org/repo;
+  )
+  // ,addCompilerPlugin("org.scalamacros" % "paradise" % "2.1.0-M5" 
cross CrossVersion.full)
+) ++
+Seq(
+  scalaVersion := scalaVersionNumber,
+  crossScalaVersions := crossScalaVersionNumbers,
+  organization := "org.apache.gearpump",
+  useGpg := false,
+  pgpSecretRing := file("./secring.asc"),
+  pgpPublicRing := file("./pubring.asc"),
+  scalacOptions ++= Seq("-Yclosure-elim", "-Yinline"),
+  publishMavenStyle := true,
+
+  pgpPassphrase := 
Option(System.getenv().get("PASSPHRASE")).map(_.toArray),
+  credentials += Credentials(
+"Sonatype Nexus Repository Manager",
+"repository.apache.org",
+System.getenv().get("SONATYPE_USERNAME"),
+System.getenv().get("SONATYPE_PASSWORD")),
+
+  pomIncludeRepository := { _ => false },
+
+  publishTo := {
+if (isSnapshot.value) {
+  Some("snapshots" at apacheRepo + 
"content/repositories/snapshots")
+} else {
+  Some("releases" at apacheRepo + "content/repositories/releases")
+}
+  },
+
+  publishArtifact in Test := true,
+
+  pomExtra := {
+https://github.com/apache/incubator-gearpump
+  
+
+  Apache 2
+  http://www.apache.org/licenses/LICENSE-2.0.txt
+
+  
+  
+
scm:git://git.apache.org/incubator-gearpump.git
+
scm:git:g...@github.com:apache/incubator-gearpump
+github.com/apache/incubator-gearpump
+  
+  
+
+  gearpump
+  Gearpump Team
+  
http://gearpump.incubator.apache.org/community.html#who-we-are
+
+  
+  }
+)
+
+  val noPublish = Seq(
+publish := {},
+publishLocal := {},
+publishArtifact := false,
+publishArtifact in Test := false
+  )
+
+
+
+  lazy val myAssemblySettings = Seq(
+test in assembly := {},
+assemblyOption in assembly ~= {
+  _.copy(includeScala = false)
+},
+assemblyJarName in assembly := {
+  s"${name.value}_${scalaBinaryVersion.value}-${version.value}.jar"
+},
+target in assembly := baseDirectory.value 

[GitHub] incubator-gearpump pull request #108: [GEARPUMP-226] refactor build files

2016-11-07 Thread huafengw
Github user huafengw commented on a diff in the pull request:

https://github.com/apache/incubator-gearpump/pull/108#discussion_r86913888
  
--- Diff: 
integrationtest/core/src/it/scala/org/apache/gearpump/integrationtest/suites/StandaloneModeSuite.scala
 ---
@@ -28,14 +28,14 @@ import 
org.apache.gearpump.integrationtest.minicluster.MiniCluster
  * test spec, you need to comment out other lines.
  */
 class StandaloneModeSuite extends Suites(
-  new CommandLineSpec,
-  new RestServiceSpec,
-  new ExampleSpec,
-  new DynamicDagSpec,
-  new StormCompatibilitySpec,
-  new StabilitySpec,
-  new ConnectorKafkaSpec,
-  new MessageDeliverySpec
+  // new CommandLineSpec,
+  // new RestServiceSpec,
+  new ExampleSpec //,
+  // new DynamicDagSpec,
+  // new StormCompatibilitySpec,
+  // new StabilitySpec,
+  // new ConnectorKafkaSpec,
+  // new MessageDeliverySpec
--- End diff --

unnecessary change


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---


[GitHub] incubator-gearpump pull request #108: [GEARPUMP-226] refactor build files

2016-11-07 Thread huafengw
Github user huafengw commented on a diff in the pull request:

https://github.com/apache/incubator-gearpump/pull/108#discussion_r86915001
  
--- Diff: project/BuildGearpump.scala ---
@@ -0,0 +1,258 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you 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 com.typesafe.sbt.SbtPgp.autoImport._
+import BuildExamples.examples
+import BuildExperiments.experiments
+import BuildExternals.externals
+import BuildIntegrationTests.integrationTests
+import BuildDashboard.services
+import Dependencies._
+import Docs._
+import de.johoop.jacoco4sbt.JacocoPlugin.jacoco
+import sbt.Keys._
+import sbt._
+import Pack.packProject
+import sbtassembly.AssemblyPlugin.autoImport._
+
+import xerial.sbt.Sonatype._
+
+object BuildGearpump extends sbt.Build {
+
+  val apacheRepo = "https://repository.apache.org/;
+  val distDirectory = "output"
+  val projectName = "gearpump"
+
+  val commonSettings = Seq(jacoco.settings: _*) ++ sonatypeSettings ++
+Seq(
+  resolvers ++= Seq(
+"patriknw at bintray" at "http://dl.bintray.com/patriknw/maven;,
+"apache-repo" at 
"https://repository.apache.org/content/repositories;,
+"maven1-repo" at "http://repo1.maven.org/maven2;,
+"maven2-repo" at "http://mvnrepository.com/artifact;,
+"sonatype" at 
"https://oss.sonatype.org/content/repositories/releases;,
+"bintray/non" at "http://dl.bintray.com/non/maven;,
+"clockfly" at "http://dl.bintray.com/clockfly/maven;,
+"clojars" at "http://clojars.org/repo;
+  )
+  // ,addCompilerPlugin("org.scalamacros" % "paradise" % "2.1.0-M5" 
cross CrossVersion.full)
+) ++
+Seq(
+  scalaVersion := scalaVersionNumber,
+  crossScalaVersions := crossScalaVersionNumbers,
+  organization := "org.apache.gearpump",
+  useGpg := false,
+  pgpSecretRing := file("./secring.asc"),
+  pgpPublicRing := file("./pubring.asc"),
+  scalacOptions ++= Seq("-Yclosure-elim", "-Yinline"),
+  publishMavenStyle := true,
+
+  pgpPassphrase := 
Option(System.getenv().get("PASSPHRASE")).map(_.toArray),
+  credentials += Credentials(
+"Sonatype Nexus Repository Manager",
+"repository.apache.org",
+System.getenv().get("SONATYPE_USERNAME"),
+System.getenv().get("SONATYPE_PASSWORD")),
+
+  pomIncludeRepository := { _ => false },
+
+  publishTo := {
+if (isSnapshot.value) {
+  Some("snapshots" at apacheRepo + 
"content/repositories/snapshots")
+} else {
+  Some("releases" at apacheRepo + "content/repositories/releases")
+}
+  },
+
+  publishArtifact in Test := true,
+
+  pomExtra := {
+https://github.com/apache/incubator-gearpump
+  
+
+  Apache 2
+  http://www.apache.org/licenses/LICENSE-2.0.txt
+
+  
+  
+
scm:git://git.apache.org/incubator-gearpump.git
+
scm:git:g...@github.com:apache/incubator-gearpump
+github.com/apache/incubator-gearpump
+  
+  
+
+  gearpump
+  Gearpump Team
+  
http://gearpump.incubator.apache.org/community.html#who-we-are
+
+  
+  }
+)
+
+  val noPublish = Seq(
+publish := {},
+publishLocal := {},
+publishArtifact := false,
+publishArtifact in Test := false
+  )
+
+
+
+  lazy val myAssemblySettings = Seq(
+test in assembly := {},
+assemblyOption in assembly ~= {
+  _.copy(includeScala = false)
+},
+assemblyJarName in assembly := {
+  s"${name.value}_${scalaBinaryVersion.value}-${version.value}.jar"
+},
+target in assembly := baseDirectory.value 

[GitHub] incubator-gearpump pull request #108: [GEARPUMP-226] refactor build files

2016-11-07 Thread huafengw
Github user huafengw commented on a diff in the pull request:

https://github.com/apache/incubator-gearpump/pull/108#discussion_r86914195
  
--- Diff: project/BuildExperiments.scala ---
@@ -0,0 +1,118 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you 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 BuildGearpump._
+import BuildDashboard.services
+import Dependencies._
+import sbt._
+import sbt.Keys._
+
+object BuildExperiments extends sbt.Build {
+
+  lazy val experiments: Seq[ProjectReference] = Seq(
+// akkastream,
+cgroup,
+redis,
+storm,
+yarn
+  )
+
+  lazy val yarn = Project(
+id = "gearpump-experiments-yarn",
+base = file("experiments/yarn"),
+settings = commonSettings ++ noPublish ++
+  Seq(
+libraryDependencies ++= Seq(
+  "org.apache.hadoop" % "hadoop-yarn-api" % hadoopVersion,
+  "org.apache.hadoop" % "hadoop-yarn-client" % hadoopVersion,
+  "org.apache.hadoop" % "hadoop-yarn-common" % hadoopVersion,
+  "commons-httpclient" % "commons-httpclient" % commonsHttpVersion,
+  "org.apache.hadoop" % "hadoop-mapreduce-client-core" % 
hadoopVersion,
+  "org.apache.hadoop" % "hadoop-yarn-server-resourcemanager" % 
hadoopVersion % "provided",
+  "org.apache.hadoop" % "hadoop-yarn-server-nodemanager" % 
hadoopVersion % "provided"
+)
+  ))
+.dependsOn(services % "test->test;compile->compile",
+  core % "provided", 
gearpumpHadoop).disablePlugins(sbtassembly.AssemblyPlugin)
+
+  lazy val akkastream = Project(
+id = "gearpump-experiments-akkastream",
+base = file("experiments/akkastream"),
+settings = commonSettings ++ noPublish ++ myAssemblySettings ++
+  Seq(
+libraryDependencies ++= Seq(
+  "org.json4s" %% "json4s-jackson" % "3.2.11"
+),
+mainClass in(Compile, packageBin) := 
Some("akka.stream.gearpump.example.Test")
+  ))
+.dependsOn(core % "provided", streaming % "test->test; provided")
+
+  lazy val redis = Project(
+id = "gearpump-experiments-redis",
+base = file("experiments/redis"),
+settings = commonSettings ++ noPublish ++
+  Seq(
+libraryDependencies ++= Seq(
+  "redis.clients" % "jedis" % "2.9.0"
--- End diff --

extract the redis version


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---


[GitHub] incubator-gearpump pull request #108: [GEARPUMP-226] refactor build files

2016-11-07 Thread huafengw
Github user huafengw commented on a diff in the pull request:

https://github.com/apache/incubator-gearpump/pull/108#discussion_r86914392
  
--- Diff: project/BuildGearpump.scala ---
@@ -0,0 +1,258 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you 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 com.typesafe.sbt.SbtPgp.autoImport._
+import BuildExamples.examples
+import BuildExperiments.experiments
+import BuildExternals.externals
+import BuildIntegrationTests.integrationTests
+import BuildDashboard.services
+import Dependencies._
+import Docs._
+import de.johoop.jacoco4sbt.JacocoPlugin.jacoco
+import sbt.Keys._
+import sbt._
+import Pack.packProject
+import sbtassembly.AssemblyPlugin.autoImport._
+
+import xerial.sbt.Sonatype._
+
+object BuildGearpump extends sbt.Build {
+
+  val apacheRepo = "https://repository.apache.org/;
+  val distDirectory = "output"
+  val projectName = "gearpump"
+
+  val commonSettings = Seq(jacoco.settings: _*) ++ sonatypeSettings ++
+Seq(
+  resolvers ++= Seq(
+"patriknw at bintray" at "http://dl.bintray.com/patriknw/maven;,
+"apache-repo" at 
"https://repository.apache.org/content/repositories;,
+"maven1-repo" at "http://repo1.maven.org/maven2;,
+"maven2-repo" at "http://mvnrepository.com/artifact;,
+"sonatype" at 
"https://oss.sonatype.org/content/repositories/releases;,
+"bintray/non" at "http://dl.bintray.com/non/maven;,
+"clockfly" at "http://dl.bintray.com/clockfly/maven;,
+"clojars" at "http://clojars.org/repo;
+  )
+  // ,addCompilerPlugin("org.scalamacros" % "paradise" % "2.1.0-M5" 
cross CrossVersion.full)
+) ++
+Seq(
+  scalaVersion := scalaVersionNumber,
+  crossScalaVersions := crossScalaVersionNumbers,
+  organization := "org.apache.gearpump",
+  useGpg := false,
+  pgpSecretRing := file("./secring.asc"),
+  pgpPublicRing := file("./pubring.asc"),
+  scalacOptions ++= Seq("-Yclosure-elim", "-Yinline"),
+  publishMavenStyle := true,
+
+  pgpPassphrase := 
Option(System.getenv().get("PASSPHRASE")).map(_.toArray),
+  credentials += Credentials(
+"Sonatype Nexus Repository Manager",
+"repository.apache.org",
+System.getenv().get("SONATYPE_USERNAME"),
+System.getenv().get("SONATYPE_PASSWORD")),
+
+  pomIncludeRepository := { _ => false },
+
+  publishTo := {
+if (isSnapshot.value) {
+  Some("snapshots" at apacheRepo + 
"content/repositories/snapshots")
+} else {
+  Some("releases" at apacheRepo + "content/repositories/releases")
+}
+  },
+
+  publishArtifact in Test := true,
+
+  pomExtra := {
+https://github.com/apache/incubator-gearpump
+  
+
+  Apache 2
+  http://www.apache.org/licenses/LICENSE-2.0.txt
+
+  
+  
+
scm:git://git.apache.org/incubator-gearpump.git
+
scm:git:g...@github.com:apache/incubator-gearpump
+github.com/apache/incubator-gearpump
+  
+  
+
+  gearpump
+  Gearpump Team
+  
http://gearpump.incubator.apache.org/community.html#who-we-are
+
+  
+  }
+)
+
+  val noPublish = Seq(
+publish := {},
+publishLocal := {},
+publishArtifact := false,
+publishArtifact in Test := false
+  )
+
+
+
+  lazy val myAssemblySettings = Seq(
+test in assembly := {},
+assemblyOption in assembly ~= {
+  _.copy(includeScala = false)
+},
+assemblyJarName in assembly := {
+  s"${name.value}_${scalaBinaryVersion.value}-${version.value}.jar"
+},
+target in assembly := baseDirectory.value 

[GitHub] incubator-gearpump pull request #108: [GEARPUMP-226] refactor build files

2016-11-07 Thread manuzhang
Github user manuzhang commented on a diff in the pull request:

https://github.com/apache/incubator-gearpump/pull/108#discussion_r86914633
  
--- Diff: project/BuildGearpump.scala ---
@@ -0,0 +1,258 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you 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 com.typesafe.sbt.SbtPgp.autoImport._
+import BuildExamples.examples
+import BuildExperiments.experiments
+import BuildExternals.externals
+import BuildIntegrationTests.integrationTests
+import BuildDashboard.services
+import Dependencies._
+import Docs._
+import de.johoop.jacoco4sbt.JacocoPlugin.jacoco
+import sbt.Keys._
+import sbt._
+import Pack.packProject
+import sbtassembly.AssemblyPlugin.autoImport._
+
+import xerial.sbt.Sonatype._
+
+object BuildGearpump extends sbt.Build {
+
+  val apacheRepo = "https://repository.apache.org/;
+  val distDirectory = "output"
+  val projectName = "gearpump"
+
+  val commonSettings = Seq(jacoco.settings: _*) ++ sonatypeSettings ++
+Seq(
+  resolvers ++= Seq(
+"patriknw at bintray" at "http://dl.bintray.com/patriknw/maven;,
+"apache-repo" at 
"https://repository.apache.org/content/repositories;,
+"maven1-repo" at "http://repo1.maven.org/maven2;,
+"maven2-repo" at "http://mvnrepository.com/artifact;,
+"sonatype" at 
"https://oss.sonatype.org/content/repositories/releases;,
+"bintray/non" at "http://dl.bintray.com/non/maven;,
+"clockfly" at "http://dl.bintray.com/clockfly/maven;,
+"clojars" at "http://clojars.org/repo;
+  )
+  // ,addCompilerPlugin("org.scalamacros" % "paradise" % "2.1.0-M5" 
cross CrossVersion.full)
+) ++
+Seq(
+  scalaVersion := scalaVersionNumber,
+  crossScalaVersions := crossScalaVersionNumbers,
+  organization := "org.apache.gearpump",
+  useGpg := false,
+  pgpSecretRing := file("./secring.asc"),
+  pgpPublicRing := file("./pubring.asc"),
+  scalacOptions ++= Seq("-Yclosure-elim", "-Yinline"),
+  publishMavenStyle := true,
+
+  pgpPassphrase := 
Option(System.getenv().get("PASSPHRASE")).map(_.toArray),
+  credentials += Credentials(
+"Sonatype Nexus Repository Manager",
+"repository.apache.org",
+System.getenv().get("SONATYPE_USERNAME"),
+System.getenv().get("SONATYPE_PASSWORD")),
+
+  pomIncludeRepository := { _ => false },
+
+  publishTo := {
+if (isSnapshot.value) {
+  Some("snapshots" at apacheRepo + 
"content/repositories/snapshots")
+} else {
+  Some("releases" at apacheRepo + "content/repositories/releases")
+}
+  },
+
+  publishArtifact in Test := true,
+
+  pomExtra := {
+https://github.com/apache/incubator-gearpump
+  
+
+  Apache 2
+  http://www.apache.org/licenses/LICENSE-2.0.txt
+
+  
+  
+
scm:git://git.apache.org/incubator-gearpump.git
+
scm:git:g...@github.com:apache/incubator-gearpump
+github.com/apache/incubator-gearpump
+  
+  
+
+  gearpump
+  Gearpump Team
+  
http://gearpump.incubator.apache.org/community.html#who-we-are
+
+  
+  }
+)
+
+  val noPublish = Seq(
+publish := {},
+publishLocal := {},
+publishArtifact := false,
+publishArtifact in Test := false
+  )
+
+
+
+  lazy val myAssemblySettings = Seq(
+test in assembly := {},
+assemblyOption in assembly ~= {
+  _.copy(includeScala = false)
+},
+assemblyJarName in assembly := {
+  s"${name.value}_${scalaBinaryVersion.value}-${version.value}.jar"
+},
+target in assembly := baseDirectory.value