You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mnemonic.apache.org by ga...@apache.org on 2020/12/23 19:04:19 UTC

[mnemonic] branch master updated: MNEMONIC-570: Create build.gradle for subproject mnemonic-hadoop

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 ff55f00  MNEMONIC-570: Create build.gradle for subproject mnemonic-hadoop
ff55f00 is described below

commit ff55f007355c86ea1625144abc1c83f7b82b4a7d
Author: Li Shen <li...@apache.org>
AuthorDate: Tue Dec 22 20:05:15 2020 -0800

    MNEMONIC-570: Create build.gradle for subproject mnemonic-hadoop
    
    Signed-off-by: Li Shen <li...@apache.org>
---
 .../mnemonic-hadoop-mapreduce/build.gradle         | 31 +++++++++++++++++++++-
 1 file changed, 30 insertions(+), 1 deletion(-)

diff --git a/mnemonic-hadoop/mnemonic-hadoop-mapreduce/build.gradle b/mnemonic-hadoop/mnemonic-hadoop-mapreduce/build.gradle
index 872544b..d20ce29 100644
--- a/mnemonic-hadoop/mnemonic-hadoop-mapreduce/build.gradle
+++ b/mnemonic-hadoop/mnemonic-hadoop-mapreduce/build.gradle
@@ -16,7 +16,36 @@
  */
 
 description = 'mnemonic-hadoop-mapreduce'
+
+compileJava {
+  options.compilerArgs = [
+    "-processor", "org.apache.mnemonic.DurableEntityProcessor"
+  ]
+}
+
+compileTestJava {
+  options.compilerArgs = [
+    "-processor", "org.apache.mnemonic.DurableEntityProcessor"
+  ]
+}
+
 dependencies {
-    testCompileOnly 'org.testng:testng'
+  def hadoop_version = '2.7.3'
+
+  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.hadoop:hadoop-common:${hadoop_version}"
+  implementation "org.apache.hadoop:hadoop-hdfs:${hadoop_version}"
+  implementation "org.apache.hadoop:hadoop-mapreduce-client-core:${hadoop_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'
 }
+
 test.useTestNG()