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 9e1bc57651d9bcd7704ed1c6fdcb4d01fa575a9b
Author: Eugen Stan <ieu...@apache.org>
AuthorDate: Sat Jun 20 19:18:35 2020 +0300

    JAMES-3260 Builds up to 
:apache-james-mailbox:apache-james-mailbox-cassandra:compileTestJava
---
 event-sourcing/event-store-cassandra/build.gradle  | 31 +++++++++++++++++++++-
 mailbox/cassandra/build.gradle                     |  4 ++-
 .../plugin/quota-mailing-cassandra/build.gradle    | 10 +++++++
 mailbox/plugin/quota-mailing/build.gradle          |  8 ++++++
 mailbox/tools/quota-recompute/build.gradle         | 16 +++++++++++
 server/blob/blob-cassandra/build.gradle            | 12 +++++++++
 server/data/data-cassandra/build.gradle            | 24 +++++++++++++++++
 server/data/data-library/build.gradle              | 14 ++++++++++
 .../protocols/webadmin/webadmin-data/build.gradle  |  6 +++++
 .../webadmin/webadmin-mailbox/build.gradle         |  7 +++++
 10 files changed, 130 insertions(+), 2 deletions(-)

diff --git a/event-sourcing/event-store-cassandra/build.gradle 
b/event-sourcing/event-store-cassandra/build.gradle
index 13a4998..3f9947f 100644
--- a/event-sourcing/event-store-cassandra/build.gradle
+++ b/event-sourcing/event-store-cassandra/build.gradle
@@ -2,24 +2,53 @@
  * This file was generated by the Gradle 'init' task.
  */
 
+plugins {
+    id 'scala'
+}
+
 dependencies {
+    implementation project(':james-json')
+
     implementation 
project(':james-backends-common:apache-james-backends-cassandra')
+    implementation project(':event-sourcing:event-sourcing-pojo')
     implementation project(':event-sourcing:event-sourcing-event-store-api')
-    implementation project(':james-json')
+
+    implementation project(':james-server:james-server-lifecycle-api')
+
+    implementation 'org.reactivestreams:reactive-streams:1.0.3'
+    implementation 'io.projectreactor:reactor-core:3.3.4.RELEASE'
     implementation 'io.projectreactor:reactor-scala-extensions_2.13:0.5.1'
     implementation 'org.scala-lang:scala-library:2.13.1'
     implementation 'org.scala-lang.modules:scala-java8-compat_2.13:0.9.0'
+    implementation 'com.google.guava:guava:25.1-jre'
+    implementation 'javax.inject:javax.inject:1'
+    implementation 'com.fasterxml.jackson.core:jackson-databind:2.9.9'
+    implementation 'com.datastax.cassandra:cassandra-driver-core:3.7.2'
+
     testImplementation 
project(':james-backends-common:apache-james-backends-cassandra')
     testImplementation project(':event-sourcing:event-sourcing-core')
     testImplementation 
project(':event-sourcing:event-sourcing-event-store-api')
     testImplementation project(':event-sourcing:event-sourcing-core')
     testImplementation project(':event-sourcing:event-sourcing-pojo')
     testImplementation project(':testing-base')
+
     testImplementation 'net.javacrumbs.json-unit:json-unit-assertj:2.8.0'
     testImplementation 'org.mockito:mockito-core:3.0.0'
     testImplementation 'org.testcontainers:testcontainers:1.12.0'
 }
 
