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-552 Enable annotation processing for the test cases of mnemonic-core
Date Wed, 02 Dec 2020 06:46:01 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 2b9db81  MNEMONIC-552 Enable annotation processing for the test cases of mnemonic-core
2b9db81 is described below

commit 2b9db8140764aab4f101ba40d4006057a6815597
Author: Yanhui Zhao <yzhao@apache.org>
AuthorDate: Fri Nov 27 09:47:12 2020 -0800

    MNEMONIC-552 Enable annotation processing for the test cases of mnemonic-core
---
 mnemonic-core/build.gradle | 27 ++++++++++++++++++---------
 1 file changed, 18 insertions(+), 9 deletions(-)

diff --git a/mnemonic-core/build.gradle b/mnemonic-core/build.gradle
index 64e638c..010a8fb 100644
--- a/mnemonic-core/build.gradle
+++ b/mnemonic-core/build.gradle
@@ -16,16 +16,25 @@
  */
 
 description = 'mnemonic-core'
+
+compileTestJava {
+    options.compilerArgs = [
+       "-processor", "org.apache.mnemonic.DurableEntityProcessor"
+    ]
+}
+
 dependencies {
-    compileOnly 'org.apache.commons:commons-lang3'
-    compileOnly 'org.flowcomputing.commons:commons-resgc'
-    compileOnly 'org.flowcomputing.commons:commons-primitives'
-    compileOnly 'com.squareup:javapoet'
-    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'
+    api 'org.apache.commons:commons-lang3'
+    api 'org.flowcomputing.commons:commons-resgc'
+    api 'org.flowcomputing.commons:commons-primitives'
+    api 'com.squareup:javapoet'
+    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'
+    testAnnotationProcessor project(':mnemonic-core')
+    testCompileOnly project(':mnemonic-core')
     testCompileOnly 'org.testng:testng'
 }
 test.useTestNG()


Mime
View raw message