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/15 17:09:30 UTC

[mnemonic] branch master updated: MNEMONIC-540: Enable annotation processing for mnemonic-collections

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 e67ebd7  MNEMONIC-540: Enable annotation processing for mnemonic-collections
e67ebd7 is described below

commit e67ebd7331c66b39867775b1629cb63e76bb80de
Author: Yanhui Zhao <yz...@apache.org>
AuthorDate: Sat Dec 12 22:47:15 2020 -0800

    MNEMONIC-540: Enable annotation processing for mnemonic-collections
---
 mnemonic-collections/build.gradle | 31 +++++++++++++++++++++++--------
 1 file changed, 23 insertions(+), 8 deletions(-)

diff --git a/mnemonic-collections/build.gradle b/mnemonic-collections/build.gradle
index 08bd7b8..8a987d2 100644
--- a/mnemonic-collections/build.gradle
+++ b/mnemonic-collections/build.gradle
@@ -17,15 +17,30 @@
 
 
 description = 'mnemonic-collections'
+
+compileJava {
+  options.compilerArgs = [
+    "-processor", "org.apache.mnemonic.DurableEntityProcessor"
+  ]
+}
+
+compileTestJava {
+  options.compilerArgs = [
+    "-processor", "org.apache.mnemonic.DurableEntityProcessor"
+  ]
+}
+
 dependencies {
-  compileOnly project(':mnemonic-core')
-  compileOnly 'org.apache.commons:commons-lang3'
-  compileOnly 'org.flowcomputing.commons:commons-primitives'
-  compileOnly 'org.slf4j:slf4j-api'
-  compileOnly 'org.slf4j:jul-to-slf4j'
-  compileOnly 'org.slf4j:jcl-over-slf4j'
-  compileOnly 'log4j:log4j'
-  compileOnly 'org.slf4j:slf4j-log4j12'
+  annotationProcessor project(':mnemonic-core')
+  api project(':mnemonic-core')
+  api 'org.apache.commons:commons-lang3'
+  api 'org.flowcomputing.commons:commons-primitives'
+  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()