+// 
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 :: Event sourcing :: Event Store :: Cassandra'
 
 tasks.register('testsJar', Jar) {
diff --git a/mailbox/cassandra/build.gradle b/mailbox/cassandra/build.gradle
index 149ab95..11149cf 100644
--- a/mailbox/cassandra/build.gradle
+++ b/mailbox/cassandra/build.gradle
@@ -17,11 +17,13 @@ dependencies {
     implementation 'io.projectreactor:reactor-core:3.3.4.RELEASE'
     implementation 'com.datastax.cassandra:cassandra-driver-core:3.7.2'
     implementation 'commons-io:commons-io:2.6'
-    implementation 'com.github.steveash.guavate:guavate:1.0.0'
 
     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 'javax.inject:javax.inject:1'
     implementation 'org.slf4j:slf4j-api:1.7.27'
diff --git a/mailbox/plugin/quota-mailing-cassandra/build.gradle 
b/mailbox/plugin/quota-mailing-cassandra/build.gradle
index 15b85c6..d86e035 100644
--- a/mailbox/plugin/quota-mailing-cassandra/build.gradle
+++ b/mailbox/plugin/quota-mailing-cassandra/build.gradle
@@ -3,11 +3,20 @@
  */
 
 dependencies {
+    implementation project(":james-core")
+
     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-quota-mailing')
+
+    implementation project(':event-sourcing:event-sourcing-pojo')
     implementation 
project(':event-sourcing:event-sourcing-event-store-cassandra')
+
     implementation 'com.fasterxml.jackson.core:jackson-databind:2.9.9'
     implementation 'com.fasterxml.jackson.datatype:jackson-datatype-jdk8:2.9.9'
+    implementation 'com.google.guava:guava:25.1-jre'
+
     testImplementation 
project(':james-backends-common:apache-james-backends-cassandra')
     testImplementation 
project(':apache-james-mailbox:apache-james-mailbox-api')
     testImplementation 
project(':apache-james-mailbox:apache-james-mailbox-quota-mailing')
@@ -21,6 +30,7 @@ dependencies {
     testImplementation project(':james-server:james-server-data-memory')
     testImplementation project(':metrics:metrics-tests')
     testImplementation project(':testing-base')
+
     testImplementation 'net.javacrumbs.json-unit:json-unit-assertj:2.8.0'
     testImplementation 'org.mockito:mockito-core:3.0.0'
     testImplementation 'org.testcontainers:testcontainers:1.12.0'
diff --git a/mailbox/plugin/quota-mailing/build.gradle 
b/mailbox/plugin/quota-mailing/build.gradle
index 85e0918..6ff254e 100644
--- a/mailbox/plugin/quota-mailing/build.gradle
+++ b/mailbox/plugin/quota-mailing/build.gradle
@@ -3,18 +3,25 @@
  */
 
 dependencies {
+    implementation project(":james-core")
+
     implementation project(':apache-james-mailbox:apache-james-mailbox-api')
     implementation project(':apache-mailet:apache-mailet-api')
+
+    implementation project(':event-sourcing:event-sourcing-pojo')
     implementation project(':event-sourcing:event-sourcing-core')
     implementation project(':event-sourcing:event-sourcing-event-store-api')
+
     implementation project(':james-server:james-server-data-api')
     implementation project(':james-server:james-server-filesystem-api')
     implementation project(':james-server:james-server-util')
+
     implementation 'com.github.spullara.mustache.java:compiler:0.9.6'
     implementation 'javax.inject:javax.inject:1'
     implementation 'org.apache.commons:commons-configuration2:2.7'
     implementation 'org.slf4j:jcl-over-slf4j:1.7.27'
     implementation 'org.slf4j:log4j-over-slf4j:1.7.27'
+
     testImplementation 
project(':apache-james-mailbox:apache-james-mailbox-api')
     testImplementation 
project(':apache-james-mailbox:apache-james-mailbox-event-memory')
     testImplementation 
project(':apache-james-mailbox:apache-james-mailbox-store')
@@ -23,6 +30,7 @@ dependencies {
     testImplementation project(':james-server:james-server-data-memory')
     testImplementation project(':metrics:metrics-tests')
     testImplementation project(':testing-base')
+
     testImplementation 'org.mockito:mockito-core:3.0.0'
 }
 
diff --git a/mailbox/tools/quota-recompute/build.gradle 
b/mailbox/tools/quota-recompute/build.gradle
index 3b881c8..73a4994 100644
--- a/mailbox/tools/quota-recompute/build.gradle
+++ b/mailbox/tools/quota-recompute/build.gradle
@@ -3,11 +3,27 @@
  */
 
 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(':james-server:james-server-util')
     implementation project(':james-server:james-server-data-api')
+    implementation project(':james-server:james-server-task-api')
     implementation project(':james-server:james-server-task-json')
+
+    implementation 'com.fasterxml.jackson.core:jackson-annotations:2.9.9'
+    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.slf4j:slf4j-api:1.7.27'
+    implementation 'javax.inject:javax.inject:1'
+
     testImplementation project(':james-json')
     testImplementation project(':testing-base')
+
     testImplementation 'net.javacrumbs.json-unit:json-unit-assertj:2.8.0'
     testImplementation 'org.mockito:mockito-core:3.0.0'
 }
diff --git a/server/blob/blob-cassandra/build.gradle 
b/server/blob/blob-cassandra/build.gradle
index 3f278fd..5360245 100644
--- a/server/blob/blob-cassandra/build.gradle
+++ b/server/blob/blob-cassandra/build.gradle
@@ -6,11 +6,23 @@ dependencies {
     implementation 
project(':james-backends-common:apache-james-backends-cassandra')
     implementation project(':james-server:james-server-blob:blob-api')
     implementation project(':james-server:james-server-util')
+
+    implementation project(':metrics:metrics-api')
+
+    implementation 'io.projectreactor:reactor-core:3.3.4.RELEASE'
     implementation 'com.google.guava:guava:25.1-jre'
+    implementation 'com.datastax.cassandra:cassandra-driver-core:3.7.2'
+    implementation 'javax.inject:javax.inject:1'
+    implementation 'commons-io:commons-io:2.6'
+    implementation 'org.apache.commons:commons-lang3:3.9'
+    implementation 'org.apache.commons:commons-configuration2:2.7'
+    implementation 'com.github.fge:throwing-lambdas:0.5.0'
+
     testImplementation 
project(':james-backends-common:apache-james-backends-cassandra')
     testImplementation project(':james-server:james-server-blob:blob-api')
     testImplementation project(':metrics:metrics-tests')
     testImplementation project(':testing-base')
+
     testImplementation 'org.awaitility:awaitility:3.1.6'
     testImplementation 'org.testcontainers:testcontainers:1.12.0'
     testImplementation 'org.mockito:mockito-core:3.0.0'
diff --git a/server/data/data-cassandra/build.gradle 
b/server/data/data-cassandra/build.gradle
index 6b5e231..51e74fe 100644
--- a/server/data/data-cassandra/build.gradle
+++ b/server/data/data-cassandra/build.gradle
@@ -3,16 +3,39 @@
  */
 
 dependencies {
+    implementation project(":james-core")
+    implementation project(":james-json")
+
     implementation 
project(':james-backends-common:apache-james-backends-cassandra')
+
+    implementation project(':event-sourcing:event-sourcing-pojo')
     implementation 
project(':event-sourcing:event-sourcing-event-store-cassandra')
+
+    implementation project(':james-server:james-server-task-api')
+    implementation project(':james-server:james-server-task-json')
+
     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 project(':james-server:james-server-util')
+    implementation project(':james-server:james-server-lifecycle-api')
+    implementation project(':james-server:james-server-mailrepository-api')
+
+    implementation 'org.scala-lang:scala-library:2.13.1'
+    implementation 'com.datastax.cassandra:cassandra-driver-core:3.7.2'
+    implementation 'io.projectreactor:reactor-core:3.3.4.RELEASE'
+
+    implementation 'com.fasterxml.jackson.core:jackson-annotations:2.9.9'
+    implementation 'commons-io:commons-io:2.6'
+    implementation 'com.github.steveash.guavate:guavate:1.0.0'
     implementation 'com.google.guava:guava:25.1-jre'
+
+    implementation 'javax.inject:javax.inject:1'
     implementation 'org.apache.commons:commons-configuration2:2.7'
     implementation 'org.slf4j:jcl-over-slf4j:1.7.27'
     implementation 'org.slf4j:log4j-over-slf4j:1.7.27'
     implementation 'org.slf4j:slf4j-api:1.7.27'
+
     testImplementation 
project(':james-backends-common:apache-james-backends-cassandra')
     testImplementation 
project(':event-sourcing:event-sourcing-event-store-cassandra')
     testImplementation project(':james-json')
@@ -20,6 +43,7 @@ dependencies {
     testImplementation project(':james-server:james-server-data-library')
     testImplementation project(':james-server:james-server-dnsservice-test')
     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/data/data-library/build.gradle 
b/server/data/data-library/build.gradle
index 5ee311d..93b951c 100644
--- a/server/data/data-library/build.gradle
+++ b/server/data/data-library/build.gradle
@@ -3,24 +3,38 @@
  */
 
 dependencies {
+    implementation project(":james-core")
+
     implementation project(':apache-mailet:apache-mailet-api')
+
+    implementation project(':event-sourcing:event-sourcing-pojo')
     implementation project(':event-sourcing:event-sourcing-core')
+    implementation project(':event-sourcing:event-sourcing-event-store-api')
+
     implementation project(':james-server:james-server-data-api')
     implementation project(':james-server:james-server-dnsservice-api')
     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.scala-lang:scala-library:2.13.1'
+    implementation 'io.projectreactor:reactor-core:3.3.4.RELEASE'
+    implementation 'com.github.fge:throwing-lambdas:0.5.0'
+    implementation 'commons-io:commons-io:2.6'
     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-configuration2:2.7'
+    implementation 'javax.annotation:javax.annotation-api:1.3.2'
     implementation 'javax.inject:javax.inject:1'
     implementation 'org.slf4j:jcl-over-slf4j:1.7.27'
     implementation 'org.slf4j:log4j-over-slf4j:1.7.27'
     implementation 'org.slf4j:slf4j-api:1.7.27'
+
     testImplementation project(':james-server:james-server-data-api')
     testImplementation project(':james-server:james-server-dnsservice-test')
     testImplementation project(':testing-base')
+
     testImplementation 'io.cucumber:cucumber-java:2.4.0'
     testImplementation 'io.cucumber:cucumber-junit:2.4.0'
     testImplementation 'org.mockito:mockito-core:3.0.0'
diff --git a/server/protocols/webadmin/webadmin-data/build.gradle 
b/server/protocols/webadmin/webadmin-data/build.gradle
index cca0d46..04afe6d 100644
--- a/server/protocols/webadmin/webadmin-data/build.gradle
+++ b/server/protocols/webadmin/webadmin-data/build.gradle
@@ -8,10 +8,15 @@ dependencies {
     implementation project(':james-server:james-server-data-library')
     implementation project(':james-server:james-server-util')
     implementation project(':james-server:james-server-webadmin-core')
+
+    implementation 'com.fasterxml.jackson.core:jackson-annotations:2.9.9'
+
+    implementation 'com.github.steveash.guavate:guavate:1.0.0'
     implementation 'com.google.guava:guava:25.1-jre'
     implementation 'org.apache.commons:commons-lang3:3.9'
     implementation 'javax.inject:javax.inject:1'
     implementation 'org.slf4j:slf4j-api:1.7.27'
+
     testImplementation 
project(':event-sourcing:event-sourcing-event-store-memory')
     testImplementation project(':james-server:james-server-data-file')
     testImplementation project(':james-server:james-server-data-library')
@@ -20,6 +25,7 @@ dependencies {
     testImplementation project(':james-server:james-server-webadmin-core')
     testImplementation project(':metrics:metrics-tests')
     testImplementation project(':testing-base')
+
     testImplementation 'io.rest-assured:rest-assured:4.0.0'
     testImplementation 'net.javacrumbs.json-unit:json-unit-assertj:2.8.0'
     testImplementation 'org.hamcrest:java-hamcrest:2.0.0.0'
diff --git a/server/protocols/webadmin/webadmin-mailbox/build.gradle 
b/server/protocols/webadmin/webadmin-mailbox/build.gradle
index 91a3033..e908da9 100644
--- a/server/protocols/webadmin/webadmin-mailbox/build.gradle
+++ b/server/protocols/webadmin/webadmin-mailbox/build.gradle
@@ -3,6 +3,7 @@
  */
 
 dependencies {
+    implementation project(":james-core")
     implementation project(':apache-james-mailbox:apache-james-mailbox-api')
     implementation 
project(':apache-james-mailbox:apache-james-mailbox-event-json')
     implementation 
project(':apache-james-mailbox:apache-james-mailbox-tools-indexer')
@@ -12,13 +13,18 @@ dependencies {
     implementation project(':james-server:james-server-blob:blob-api')
     implementation project(':james-server:james-server-blob:blob-export-api')
     implementation project(':james-server:james-server-data-api')
+    implementation project(":james-server:james-server-task-api")
     implementation project(':james-server:james-server-task-json')
     implementation project(':james-server:james-server-util')
     implementation project(':james-server:james-server-webadmin-core')
+
     implementation 'com.fasterxml.jackson.core:jackson-databind:2.9.9'
     implementation 'com.google.guava:guava:25.1-jre'
     implementation 'javax.inject:javax.inject:1'
     implementation 'org.slf4j:slf4j-api:1.7.27'
+    implementation 'io.swagger:swagger-jaxrs:1.5.22'
+    implementation 'com.sparkjava:spark-core:2.9.1'
+
     testImplementation project(':james-server:james-server-dnsservice-test')
     testImplementation 
project(':apache-james-mailbox:apache-james-mailbox-api')
     testImplementation 
project(':apache-james-mailbox:apache-james-mailbox-event-memory')
@@ -39,6 +45,7 @@ dependencies {
     testImplementation project(':james-server:james-server-webadmin-core')
     testImplementation project(':metrics:metrics-tests')
     testImplementation project(':testing-base')
+
     testImplementation 'io.rest-assured:rest-assured:4.0.0'
     testImplementation 'net.javacrumbs.json-unit:json-unit-assertj:2.8.0'
     testImplementation 'org.hamcrest:java-hamcrest:2.0.0.0'


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

Reply via email to