You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ignite.apache.org by dp...@apache.org on 2019/03/01 13:40:55 UTC

[ignite] 01/02: IGNITE-11461: Automatic modules support for Apache Ignite: compiled using gradle

This is an automated email from the ASF dual-hosted git repository.

dpavlov pushed a commit to branch ignite-11461-java11
in repository https://gitbox.apache.org/repos/asf/ignite.git

commit 9eee9972dab0acc57246cdaca00af63bf1168466
Author: Dmitriy Pavlov <dp...@apache.org>
AuthorDate: Fri Mar 1 15:50:22 2019 +0300

    IGNITE-11461: Automatic modules support for Apache Ignite: compiled using gradle
---
 modules/dev-utils/ignite-modules-test/build.gradle | 15 ++++++++++++++-
 1 file changed, 14 insertions(+), 1 deletion(-)

diff --git a/modules/dev-utils/ignite-modules-test/build.gradle b/modules/dev-utils/ignite-modules-test/build.gradle
index 6ca7147..37464de 100644
--- a/modules/dev-utils/ignite-modules-test/build.gradle
+++ b/modules/dev-utils/ignite-modules-test/build.gradle
@@ -30,13 +30,26 @@ ext {
     ignVer = '2.7.0'
 }
 
-ext.moduleName = 'org.apache.ignite.ignite_modules_test'
+ext.moduleName = 'ignite_modules_test'
 
 compileJava {
     inputs.property("moduleName", moduleName)
     doFirst {
         options.compilerArgs = [
             '--module-path', classpath.asPath,
+        ];
+        classpath = files();
+    }
+}
+
+compileTestJava {
+    inputs.property("moduleName", moduleName)
+    doFirst {
+        options.compilerArgs = [
+            '--module-path', classpath.asPath,
+            '--add-modules', 'junit',
+            '--add-reads', "$moduleName=junit",
+            '--patch-module', "$moduleName=" + files(sourceSets.test.java.srcDirs).asPath,
         ]
         classpath = files()
     }