You are viewing a plain text version of this content. The canonical link for it is here.
Posted to server-dev@james.apache.org by ie...@apache.org on 2020/06/25 16:31:35 UTC

[james-project] 10/17: JAMES-3260 Builds up to :apache-james-mailbox:apache-james-mailbox-jpa:compileJava

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

ieugen pushed a commit to branch JAMES-3260-gradle-poc
in repository https://gitbox.apache.org/repos/asf/james-project.git

commit 1bb190b36a387554efb912293fae8056810a8639
Author: Eugen Stan <ie...@apache.org>
AuthorDate: Sun Jun 21 20:44:14 2020 +0300

    JAMES-3260 Builds up to :apache-james-mailbox:apache-james-mailbox-jpa:compileJava
---
 backends-common/elasticsearch/build.gradle         | 26 ++++++++++++
 backends-common/rabbitmq/build.gradle              | 26 ++++++++++++
 mailbox/backup/build.gradle                        | 38 ++++++++++++++++-
 mailbox/elasticsearch/build.gradle                 | 32 +++++++++++++--
 mailbox/event/event-cassandra/build.gradle         | 18 +++++++++
 mailbox/event/event-memory/build.gradle            | 11 +++++
 mailbox/event/event-rabbitmq/build.gradle          | 23 +++++++++++
 mailbox/event/json/build.gradle                    | 33 +++++++++++++++
 mailbox/memory/build.gradle                        | 44 ++++++++++++++++++--
 .../deleted-messages-vault-cassandra/build.gradle  | 27 +++++++++++++
 mailbox/plugin/deleted-messages-vault/build.gradle | 47 ++++++++++++++++++++--
 mailbox/tika/build.gradle                          | 26 ++++++++++++
 mailet/base/build.gradle                           |  6 ++-
 mailet/test/build.gradle                           |  7 ++++
 server/blob/blob-memory/build.gradle               |  5 +++
 server/container/core/build.gradle                 | 14 ++++++-
 server/data/data-memory/build.gradle               | 13 ++++++
 server/testing/build.gradle                        | 15 +++++++
 18 files changed, 399 insertions(+), 12 deletions(-)

diff --git a/backends-common/elasticsearch/build.gradle b/backends-common/elasticsearch/build.gradle
index b237448..0bc7397 100644
--- a/backends-common/elasticsearch/build.gradle
+++ b/backends-common/elasticsearch/build.gradle
@@ -1,12 +1,22 @@
 /*
  * This file was generated by the Gradle 'init' task.
  */
