mnemonic-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ga...@apache.org
Subject [mnemonic] branch master updated: MNEMONIC-571: Create build.gradle for subproject mnemonic-spark
Date Mon, 21 Dec 2020 20:03:50 GMT
This is an automated email from the ASF dual-hosted git repository.

garyw pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/mnemonic.git


The following commit(s) were added to refs/heads/master by this push:
     new 77bb1dc  MNEMONIC-571: Create build.gradle for subproject mnemonic-spark
77bb1dc is described below

commit 77bb1dc2d33b9369d7a2a81643442bddbd347465
Author: Yanhui Zhao <yzhao@apache.org>
AuthorDate: Fri Dec 18 08:28:43 2020 -0800

    MNEMONIC-571: Create build.gradle for subproject mnemonic-spark
    
    Signed-off-by: Yanhui Zhao <yzhao@apache.org>
---
 mnemonic-spark/mnemonic-spark-core/build.gradle | 39 ++++++++++++++++++++++++-
 1 file changed, 38 insertions(+), 1 deletion(-)

diff --git a/mnemonic-spark/mnemonic-spark-core/build.gradle b/mnemonic-spark/mnemonic-spark-core/build.gradle
index bc01442..b9b2f36 100644
--- a/mnemonic-spark/mnemonic-spark-core/build.gradle
+++ b/mnemonic-spark/mnemonic-spark-core/build.gradle
@@ -15,8 +15,45 @@
  * limitations under the License.
  */
 
+plugins {
+    id 'scala'
+}
+
 description = 'mnemonic-spark-core'
+
+compileJava {
+  options.compilerArgs = [
+    "-processor", "org.apache.mnemonic.DurableEntityProcessor"
+  ]
+}
+
+compileTestJava {
+  options.compilerArgs = [
+    "-processor", "org.apache.mnemonic.DurableEntityProcessor"
+  ]
+}
+
 dependencies {
-    testCompileOnly 'org.testng:testng'
+  def spark_version = '2.3.0'
+  def scala_version = '2.11.12'
+  def scala_bin_version = '2.11'
+  def scalatest_version = '3.0.1'
+
+  annotationProcessor project(':mnemonic-core')
+  api project(':mnemonic-collections')
+  api project(':mnemonic-sessions')
+  api 'org.apache.commons:commons-lang3'
+  api 'org.flowcomputing.commons:commons-primitives'
+  implementation "org.apache.spark:spark-core_${scala_bin_version}:${spark_version}"
+  implementation "org.apache.spark:spark-mllib_${scala_bin_version}:${spark_version}"
+  implementation "org.scala-lang:scala-library:${scala_version}"
+  api 'org.slf4j:slf4j-api'
+  api 'org.slf4j:jul-to-slf4j'
+  api 'org.slf4j:jcl-over-slf4j'
+  api 'log4j:log4j'
+  api 'org.slf4j:slf4j-log4j12'
+  testCompileOnly 'org.testng:testng'
+  testImplementation "org.scalatest:scalatest_${scala_bin_version}:${scalatest_version}"
 }
+
 test.useTestNG()


Mime
View raw message