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-540: Enable annotation processing for mnemonic-collections
Date Tue, 15 Dec 2020 17:09:30 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 e67ebd7  MNEMONIC-540: Enable annotation processing for mnemonic-collections
e67ebd7 is described below

commit e67ebd7331c66b39867775b1629cb63e76bb80de
Author: Yanhui Zhao <yzhao@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()


Mime
View raw message