+configurations {
+    tests
+}
 
 dependencies {
     implementation project(':james-core')
     implementation project(':james-server:james-server-util')
+
+    implementation 'com.github.steveash.guavate:guavate:1.0.0'
+    implementation 'com.google.guava:guava:25.1-jre'
+    implementation 'io.projectreactor:reactor-core:3.3.4.RELEASE'
     implementation 'com.github.fge:throwing-lambdas:0.5.0'
     implementation 'javax.annotation:javax.annotation-api:1.3.2'
+    implementation 'javax.inject:javax.inject:1'
+    implementation 'com.github.fge:throwing-lambdas:0.5.0'
+    implementation 'commons-io:commons-io:2.6'
     implementation 'io.github.openfeign:feign-core:10.3.0'
     implementation 'io.github.openfeign:feign-slf4j:10.3.0'
     implementation 'org.apache.commons:commons-configuration2:2.7'
@@ -15,10 +25,22 @@ dependencies {
     implementation 'org.elasticsearch.client:elasticsearch-rest-high-level-client:6.4.3'
     implementation 'org.slf4j:log4j-over-slf4j:1.7.27'
     implementation 'org.slf4j:slf4j-api:1.7.27'
+
     testImplementation project(':james-server:james-server-testing')
     testImplementation project(':testing-base')
+
     testImplementation 'org.slf4j:jcl-over-slf4j:1.7.27'
     testImplementation 'org.testcontainers:testcontainers:1.12.0'
+    testImplementation 'org.assertj:assertj-core:3.12.2'
+    testImplementation 'nl.jqno.equalsverifier:equalsverifier:3.1.9'
+
+    testImplementation 'org.junit.jupiter:junit-jupiter-api:5.5.1'
+    testImplementation 'org.junit.jupiter:junit-jupiter-params:5.5.1'
+    testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.5.1'
+}
+
+test {
+    useJUnitPlatform()
 }
 
 tasks.register('testsJar', Jar) {
@@ -26,4 +48,8 @@ tasks.register('testsJar', Jar) {
     from(sourceSets.test.output)
 }
 
+artifacts {
+    tests testsJar
+}
+
 publishing.publications.maven.artifact(testsJar)
diff --git a/backends-common/rabbitmq/build.gradle b/backends-common/rabbitmq/build.gradle
index aa7a325..ba4ea1e 100644
--- a/backends-common/rabbitmq/build.gradle
+++ b/backends-common/rabbitmq/build.gradle
@@ -2,10 +2,18 @@
  * This file was generated by the Gradle 'init' task.
  */
 
+configurations {
+    tests
+}
+
 dependencies {
     implementation project(':james-core')
     implementation project(':james-server:james-server-lifecycle-api')
     implementation project(':james-server:james-server-util')
+
+    implementation 'io.projectreactor:reactor-core:3.3.4.RELEASE'
+    implementation 'com.github.fge:throwing-lambdas:0.5.0'
+    implementation 'com.github.steveash.guavate:guavate:1.0.0'
     implementation 'com.google.guava:guava:25.1-jre'
     implementation 'com.rabbitmq:amqp-client:5.7.3'
     implementation 'io.github.openfeign:feign-core:10.3.0'
@@ -17,10 +25,24 @@ dependencies {
     implementation 'org.apache.commons:commons-configuration2:2.7'
     implementation 'org.apache.commons:commons-pool2:2.7.0'
     implementation 'org.slf4j:log4j-over-slf4j:1.7.27'
+
     testImplementation project(':james-server:james-server-testing')
     testImplementation project(':testing-base')
     testImplementation 'org.slf4j:jcl-over-slf4j:1.7.27'
     testImplementation 'org.testcontainers:testcontainers:1.12.0'
+    testImplementation 'org.apache.httpcomponents:httpclient:4.5.10'
+
+    testImplementation 'org.assertj:assertj-core:3.12.2'
+    testImplementation 'nl.jqno.equalsverifier:equalsverifier:3.1.9'
+
+    testImplementation 'org.awaitility:awaitility:3.1.6'
+    testImplementation 'org.junit.jupiter:junit-jupiter-api:5.5.1'
+    testImplementation 'org.junit.jupiter:junit-jupiter-params:5.5.1'
+    testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.5.1'
+}
+
+test {
+    useJUnitPlatform()
 }
 
 description = 'Apache James RabbitMQ backend'
@@ -30,4 +52,8 @@ tasks.register('testsJar', Jar) {
     from(sourceSets.test.output)
 }
 
+artifacts {
+    tests testsJar
+}
+
 publishing.publications.maven.artifact(testsJar)
diff --git a/mailbox/backup/build.gradle b/mailbox/backup/build.gradle
index 570fb22..27531be 100644
--- a/mailbox/backup/build.gradle
+++ b/mailbox/backup/build.gradle
@@ -1,18 +1,50 @@
 /*
  * This file was generated by the Gradle 'init' task.
  */
+configurations {
+    tests
+}
 
 dependencies {
+    implementation project(':james-core')
     implementation project(':apache-james-mailbox:apache-james-mailbox-api')
     implementation project(':james-server:james-server-util')
+
+    implementation 'org.reactivestreams:reactive-streams:1.0.3'
+    implementation 'io.projectreactor:reactor-core:3.3.4.RELEASE'
     implementation 'com.google.guava:guava:25.1-jre'
+    implementation 'com.github.steveash.guavate:guavate:1.0.0'
     implementation 'org.apache.commons:commons-compress:1.19'
+    implementation 'com.github.fge:throwing-lambdas:0.5.0'
+    implementation 'org.apache.james:apache-mime4j-core:0.8.3'
+    implementation 'com.sun.mail:javax.mail:1.6.2'
+    implementation 'commons-io:commons-io:2.6'
+    implementation 'org.slf4j:slf4j-api:1.7.27'
+    implementation 'javax.inject:javax.inject:1'
+
     testImplementation project(':apache-james-mailbox:apache-james-mailbox-api')
+    testImplementation project(path: ':apache-james-mailbox:apache-james-mailbox-api', configuration: 'tests')
     testImplementation project(':apache-james-mailbox:apache-james-mailbox-memory')
-    testImplementation project(':apache-james-mailbox:apache-james-mailbox-memory')
+    testImplementation project(path: ':apache-james-mailbox:apache-james-mailbox-memory', configuration: 'tests')
+    testImplementation project(':apache-james-mailbox:apache-james-mailbox-store')
+    testImplementation project(path: ':apache-james-mailbox:apache-james-mailbox-store', configuration: 'tests')
+
     testImplementation project(':james-server:james-server-testing')
     testImplementation project(':metrics:metrics-tests')
     testImplementation project(':testing-base')
+
+    testImplementation 'org.apache.james:apache-mime4j-dom:0.8.3'
+
+    testImplementation 'org.assertj:assertj-core:3.12.2'
+    testImplementation 'nl.jqno.equalsverifier:equalsverifier:3.1.9'
+
+    testImplementation 'org.junit.jupiter:junit-jupiter-api:5.5.1'
+    testImplementation 'org.junit.jupiter:junit-jupiter-params:5.5.1'
+    testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.5.1'
+}
+
+test {
+    useJUnitPlatform()
 }
 
 description = 'Apache James :: Mailbox :: Backup'
@@ -22,4 +54,8 @@ tasks.register('testsJar', Jar) {
     from(sourceSets.test.output)
 }
 
+artifacts {
+    tests testsJar
+}
+
 publishing.publications.maven.artifact(testsJar)
diff --git a/mailbox/elasticsearch/build.gradle b/mailbox/elasticsearch/build.gradle
index f7b918f..22a57f6 100644
--- a/mailbox/elasticsearch/build.gradle
+++ b/mailbox/elasticsearch/build.gradle
@@ -3,33 +3,59 @@
  */
 
 dependencies {
+    implementation project(':james-core')
+    implementation project(':james-server:james-server-util')
     implementation project(':james-backends-common:apache-james-backends-es')
     implementation project(':apache-james-mailbox:apache-james-mailbox-api')
     implementation project(':apache-james-mailbox:apache-james-mailbox-store')
+
+    implementation 'org.elasticsearch.client:elasticsearch-rest-high-level-client:6.4.3'
+    implementation 'org.apache.commons:commons-configuration2:2.7'
+    implementation 'io.projectreactor:reactor-core:3.3.4.RELEASE'
+    implementation 'org.reactivestreams:reactive-streams:1.0.3'
+    implementation 'org.apache.james:apache-mime4j-dom:0.8.3'
+    implementation 'com.github.fge:throwing-lambdas:0.5.0'
     implementation 'com.fasterxml.jackson.core:jackson-databind:2.9.9'
     implementation 'com.fasterxml.jackson.datatype:jackson-datatype-guava:2.9.9'
     implementation 'com.fasterxml.jackson.datatype:jackson-datatype-jdk8:2.9.9'
     implementation 'com.github.steveash.guavate:guavate:1.0.0'
     implementation 'com.google.guava:guava:25.1-jre'
+    implementation 'commons-io:commons-io:2.6'
     implementation 'com.sun.mail:javax.mail:1.6.2'
     implementation 'javax.inject:javax.inject:1'
     implementation 'org.slf4j:slf4j-api:1.7.27'
+
     testImplementation project(':james-backends-common:apache-james-backends-es')
+    testImplementation project(path: ':james-backends-common:apache-james-backends-es', configuration: 'tests')
     testImplementation project(':apache-james-mailbox:apache-james-mailbox-api')
+    testImplementation project(path: ':apache-james-mailbox:apache-james-mailbox-api', configuration: 'tests')
     testImplementation project(':apache-james-mailbox:apache-james-mailbox-event-memory')
+    testImplementation project(path: ':apache-james-mailbox:apache-james-mailbox-memory', configuration: 'tests')
     testImplementation project(':apache-james-mailbox:apache-james-mailbox-memory')
-    testImplementation project(':apache-james-mailbox:apache-james-mailbox-memory')
-    testImplementation project(':apache-james-mailbox:apache-james-mailbox-store')
-    testImplementation project(':apache-james-mailbox:apache-james-mailbox-tika')
+    testImplementation project(path: ':apache-james-mailbox:apache-james-mailbox-store', configuration: 'tests')
     testImplementation project(':apache-james-mailbox:apache-james-mailbox-tika')
+    testImplementation project(path: ':apache-james-mailbox:apache-james-mailbox-tika', configuration: 'tests')
     testImplementation project(':james-server:james-server-testing')
     testImplementation project(':james-server:james-server-util')
+    testImplementation project(':metrics:metrics-api')
     testImplementation project(':metrics:metrics-tests')
     testImplementation project(':testing-base')
+
     testImplementation 'net.javacrumbs.json-unit:json-unit-assertj:2.8.0'
     testImplementation 'org.awaitility:awaitility:3.1.6'
     testImplementation 'org.mockito:mockito-core:3.0.0'
     testImplementation 'org.testcontainers:testcontainers:1.12.0'
+
+    testImplementation 'org.assertj:assertj-core:3.12.2'
+    testImplementation 'nl.jqno.equalsverifier:equalsverifier:3.1.9'
+
+    testImplementation 'org.junit.jupiter:junit-jupiter-api:5.5.1'
+    testImplementation 'org.junit.jupiter:junit-jupiter-params:5.5.1'
+    testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.5.1'
+}
+
+test {
+    useJUnitPlatform()
 }
 
 description = 'Apache James :: Mailbox :: ElasticSearch'
diff --git a/mailbox/event/event-cassandra/build.gradle b/mailbox/event/event-cassandra/build.gradle
index dc85fd2..b171955 100644
--- a/mailbox/event/event-cassandra/build.gradle
+++ b/mailbox/event/event-cassandra/build.gradle
@@ -6,13 +6,31 @@ dependencies {
     implementation project(':james-backends-common:apache-james-backends-cassandra')
     implementation project(':apache-james-mailbox:apache-james-mailbox-api')
     implementation project(':apache-james-mailbox:apache-james-mailbox-event-json')
+
+    implementation 'com.typesafe.play:play-json_2.13:2.8.1'
+    implementation 'io.projectreactor:reactor-core:3.3.4.RELEASE'
+    implementation 'com.datastax.cassandra:cassandra-driver-core:3.7.2'
+    implementation 'com.github.fge:throwing-lambdas:0.5.0'
+    implementation 'javax.inject:javax.inject:1'
+
     testImplementation project(':james-backends-common:apache-james-backends-cassandra')
+    testImplementation project(path: ':james-backends-common:apache-james-backends-cassandra', configuration: 'tests')
     testImplementation project(':apache-james-mailbox:apache-james-mailbox-api')
+    testImplementation project(path: ':apache-james-mailbox:apache-james-mailbox-api', configuration: 'tests')
     testImplementation project(':apache-james-mailbox:apache-james-mailbox-store')
     testImplementation project(':testing-base')
+
     testImplementation 'org.testcontainers:testcontainers:1.12.0'
+    testImplementation 'org.assertj:assertj-core:3.12.2'
+
+    testImplementation 'org.junit.jupiter:junit-jupiter-api:5.5.1'
+    testImplementation 'org.junit.jupiter:junit-jupiter-params:5.5.1'
+    testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.5.1'
 }
 
+test {
+    useJUnitPlatform()
+}
 description = 'Apache James :: Mailbox :: Event :: In Cassandra implementation'
 
 tasks.register('testsJar', Jar) {
diff --git a/mailbox/event/event-memory/build.gradle b/mailbox/event/event-memory/build.gradle
index 78488e5..b5a9502 100644
--- a/mailbox/event/event-memory/build.gradle
+++ b/mailbox/event/event-memory/build.gradle
@@ -10,6 +10,7 @@ dependencies {
 
     implementation 'io.projectreactor:reactor-core:3.3.4.RELEASE'
     testImplementation project(':apache-james-mailbox:apache-james-mailbox-api')
+    testImplementation project(path: ':apache-james-mailbox:apache-james-mailbox-api', configuration: 'tests')
     testImplementation project(':metrics:metrics-tests')
     testImplementation project(':testing-base')
     testImplementation 'org.awaitility:awaitility:3.1.6'
@@ -23,6 +24,16 @@ dependencies {
     implementation 'com.google.guava:guava:25.1-jre'
     implementation 'com.github.steveash.guavate:guavate:1.0.0'
 
+    testImplementation 'org.assertj:assertj-core:3.12.2'
+    testImplementation 'nl.jqno.equalsverifier:equalsverifier:3.1.9'
+
+    testImplementation 'org.junit.jupiter:junit-jupiter-api:5.5.1'
+    testImplementation 'org.junit.jupiter:junit-jupiter-params:5.5.1'
+    testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.5.1'
+}
+
+test {
+    useJUnitPlatform()
 }
 
 description = 'Apache James :: Mailbox :: Event :: In VM implementation'
diff --git a/mailbox/event/event-rabbitmq/build.gradle b/mailbox/event/event-rabbitmq/build.gradle
index 26ebc8d..885f86e 100644
--- a/mailbox/event/event-rabbitmq/build.gradle
+++ b/mailbox/event/event-rabbitmq/build.gradle
@@ -3,24 +3,47 @@
  */
 
 dependencies {
+    implementation project(':james-core')
+    implementation project(':james-server:james-server-util')
     implementation project(':james-backends-common:apache-james-backends-rabbitmq')
     implementation project(':apache-james-mailbox:apache-james-mailbox-api')
     implementation project(':apache-james-mailbox:apache-james-mailbox-event-json')
     implementation project(':james-server:james-server-lifecycle-api')
     implementation project(':metrics:metrics-api')
+
     implementation 'io.projectreactor:reactor-core:3.3.4.RELEASE'
     implementation 'io.projectreactor.rabbitmq:reactor-rabbitmq:1.4.1.RELEASE'
+    implementation 'com.typesafe.play:play-json_2.13:2.8.1'
     implementation 'org.apache.commons:commons-pool2:2.7.0'
+    implementation 'com.github.steveash.guavate:guavate:1.0.0'
+    implementation 'com.google.guava:guava:25.1-jre'
+    implementation 'javax.annotation:javax.annotation-api:1.3.2'
+    implementation 'javax.inject:javax.inject:1'
+
     testImplementation project(':james-backends-common:apache-james-backends-rabbitmq')
+    testImplementation project(path: ':james-backends-common:apache-james-backends-rabbitmq', configuration: 'tests')
     testImplementation project(':apache-james-mailbox:apache-james-mailbox-api')
+    testImplementation project(path: ':apache-james-mailbox:apache-james-mailbox-api', configuration: 'tests')
     testImplementation project(':apache-james-mailbox:apache-james-mailbox-event-memory')
     testImplementation project(':apache-james-mailbox:apache-james-mailbox-store')
     testImplementation project(':james-server:james-server-testing')
     testImplementation project(':metrics:metrics-tests')
     testImplementation project(':testing-base')
+
     testImplementation 'org.awaitility:awaitility:3.1.6'
     testImplementation 'org.mockito:mockito-core:3.0.0'
     testImplementation 'org.testcontainers:testcontainers:1.12.0'
+
+    testImplementation 'org.assertj:assertj-core:3.12.2'
+    testImplementation 'nl.jqno.equalsverifier:equalsverifier:3.1.9'
+
+    testImplementation 'org.junit.jupiter:junit-jupiter-api:5.5.1'
+    testImplementation 'org.junit.jupiter:junit-jupiter-params:5.5.1'
+    testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.5.1'
+}
+
+test {
+    useJUnitPlatform()
 }
 
 description = 'Apache James :: Mailbox :: Event :: RabbitMQ implementation'
diff --git a/mailbox/event/json/build.gradle b/mailbox/event/json/build.gradle
index 9a36aa1..ebac4ad 100644
--- a/mailbox/event/json/build.gradle
+++ b/mailbox/event/json/build.gradle
@@ -1,18 +1,51 @@
 /*
  * This file was generated by the Gradle 'init' task.
  */
+plugins {
+    id 'scala'
+}
 
 dependencies {
+    implementation project(':james-core')
     implementation project(':apache-james-mailbox:apache-james-mailbox-api')
+
     implementation 'com.beachape:enumeratum_2.13:1.5.13'
     implementation 'com.typesafe.play:play-json_2.13:2.8.1'
     implementation 'org.julienrf:play-json-derived-codecs_2.13:7.0.0'
     implementation 'org.scala-lang:scala-library:2.13.1'
     implementation 'org.scala-lang.modules:scala-java8-compat_2.13:0.9.0'
+    implementation 'javax.inject:javax.inject:1'
+    implementation 'com.sun.mail:javax.mail:1.6.2'
+    implementation 'com.google.guava:guava:25.1-jre'
+
     testImplementation project(':apache-james-mailbox:apache-james-mailbox-api')
+    testImplementation project(path: ':apache-james-mailbox:apache-james-mailbox-api', configuration: 'tests')
     testImplementation project(':apache-james-mailbox:apache-james-mailbox-store')
     testImplementation project(':testing-base')
+
     testImplementation 'net.javacrumbs.json-unit:json-unit-assertj:2.8.0'
+    testImplementation 'org.assertj:assertj-core:3.12.2'
+    testImplementation 'nl.jqno.equalsverifier:equalsverifier:3.1.9'
+
+    testImplementation 'org.junit.jupiter:junit-jupiter-api:5.5.1'
+    testImplementation 'org.junit.jupiter:junit-jupiter-params:5.5.1'
+    testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.5.1'
+}
+
+test {
+    useJUnitPlatform()
+}
+
+// https://stackoverflow.com/questions/23261075/compiling-scala-before-alongside-java-with-gradle
+sourceSets {
+    main {
+        scala {
+            srcDirs = ['src/main/scala', 'src/main/java']
+        }
+        java {
+            srcDirs = []
+        }
+    }
 }
 
 description = 'Apache James :: Mailbox :: Event :: JSON'
diff --git a/mailbox/memory/build.gradle b/mailbox/memory/build.gradle
index 511acc7..d37c0d9 100644
--- a/mailbox/memory/build.gradle
+++ b/mailbox/memory/build.gradle
@@ -2,20 +2,54 @@
  * This file was generated by the Gradle 'init' task.
  */
 
+configurations {
+    tests
+}
+
 dependencies {
+    implementation project(':james-core')
+
     implementation project(':apache-james-mailbox:apache-james-mailbox-api')
     implementation project(':apache-james-mailbox:apache-james-mailbox-store')
     implementation project(':james-server:james-server-util')
+
+    implementation 'io.projectreactor:reactor-core:3.3.4.RELEASE'
+    implementation 'com.github.steveash.guavate:guavate:1.0.0'
+    implementation 'com.google.guava:guava:25.1-jre'
+    implementation 'com.github.fge:throwing-lambdas:0.5.0'
+    implementation 'org.apache.commons:commons-lang3:3.9'
+    implementation 'commons-io:commons-io:2.6'
     implementation 'com.sun.mail:javax.mail:1.6.2'
     implementation 'org.slf4j:slf4j-api:1.7.27'
-    testImplementation project(':apache-james-mailbox:apache-james-mailbox-api')
-    testImplementation project(':apache-james-mailbox:apache-james-mailbox-store')
-    testImplementation project(':apache-james-mailbox:apache-james-mailbox-tools-quota-recompute')
+    implementation 'javax.inject:javax.inject:1'
+
+    testImplementation project(path: ':apache-james-mailbox:apache-james-mailbox-api', configuration: 'tests')
+    testImplementation project(path: ':apache-james-mailbox:apache-james-mailbox-store', configuration: 'tests')
+    testImplementation project(path: ':apache-james-mailbox:apache-james-mailbox-tools-quota-recompute', configuration: 'tests')
     testImplementation project(':apache-james-mailbox:apache-james-mailbox-tools-quota-recompute')
+    testImplementation project(':apache-james-mailbox:apache-james-mailbox-event-memory')
+    testImplementation project(':james-server:james-server-data-api')
+    testImplementation project(':james-server:james-server-data-library')
     testImplementation project(':james-server:james-server-data-memory')
+    testImplementation project(':james-server:james-server-dnsservice-api')
+    testImplementation project(':james-server:james-server-lifecycle-api')
+
+    testImplementation project(':metrics:metrics-api')
     testImplementation project(':metrics:metrics-tests')
     testImplementation project(':testing-base')
+
+    testImplementation 'javax.inject:javax.inject:1'
     testImplementation 'org.mockito:mockito-core:3.0.0'
+    testImplementation 'org.assertj:assertj-core:3.12.2'
+    testImplementation 'nl.jqno.equalsverifier:equalsverifier:3.1.9'
+
+    testImplementation 'org.junit.jupiter:junit-jupiter-api:5.5.1'
+    testImplementation 'org.junit.jupiter:junit-jupiter-params:5.5.1'
+    testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.5.1'
+}
+
+test {
+    useJUnitPlatform()
 }
 
 description = 'Apache James :: Mailbox :: In Memory'
@@ -25,4 +59,8 @@ tasks.register('testsJar', Jar) {
     from(sourceSets.test.output)
 }
 
+artifacts {
+    tests testsJar
+}
+
 publishing.publications.maven.artifact(testsJar)
diff --git a/mailbox/plugin/deleted-messages-vault-cassandra/build.gradle b/mailbox/plugin/deleted-messages-vault-cassandra/build.gradle
index dbd2d91..31a8a34 100644
--- a/mailbox/plugin/deleted-messages-vault-cassandra/build.gradle
+++ b/mailbox/plugin/deleted-messages-vault-cassandra/build.gradle
@@ -3,16 +3,43 @@
  */
 
 dependencies {
+    implementation project(':james-core')
+    implementation project(':james-server:james-server-util')
+    implementation project(':james-server:james-server-blob:blob-api')
     implementation project(':james-backends-common:apache-james-backends-cassandra')
+    implementation project(':apache-james-mailbox:apache-james-mailbox-api')
     implementation project(':apache-james-mailbox:apache-james-mailbox-deleted-messages-vault')
+
+    implementation 'io.projectreactor:reactor-core:3.3.4.RELEASE'
+    implementation 'com.fasterxml.jackson.core:jackson-databind:2.9.9'
+    implementation 'com.fasterxml.jackson.datatype:jackson-datatype-jdk8:2.9.9'
+    implementation 'com.datastax.cassandra:cassandra-driver-core:3.7.2'
+    implementation 'com.sun.mail:javax.mail:1.6.2'
+    implementation 'javax.inject:javax.inject:1'
+    implementation 'org.slf4j:slf4j-api:1.7.27'
+
+    testImplementation project(path: ':james-backends-common:apache-james-backends-cassandra', configuration: 'tests')
     testImplementation project(':james-backends-common:apache-james-backends-cassandra')
     testImplementation project(':apache-james-mailbox:apache-james-mailbox-api')
+    testImplementation project(path: ':apache-james-mailbox:apache-james-mailbox-api', configuration: 'tests')
     testImplementation project(':apache-james-mailbox:apache-james-mailbox-deleted-messages-vault')
+    testImplementation project(path: ':apache-james-mailbox:apache-james-mailbox-deleted-messages-vault', configuration: 'tests')
     testImplementation project(':apache-james-mailbox:apache-james-mailbox-memory')
     testImplementation project(':james-server:james-server-testing')
     testImplementation project(':testing-base')
+
     testImplementation 'org.mockito:mockito-core:3.0.0'
     testImplementation 'org.testcontainers:testcontainers:1.12.0'
+    testImplementation 'org.assertj:assertj-core:3.12.2'
+    testImplementation 'nl.jqno.equalsverifier:equalsverifier:3.1.9'
+
+    testImplementation 'org.junit.jupiter:junit-jupiter-api:5.5.1'
+    testImplementation 'org.junit.jupiter:junit-jupiter-params:5.5.1'
+    testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.5.1'
+}
+
+test {
+    useJUnitPlatform()
 }
 
 description = 'Apache James :: Mailbox :: Plugin :: Deleted Messages Vault :: Cassandra'
diff --git a/mailbox/plugin/deleted-messages-vault/build.gradle b/mailbox/plugin/deleted-messages-vault/build.gradle
index 2d43d4a..3809216 100644
--- a/mailbox/plugin/deleted-messages-vault/build.gradle
+++ b/mailbox/plugin/deleted-messages-vault/build.gradle
@@ -2,27 +2,64 @@
  * This file was generated by the Gradle 'init' task.
  */
 
+configurations {
+    tests
+}
+
 dependencies {
+    implementation project(':james-core')
+    implementation project(':james-json')
     implementation project(':apache-james-mailbox:apache-james-mailbox-api')
     implementation project(':apache-james-mailbox:apache-james-mailbox-store')
     implementation project(':apache-james-mailbox:backup')
     implementation project(':james-server:james-server-blob:blob-api')
     implementation project(':james-server:james-server-core')
+    implementation project(':james-server:james-server-util')
+    implementation project(':james-server:james-server-task-api')
     implementation project(':james-server:james-server-task-json')
+    implementation project(':metrics:metrics-api')
+
+    implementation 'org.apache.commons:commons-configuration2:2.7'
+    implementation 'org.apache.james:apache-mime4j-dom:0.8.3'
+    implementation 'io.projectreactor:reactor-core:3.3.4.RELEASE'
+    implementation 'org.reactivestreams:reactive-streams:1.0.3'
+    implementation 'com.fasterxml.jackson.core:jackson-databind:2.9.9'
+    implementation 'com.github.steveash.guavate:guavate:1.0.0'
     implementation 'com.google.guava:guava:25.1-jre'
+    implementation 'com.github.fge:throwing-lambdas:0.5.0'
     implementation 'org.apache.commons:commons-compress:1.19'
-    testImplementation project(':apache-james-mailbox:apache-james-mailbox-api')
-    testImplementation project(':apache-james-mailbox:apache-james-mailbox-memory')
+    implementation 'commons-io:commons-io:2.6'
+    implementation 'org.slf4j:slf4j-api:1.7.27'
+    implementation 'javax.inject:javax.inject:1'
+    implementation 'com.sun.mail:javax.mail:1.6.2'
+
+    testImplementation project(':apache-james-mailbox:apache-james-mailbox-deleted-messages-vault')
+    testImplementation project(path: ':apache-james-mailbox:apache-james-mailbox-api', configuration: 'tests')
     testImplementation project(':apache-james-mailbox:apache-james-mailbox-memory')
+    testImplementation project(path: ':apache-james-mailbox:apache-james-mailbox-memory', configuration: 'tests')
     testImplementation project(':apache-james-mailbox:apache-james-mailbox-store')
+    testImplementation project(path: ':apache-james-mailbox:apache-james-mailbox-store', configuration: 'tests')
     testImplementation project(':apache-mailet:apache-mailet-test')
-    testImplementation project(':apache-james-mailbox:backup')
+    testImplementation project(path: ':apache-james-mailbox:backup', configuration: 'tests')
     testImplementation project(':james-server:james-server-blob:blob-memory')
     testImplementation project(':james-server:james-server-testing')
     testImplementation project(':metrics:metrics-tests')
     testImplementation project(':testing-base')
+
+    testImplementation 'com.fasterxml.jackson.datatype:jackson-datatype-jdk8:2.9.9'
     testImplementation 'net.javacrumbs.json-unit:json-unit-assertj:2.8.0'
     testImplementation 'org.mockito:mockito-core:3.0.0'
+
+    testImplementation 'nl.jqno.equalsverifier:equalsverifier:3.1.9'
+    testImplementation 'org.assertj:assertj-core:3.12.2'
+
+    testImplementation 'org.junit.jupiter:junit-jupiter-api:5.5.1'
+    testImplementation 'org.junit.jupiter:junit-jupiter-params:5.5.1'
+    testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.5.1'
+}
+
+test {
+    useJUnitPlatform()
 }
 
 description = 'Apache James :: Mailbox :: Plugin :: Deleted Messages Vault'
@@ -32,4 +69,8 @@ tasks.register('testsJar', Jar) {
     from(sourceSets.test.output)
 }
 
+artifacts {
+    tests testsJar
+}
+
 publishing.publications.maven.artifact(testsJar)
diff --git a/mailbox/tika/build.gradle b/mailbox/tika/build.gradle
index c07cc27..ff8c8b0 100644
--- a/mailbox/tika/build.gradle
+++ b/mailbox/tika/build.gradle
@@ -1,24 +1,46 @@
 /*
  * This file was generated by the Gradle 'init' task.
  */
+configurations {
+    tests
+}
 
 dependencies {
+    implementation project(':james-core')
+    implementation project(':james-server:james-server-util')
     implementation project(':apache-james-mailbox:apache-james-mailbox-api')
     implementation project(':apache-james-mailbox:apache-james-mailbox-store')
     implementation project(':metrics:metrics-api')
+
     implementation 'com.fasterxml.jackson.core:jackson-databind:2.9.9'
     implementation 'com.github.steveash.guavate:guavate:1.0.0'
     implementation 'com.google.guava:guava:25.1-jre'
+    implementation 'com.github.fge:throwing-lambdas:0.5.0'
     implementation 'org.apache.commons:commons-lang3:3.9'
     implementation 'org.apache.httpcomponents:fluent-hc:4.5.9'
     implementation 'org.slf4j:jcl-over-slf4j:1.7.27'
     implementation 'org.slf4j:log4j-over-slf4j:1.7.27'
+    implementation 'commons-io:commons-io:2.6'
+    implementation 'javax.inject:javax.inject:1'
+
     testImplementation project(':james-server:james-server-testing')
     testImplementation project(':metrics:metrics-tests')
     testImplementation project(':testing-base')
+
     testImplementation 'org.awaitility:awaitility:3.1.6'
     testImplementation 'org.mockito:mockito-core:3.0.0'
     testImplementation 'org.testcontainers:testcontainers:1.12.0'
+
+    testImplementation 'org.assertj:assertj-core:3.12.2'
+    testImplementation 'nl.jqno.equalsverifier:equalsverifier:3.1.9'
+
+    testImplementation 'org.junit.jupiter:junit-jupiter-api:5.5.1'
+    testImplementation 'org.junit.jupiter:junit-jupiter-params:5.5.1'
+    testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.5.1'
+}
+
+test {
+    useJUnitPlatform()
 }
 
 description = 'Apache James :: Mailbox :: Tika'
@@ -28,4 +50,8 @@ tasks.register('testsJar', Jar) {
     from(sourceSets.test.output)
 }
 
+artifacts {
+    tests testsJar
+}
+
 publishing.publications.maven.artifact(testsJar)
diff --git a/mailet/base/build.gradle b/mailet/base/build.gradle
index 3cdd73e..e375312 100644
--- a/mailet/base/build.gradle
+++ b/mailet/base/build.gradle
@@ -3,15 +3,19 @@
  */
 
 dependencies {
+    implementation project(':james-core')
     implementation project(':apache-mailet:apache-mailet-api')
-    implementation 'org.apache.james:apache-mime4j-core:0.8.3'
     implementation project(':javax-mail-extension')
     implementation project(':james-mdn')
+
+    implementation 'org.apache.james:apache-mime4j-core:0.8.3'
+    implementation 'com.github.fge:throwing-lambdas:0.5.0'
     implementation 'com.github.steveash.guavate:guavate:1.0.0'
     implementation 'com.google.guava:guava:25.1-jre'
     implementation 'com.sun.mail:javax.mail:1.6.2'
     implementation 'org.apache.commons:commons-lang3:3.9'
     implementation 'org.slf4j:slf4j-api:1.7.27'
+
     testImplementation project(':apache-mailet:apache-mailet-test')
     testImplementation project(':james-server:james-server-util')
     testImplementation project(':testing-base')
diff --git a/mailet/test/build.gradle b/mailet/test/build.gradle
index 983e14a..b57ead0 100644
--- a/mailet/test/build.gradle
+++ b/mailet/test/build.gradle
@@ -3,14 +3,21 @@
  */
 
 dependencies {
+    implementation project(':james-core')
+    implementation project(':apache-mailet:apache-mailet-api')
     implementation project(':apache-mailet:apache-mailet-api')
     implementation project(':james-server:james-server-util')
+
+    implementation 'org.apache.james:apache-mime4j-core:0.8.3'
     implementation 'com.github.steveash.guavate:guavate:1.0.0'
     implementation 'com.google.guava:guava:25.1-jre'
+    implementation 'com.github.fge:throwing-lambdas:0.5.0'
     implementation 'com.sun.mail:javax.mail:1.6.2'
     implementation 'org.slf4j:slf4j-api:1.7.27'
+
     testImplementation project(':apache-mailet:apache-mailet-api')
     testImplementation project(':testing-base')
+
     testImplementation 'org.mockito:mockito-core:3.0.0'
 }
 
diff --git a/server/blob/blob-memory/build.gradle b/server/blob/blob-memory/build.gradle
index 48e17d8..ccc594c 100644
--- a/server/blob/blob-memory/build.gradle
+++ b/server/blob/blob-memory/build.gradle
@@ -4,12 +4,17 @@
 
 dependencies {
     implementation project(':james-server:james-server-blob:blob-api')
+
     implementation 'commons-io:commons-io:2.6'
     implementation 'io.projectreactor:reactor-core:3.3.4.RELEASE'
+    implementation 'com.google.guava:guava:25.1-jre'
+    implementation 'javax.inject:javax.inject:1'
+
     testImplementation project(':james-server:james-server-blob:blob-api')
     testImplementation project(':james-server:james-server-util')
     testImplementation project(':metrics:metrics-tests')
     testImplementation project(':testing-base')
+
     testImplementation 'org.awaitility:awaitility:3.1.6'
     testImplementation 'org.mockito:mockito-core:3.0.0'
 }
diff --git a/server/container/core/build.gradle b/server/container/core/build.gradle
index 4fab70e..e01822e 100644
--- a/server/container/core/build.gradle
+++ b/server/container/core/build.gradle
@@ -3,22 +3,34 @@
  */
 
 dependencies {
+    compileOnly 'javax.activation:activation:1.1.1'
+
+    implementation project(':james-core')
     implementation project(':apache-mailet:apache-mailet-api')
     implementation project(':apache-mailet:apache-mailet-base')
     implementation project(':james-server:james-server-filesystem-api')
     implementation project(':james-server:james-server-lifecycle-api')
     implementation project(':james-server:james-server-util')
+
+    implementation 'org.apache.james:apache-mime4j-dom:0.8.3'
+    implementation 'org.apache.commons:commons-configuration2:2.7'
+    implementation 'com.fasterxml.jackson.core:jackson-databind:2.9.9'
+    implementation 'com.github.fge:throwing-lambdas:0.5.0'
+    implementation 'com.github.steveash.guavate:guavate:1.0.0'
     implementation 'com.google.guava:guava:25.1-jre'
     implementation 'com.sun.mail:javax.mail:1.6.2'
+    implementation 'org.apache.commons:commons-lang3:3.9'
     implementation 'commons-beanutils:commons-beanutils:1.9.4'
     implementation 'commons-io:commons-io:2.6'
+    implementation 'org.slf4j:slf4j-api:1.7.27'
+
     testImplementation project(':apache-mailet:apache-mailet-api')
     testImplementation project(':apache-mailet:apache-mailet-test')
     testImplementation project(':james-server:james-server-filesystem-api')
     testImplementation project(':testing-base')
+
     testImplementation 'com.sparkjava:spark-core:2.9.1'
     testImplementation 'pl.pragmatists:JUnitParams:1.1.1'
-    compileOnly 'javax.activation:activation:1.1.1'
 }
 
 description = 'Apache James :: Server :: Core'
diff --git a/server/data/data-memory/build.gradle b/server/data/data-memory/build.gradle
index a44999e..7d5f64e 100644
--- a/server/data/data-memory/build.gradle
+++ b/server/data/data-memory/build.gradle
@@ -3,8 +3,20 @@
  */
 
 dependencies {
+    implementation project(':james-core')
+    implementation project(':james-server:james-server-lifecycle-api')
+    implementation project(':james-server:james-server-mailrepository-api')
     implementation project(':james-server:james-server-data-api')
     implementation project(':james-server:james-server-data-library')
+    implementation project(':james-server:james-server-dnsservice-api')
+
+    implementation 'com.github.fge:throwing-lambdas:0.5.0'
+    implementation 'org.apache.commons:commons-configuration2:2.7'
+    implementation 'com.github.steveash.guavate:guavate:1.0.0'
+    implementation 'com.google.guava:guava:25.1-jre'
+    implementation 'org.slf4j:slf4j-api:1.7.27'
+    implementation 'javax.inject:javax.inject:1'
+
     testImplementation project(':apache-mailet:apache-mailet-test')
     testImplementation project(':event-sourcing:event-sourcing-event-store-memory')
     testImplementation project(':james-server:james-server-core')
@@ -13,6 +25,7 @@ dependencies {
     testImplementation project(':james-server:james-server-dnsservice-test')
     testImplementation project(':james-server:james-server-mailrepository-memory')
     testImplementation project(':testing-base')
+
     testImplementation 'io.cucumber:cucumber-java:2.4.0'
     testImplementation 'io.cucumber:cucumber-junit:2.4.0'
     testImplementation 'io.cucumber:cucumber-picocontainer:2.4.0'
diff --git a/server/testing/build.gradle b/server/testing/build.gradle
index 61339b0..65d808c 100644
--- a/server/testing/build.gradle
+++ b/server/testing/build.gradle
@@ -3,9 +3,19 @@
  */
 
 dependencies {
+    implementation project(':james-core')
+    implementation project(':james-server:james-server-util')
+
+    implementation project(':apache-james-mailbox:apache-james-mailbox-api')
     implementation project(':apache-mailet:apache-mailet-api')
     implementation project(':apache-mailet:apache-mailet-test')
     implementation project(':testing-base')
+
+    implementation 'org.junit.jupiter:junit-jupiter-api:5.5.1'
+    implementation 'org.junit.jupiter:junit-jupiter-params:5.5.1'
+//    testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.5.1'
+
+    implementation 'com.github.steveash.guavate:guavate:1.0.0'
     implementation 'com.google.guava:guava:25.1-jre'
     implementation 'com.jayway.jsonpath:json-path:2.4.0'
     implementation 'commons-net:commons-net:3.6'
@@ -14,6 +24,11 @@ dependencies {
     implementation 'org.apache.httpcomponents:fluent-hc:4.5.10'
     implementation 'org.awaitility:awaitility:3.1.6'
     implementation 'org.testcontainers:testcontainers:1.12.0'
+    implementation 'com.sun.mail:javax.mail:1.6.2'
+    implementation 'commons-io:commons-io:2.6'
+    implementation 'com.github.fge:throwing-lambdas:0.5.0'
+    implementation 'org.assertj:assertj-core:3.12.2'
+
     testImplementation 'org.subethamail:subethasmtp:3.1.7'
 }
 


---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org