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/18 18:38:53 UTC
[mnemonic] branch master updated: MNEMONIC-568: Create build.gradle
for subproject mnemonic-examples
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 db6808d MNEMONIC-568: Create build.gradle for subproject mnemonic-examples
db6808d is described below
commit db6808d79dc83a567df6160936ca39740f1c6d77
Author: Zhen Li <rh...@gmail.com>
AuthorDate: Thu Dec 17 20:45:45 2020 -0800
MNEMONIC-568: Create build.gradle for subproject mnemonic-examples
---
mnemonic-examples/build.gradle | 33 ++++++++++++++++++++++++++-------
1 file changed, 26 insertions(+), 7 deletions(-)
diff --git a/mnemonic-examples/build.gradle b/mnemonic-examples/build.gradle
index 04cdef0..8de939b 100644
--- a/mnemonic-examples/build.gradle
+++ b/mnemonic-examples/build.gradle
@@ -15,13 +15,32 @@
* limitations under the License.
*/
+
description = 'mnemonic-examples'
+
+compileJava {
+ options.compilerArgs = [
+ "-processor", "org.apache.mnemonic.DurableEntityProcessor"
+ ]
+}
+
+compileTestJava {
+ options.compilerArgs = [
+ "-processor", "org.apache.mnemonic.DurableEntityProcessor"
+ ]
+}
+
dependencies {
- compileOnly project(':mnemonic-core')
- compileOnly project(':mnemonic-collections')
- 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-collections')
+ 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()