Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade dependencies #1647

Closed
wants to merge 93 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
93 commits
Select commit Hold shift + click to select a range
c0e19c5
[UPGRADE] - Maven org.codehaus.mojo:versions-maven-plugin:2.11.0 ->2.…
vttranlina Jul 17, 2023
6bed087
[UPGRADE] - Maven ch.qos.logback 1.4.5 -> 1.4.8
vttranlina Jul 17, 2023
8e88a33
[UPGRADE] - Maven com.fasterxml.jackson.* 2.14.1 -> 2.15.2
vttranlina Jul 17, 2023
089a5a3
[UPGRADE] - Maven com.github.ben-manes.caffeine:caffeine 3.1.2 -> 3.1.6
vttranlina Jul 17, 2023
13d061e
[UPGRADE] - Maven com.google.crypto.tink 1.7.0 -> 1.9.0
vttranlina Jul 17, 2023
e979e7b
[UPGRADE] - Maven com.google.guava:guava 31.1-jre -> 32.1.1-jre
vttranlina Jul 17, 2023
2f81937
[UPGRADE] - Maven com.google.inject 5.1.0 -> 6.0.0
vttranlina Jul 17, 2023
3523232
[UPGRADE] - Maven com.jayway.jsonpath:json-path 2.7.0 -> 2.8.0
vttranlina Jul 17, 2023
fe09416
[UPGRADE] - Maven com.typesafe.play:play-json_2.13 2.9.3 -> 2.9.4
vttranlina Jul 17, 2023
29674ae
[UPGRADE] - Maven com.unboundid:unboundid-ldapsdk 6.0.7 -> 6.0.9
vttranlina Jul 17, 2023
f34eec7
[UPGRADE] - Maven commons-daemon:commons-daemon 1.3.3 -> 1.3.4
vttranlina Jul 17, 2023
6d564a8
[UPGRADE] - Maven commons-io:commons-io 2.11.0 -> 2.13.0
vttranlina Jul 17, 2023
7ce8145
[UPGRADE] - Maven eu.timepit:refined_2.13 0.10.3 -> 0.11.0
vttranlina Jul 17, 2023
6045e63
[UPGRADE] - Maven io.dropwizard.metrics 4.2.15 -> 4.2.19
vttranlina Jul 17, 2023
abce39c
[UPGRADE] - Maven io.github.hakky54:sslcontext-kickstart-for-pem 7.4.…
vttranlina Jul 17, 2023
095a09e
[UPGRADE] - Maven io.github.openfeign 11.10 -> 12.4
vttranlina Jul 17, 2023
dc1597c
[UPGRADE] - Maven io.rest-assured:rest-assured 5.3.0 -> 5.3.1
vttranlina Jul 17, 2023
c02e864
[UPGRADE] - Maven net.javacrumbs.json-unit:json-unit-assertj 2.36.0 -…
vttranlina Jul 17, 2023
746dc77
[UPGRADE] - Maven nl.jqno.equalsverifier:equalsverifier 3.10.1 -> 3.15
vttranlina Jul 17, 2023
87db28d
[UPGRADE] - Maven org.apache.activemq:activemq-broker 5.17.3 -> 5.18.2
vttranlina Jul 17, 2023
e9da1b2
[UPGRADE] - Maven org.apache.activemq:artemis-jms-client 2.27.1 -> 2.…
vttranlina Jul 17, 2023
d8630e5
[UPGRADE] - Maven org.apache.ant:ant 1.10.12 -> 1.10.13
vttranlina Jul 17, 2023
ed66c2a
[UPGRADE] - Maven org.apache.commons:commons-compress 1.22 -> 1.23.0
vttranlina Jul 17, 2023
418dfa3
[UPGRADE] - Maven org.apache.commons:commons-configuration2 2.8.0 -> …
vttranlina Jul 17, 2023
6b20d36
[UPGRADE] - Maven org.apache.logging.log4j 2.19.0 -> 2.20.0
vttranlina Jul 17, 2023
e1c8940
[UPGRADE] - Maven org.apache.maven:maven-plugin-api 3.8.5 -> 3.9.3
vttranlina Jul 17, 2023
a331c12
[UPGRADE] - Maven org.apache.pdfbox:pdfbox 2.0.27 -> 2.0.29
vttranlina Jul 17, 2023
2897374
[UPGRADE] - Maven org.assertj:assertj-core 3.23.1 -> 3.24.2
vttranlina Jul 17, 2023
981f32a
[UPGRADE] - Maven org.jsoup:jsoup 1.15.3 -> 1.16.1
vttranlina Jul 17, 2023
a47c9a3
[UPGRADE] - Maven org.junit.jupiter 5.8.2 -> 5.9.3
vttranlina Jul 17, 2023
e3102cd
[UPGRADE] - Maven org.junit.platform 1.8.2 -> 1.9.3
vttranlina Jul 17, 2023
a6d4f9a
[UPGRADE] - Maven org.mock-server:mockserver-netty 5.14.0 -> 5.15.0
vttranlina Jul 17, 2023
5940728
[UPGRADE] - Maven org.mockito 4.8.0 -> 5.2.0
vttranlina Jul 17, 2023
3a32aa0
[UPGRADE] - Maven org.scala-lang:scala-library 2.13.10 -> 2.13.11
vttranlina Jul 17, 2023
de797a8
[UPGRADE] - Maven org.scalatest:scalatest_2.13 3.2.14 -> 3.2.16
vttranlina Jul 17, 2023
2bcd744
[UPGRADE] - Maven org.slf4j 2.0.6 -> 2.0.7
vttranlina Jul 17, 2023
61ce8cf
[UPGRADE] - Maven org.testcontainers 1.17.6 -> 1.18.3
vttranlina Jul 17, 2023
2ce45be
[UPGRADE] - Maven org.apache.maven.wagon:wagon-ssh 3.5.2 -> 3.5.3
vttranlina Jul 17, 2023
e96b809
[UPGRADE] - Maven com.puppycrawl.tools:checkstyle 10.3.4 -> 10.12.1
vttranlina Jul 17, 2023
17b6187
[UPGRADE] - Maven org.apache.maven.doxia:doxia-module-markdown 1.9.1 …
vttranlina Jul 17, 2023
017f9d2
[UPGRADE] - Maven com.fasterxml.jackson.core:jackson-databind 2.14.1 …
vttranlina Jul 17, 2023
74cf7f1
[UPGRADE] - Maven - reactor-bom 2022.0.8 -> 2022.0.9
vttranlina Jul 17, 2023
4b329e7
[UPGRADE] - Maven org.junit.vintage:junit-vintage-engine 5.8.2 -> 5.9.3
vttranlina Jul 17, 2023
f64c131
[UPGRADE] - Maven org.apache.xbean:xbean-spring 4.21 -> 4.23
vttranlina Jul 17, 2023
25ead9b
[UPGRADE] - Maven org.apache.maven.reporting:maven-reporting-api 3.0 …
vttranlina Jul 17, 2023
b9c12dc
[UPGRADE] - Maven org.apache.maven.plugin-tools:maven-plugin-annotati…
vttranlina Jul 17, 2023
5fc264d
[UPGRADE] - Maven org.apache.logging.log4j:log4j-to-slf4j 2.19.0 -> 2…
vttranlina Jul 17, 2023
8590509
[UPGRADE] - Maven org.apache.maven.doxia 1.11.1 -> 1.12.0
vttranlina Jul 17, 2023
2c507da
[UPGRADE] - Maven org.apache.httpcomponents:fluent-hc 4.5.13 -> 4.5.14
vttranlina Jul 17, 2023
c933410
[UPGRADE] - Maven /example - com.google.inject 5.1.0 -> 6.0.0
vttranlina Jul 17, 2023
4159e35
[UPGRADE] - Maven - /example - io.projectreactor:reactor-core 3.4.18 …
vttranlina Jul 17, 2023
f1a4d45
[UPGRADE] - Maven - /example - io.dropwizard.metrics:metrics-graphite…
vttranlina Jul 17, 2023
aab0c36
[UPGRADE] - Maven com.dimafeng:testcontainers-scala* 0.40.10 -> 0.40.17
vttranlina Jul 17, 2023
581d757
[UPGRADE] - Maven com.typesafe.akka:akka-stream* 2.6.20 -> 2.8.3
vttranlina Jul 17, 2023
29015ed
[UPGRADE] - Maven com.auth0:jwks-rsa 0.21.1 -> 0.22.0
vttranlina Jul 17, 2023
6ad268b
[UPGRADE] - Maven it.unimi.dsi:fastutil-core 8.5.9 -> 8.5.12
vttranlina Jul 17, 2023
eece1b0
[UPGRADE] - Maven org.jgrapht:jgrapht-core 1.5.1 -> 1.5.2
vttranlina Jul 17, 2023
ef903d6
[UPGRADE] - Maven org.typelevel:cats-core_2.13 2.8.0 -> 2.9.0
vttranlina Jul 17, 2023
f16e1f3
[UPGRADE] - Maven org.specs2:specs2* 4.17.0 -> 4.20.0
vttranlina Jul 17, 2023
f6f620b
[UPGRADE] - Maven software.amazon.awssdk 2.20.98 -> 2.20.103
vttranlina Jul 17, 2023
f2e52f9
[UPGRADE] - Maven io.prometheus 0.15.0 -> 0.16.0
vttranlina Jul 17, 2023
795346d
[UPGRADE] - Maven com.clever-cloud.pulsar4s:pulsar4s-play-json_2.13 2…
vttranlina Jul 17, 2023
53501be
[UPGRADE] - Maven org.xmlunit 2.9.0 -> 2.9.1
vttranlina Jul 17, 2023
4099c40
[UPGRADE] - Maven com.softwaremill.sttp.client3:okhttp-backend_2.13 3…
vttranlina Jul 17, 2023
f8a65df
[UPGRADE] - Maven surefire plugin/ surefire report plugin: 2.22.2 -> …
vttranlina Jul 10, 2023
f1f5bc5
Maven - Execute build surefire report after test
vttranlina Jul 10, 2023
2ffee1f
[CLEAN CODE] - Maven - Drop import commons-io when un-used
vttranlina Jul 18, 2023
e614164
[UPGRADE] - Docker - Redis 6.2.6 -> 7.0.12
vttranlina Jul 18, 2023
34ad05d
[CLEAN CODE] Hard code jar output final name when compiling maven-ass…
vttranlina Jul 18, 2023
e50219e
[UPGRADE] - Docker - Rabbitmq -> 3.12.1-management
vttranlina Jul 18, 2023
f761e4f
[UPGRADE] - Docker - S3 zenko/cloudserver:8.2.6 -> registry.scality.c…
vttranlina Jul 18, 2023
a8e0386
[UPGRADE] - Maven com.github.ekryd.sortpom:sortpom-maven-plugin 3.1.2…
vttranlina Jul 19, 2023
b3b9a77
[UPGRADE] - Maven jib-maven-plugin 3.2.1 -> 3.3.2
vttranlina Jul 19, 2023
1fbd3a1
[UPGRADE] - Maven org.scalatest:scalatest-maven-plugin 2.0.2 -> 2.2.0
vttranlina Jul 19, 2023
db7dda2
[UPGRADE] - Maven org.apache.maven.plugins:maven-assembly-plugin 3.1.…
vttranlina Jul 19, 2023
fa1fad7
[UPGRADE] - Maven maven-checkstyle-plugin 3.1.2 -> 3.3.0
vttranlina Jul 19, 2023
3fa45c6
[UPGRADE] - Maven maven-compiler-plugin 3.8.1 -> 3.11.0
vttranlina Jul 19, 2023
5fb8933
[UPGRADE] - Maven maven-jar-plugin 3.2.2 -> 3.3.0
vttranlina Jul 19, 2023
812a204
[UPGRADE] - Maven - pl.project13.maven:git-commit-id-plugin 4.9.10 ->…
vttranlina Jul 19, 2023
1ed4127
[UPGRADE] - Maven - org.apache.maven.plugins:maven-jxr-plugin 3.2.0 -…
vttranlina Jul 19, 2023
700ca64
[CLEAN CODE] - Maven - Drop un-used plugin
vttranlina Jul 19, 2023
9be3f48
Jenkinsfile - skip Jib buildTar images when ci test
vttranlina Jul 19, 2023
394a636
[UPGRADE] Glowroot 0.13.6 -> 0.14.0
vttranlina Jul 20, 2023
4052285
[UPGRADE] - Docker - Apache Tika -> 2.8.0.0
vttranlina Jul 18, 2023
ba676a8
[UPGRADE] - Docker - Nginx 1.22 -> 1.25
vttranlina Jul 19, 2023
6e4b87a
[UPGRADE] - Docker - Cassandra 3.11.10 -> 3.11.15 And refactoring doc…
vttranlina Jul 19, 2023
f2fd022
[UPGRADE] - Docker - SpamAssassin 3.4.6 -> 4.0.0
vttranlina Jul 20, 2023
b508c8a
[UPGRADE] - Docker - a16bitsysop/rspamd 3.3-r0-alpine3.16.2-r0 -> 3.5…
vttranlina Jul 20, 2023
a37ae8a
[UPGRADE] - Docker - ClamAv 0.105 -> 1.1
vttranlina Jul 20, 2023
3b7f593
[UPGRADE] James docker base eclipse-temurin:11-jre-focal -> 11-jre-jammy
vttranlina Jul 21, 2023
86a12a7
Refactor RspamdExtension
vttranlina Jul 21, 2023
69dde10
[CLEAN CODE] - Maven - Remove maven-surefire-plugin version tag in ch…
vttranlina Jul 21, 2023
6aa8973
[UPGRADE] - Maven com.beachape:enumeratum_* 1.7.0 -> 1.7.2
vttranlina Jul 21, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ pipeline {
stage('Build') {
steps {
echo 'Building'
sh 'mvn -U -B -e clean install -DskipTests -T1C ${MVN_SHOW_TIMESTAMPS} ${MVN_LOCAL_REPO_OPT}'
sh 'mvn -U -B -e clean install -DskipTests -Djib.skip -T1C ${MVN_SHOW_TIMESTAMPS} ${MVN_LOCAL_REPO_OPT}'
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ public void waitUntilReady(WaitStrategyTarget waitStrategyTarget) {
Unreliables.retryUntilTrue(Ints.checkedCast(timeout.getSeconds()), TimeUnit.SECONDS, () -> {
try {
ClusterFactory.createWithoutKeyspace(ClusterConfiguration.builder()
.host(Host.from(cassandraContainer.getContainerIpAddress(), cassandraContainer.getMappedPort(9042)))
.host(Host.from(cassandraContainer.getHost(), cassandraContainer.getMappedPort(9042)))
.username("cassandra")
.password("cassandra")
.maxRetry(1)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ private static String buildSpecificImageDiscriminator() {

@SuppressWarnings("resource")
public DockerCassandra() {
this("cassandra_3_11_10-" + buildSpecificImageDiscriminator(), AdditionalDockerFileStep.IDENTITY);
this("cassandra_3_11_15-" + buildSpecificImageDiscriminator(), AdditionalDockerFileStep.IDENTITY);
vttranlina marked this conversation as resolved.
Show resolved Hide resolved
}

private DockerCassandra(String imageName, AdditionalDockerFileStep additionalSteps) {
Expand Down Expand Up @@ -168,7 +168,7 @@ public void close() {
new ImageFromDockerfile(imageName,doNotDeleteImageAfterUsage)
.withDockerfileFromBuilder(builder ->
additionalSteps.applyStep(builder
.from("cassandra:3.11.10")
.from("cassandra:3.11.15")
.env("CASSANDRA_CONFIG", "/etc/cassandra")
.run("echo \"-Xms" + CASSANDRA_MEMORY + "M\" >> " + JVM_OPTIONS
+ "&& echo \"-Xmx" + CASSANDRA_MEMORY + "M\" >> " + JVM_OPTIONS
Expand All @@ -183,6 +183,7 @@ public void close() {
.build()))
.withTmpFs(ImmutableMap.of("/var/lib/cassandra", "rw,noexec,nosuid,size=200m"))
.withExposedPorts(CASSANDRA_PORT)
.withCreateContainerCmdModifier(createContainerCmd -> createContainerCmd.withName("james-cassandra-test-" + UUID.randomUUID()))
.withLogConsumer(DockerCassandra::displayDockerLog);
cassandraContainer
.waitingFor(new CassandraWaitStrategy(cassandraContainer));
Expand Down Expand Up @@ -223,7 +224,7 @@ public Host getHost() {
}

public String getIp() {
return cassandraContainer.getContainerIpAddress();
return cassandraContainer.getHost();
}

public int getBindingPort() {
Expand Down
2 changes: 1 addition & 1 deletion backends-common/opensearch/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@
<dependency>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-to-slf4j</artifactId>
<version>2.19.0</version>
<version>${log4j2.version}</version>
</dependency>
<dependency>
<groupId>org.awaitility</groupId>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM nginx:1.22
FROM nginx:1.25

COPY conf/nginx-conf/ /etc/nginx/conf.d/
COPY conf/default.crt /etc/ssl/certs/default.crt
Expand Down
10 changes: 6 additions & 4 deletions backends-common/pulsar/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@
<properties>
<pulsar-client.version>2.11.0</pulsar-client.version>
<clever-cloud.pulsar4s.version>2.9.0</clever-cloud.pulsar4s.version>
<testcontainer-pulsar.version>0.40.17</testcontainer-pulsar.version>
<akka-stream.version>2.8.3</akka-stream.version>
</properties>

<dependencies>
Expand Down Expand Up @@ -86,13 +88,13 @@
<dependency>
<groupId>com.dimafeng</groupId>
<artifactId>testcontainers-scala-pulsar_${scala.base}</artifactId>
<version>0.40.10</version>
<version>${testcontainer-pulsar.version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>com.dimafeng</groupId>
<artifactId>testcontainers-scala-scalatest_${scala.base}</artifactId>
<version>0.40.10</version>
<version>${testcontainer-pulsar.version}</version>
<scope>test</scope>
</dependency>
<dependency>
Expand All @@ -102,12 +104,12 @@
<dependency>
<groupId>com.typesafe.akka</groupId>
<artifactId>akka-stream-typed_${scala.base}</artifactId>
<version>2.6.20</version>
<version>${akka-stream.version}</version>
</dependency>
<dependency>
<groupId>com.typesafe.akka</groupId>
<artifactId>akka-stream_${scala.base}</artifactId>
<version>2.6.20</version>
<version>${akka-stream.version}</version>
</dependency>
<dependency>
<groupId>javax.annotation</groupId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ private String hostName(Optional<String> hostNamePrefix) {
}

private String getHostIp() {
return container.getContainerIpAddress();
return container.getHost();
}

private Integer getPort() {
Expand Down
2 changes: 1 addition & 1 deletion examples/custom-healthcheck/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
<dependency>
<groupId>io.projectreactor</groupId>
<artifactId>reactor-core</artifactId>
<version>3.4.18</version>
<version>3.5.8</version>
<scope>provided</scope>
</dependency>
</dependencies>
Expand Down
5 changes: 3 additions & 2 deletions examples/custom-imap/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,10 @@ services:
image: apache/james:memory-latest
container_name: james
hostname: james.local
command:
- --generate-keystore
volumes:
- ./target/custom-imap-3.8.0-SNAPSHOT-jar-with-dependencies.jar:/root/extensions-jars/custom-imap-3.8.0-SNAPSHOT-jar-with-dependencies.jar
- ./sample-configuration/keystore:/root/conf/keystore
- ./target/custom-imap-jar-with-dependencies.jar:/root/extensions-jars/custom-imap.jar
- ./sample-configuration/imapserver.xml:/root/conf/imapserver.xml
ports:
- "143:143"
Expand Down
3 changes: 2 additions & 1 deletion examples/custom-imap/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@
<dependency>
<groupId>com.google.inject</groupId>
<artifactId>guice</artifactId>
<version>5.1.0</version>
<version>6.0.0</version>
<scope>provided</scope>
</dependency>
</dependencies>
Expand All @@ -97,6 +97,7 @@
<descriptorRefs>
<descriptorRef>jar-with-dependencies</descriptorRef>
</descriptorRefs>
<finalName>custom-imap</finalName>
</configuration>
<executions>
<execution>
Expand Down
Binary file removed examples/custom-imap/sample-configuration/keystore
Binary file not shown.
2 changes: 1 addition & 1 deletion examples/custom-james-assembly/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ We do provide in this example [JIB](https://github.com/GoogleContainerTools/jib/
<plugin>
<groupId>com.google.cloud.tools</groupId>
<artifactId>jib-maven-plugin</artifactId>
<version>2.7.1</version>
<version>3.3.2</version>
<configuration>
<from>
<image>adoptopenjdk:11-jdk-hotspot</image>
Expand Down
4 changes: 2 additions & 2 deletions examples/custom-james-assembly/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,10 @@
<plugin>
<groupId>com.google.cloud.tools</groupId>
<artifactId>jib-maven-plugin</artifactId>
<version>2.7.1</version>
<version>3.3.2</version>
<configuration>
<from>
<image>eclipse-temurin:11-jre-focal</image>
<image>eclipse-temurin:11-jre-jammy</image>
</from>
<to>
<image>apache/james</image>
Expand Down
4 changes: 2 additions & 2 deletions examples/imap-autoconf/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ services:
image: apache/james:memory-latest
container_name: james
hostname: james.local
volumes:
- ./keystore:/root/conf/keystore
command:
- --generate-keystore
ports:
- "465:465"
- "993:993"
Expand Down
Binary file removed examples/imap-autoconf/keystore
Binary file not shown.
5 changes: 3 additions & 2 deletions examples/metrics-graphite/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,10 @@ services:
image: apache/james:memory-latest
container_name: james
hostname: james.local
command:
- --generate-keystore
volumes:
- ./james/keystore:/root/conf/keystore
- ./target/metrics-graphite-3.8.0-SNAPSHOT-jar-with-dependencies.jar:/root/extensions-jars/metrics-graphite-3.8.0-SNAPSHOT-jar-with-dependencies.jar
- ./target/metrics-graphite-jar-with-dependencies.jar:/root/extensions-jars/metrics-graphite.jar
- ./james/extensions.properties:/root/conf/extensions.properties

graphite:
Expand Down
Binary file removed examples/metrics-graphite/james/keystore
Binary file not shown.
5 changes: 3 additions & 2 deletions examples/metrics-graphite/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,12 @@
<dependency>
<groupId>io.dropwizard.metrics</groupId>
<artifactId>metrics-graphite</artifactId>
<version>4.2.15</version>
<version>4.2.19</version>
</dependency>
<dependency>
<groupId>com.google.inject</groupId>
<artifactId>guice</artifactId>
<version>5.1.0</version>
<version>6.0.0</version>
<scope>provided</scope>
</dependency>
<dependency>
Expand Down Expand Up @@ -75,6 +75,7 @@
<descriptorRefs>
<descriptorRef>jar-with-dependencies</descriptorRef>
</descriptorRefs>
<finalName>metrics-graphite</finalName>
</configuration>
<executions>
<execution>
Expand Down
10 changes: 10 additions & 0 deletions examples/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,16 @@
</execution>
</executions>
</plugin>
<plugin>
<groupId>io.github.git-commit-id</groupId>
<artifactId>git-commit-id-maven-plugin</artifactId>
<executions>
<execution>
<id>get-the-git-infos</id>
<phase>none</phase>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>
5 changes: 3 additions & 2 deletions examples/proxy-smtp/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ services:
volumes:
- ./haproxy.cfg:/usr/local/etc/haproxy/haproxy.cfg:ro
ports:
- 25:25
- "25:25"
- 143:143
- 993:993
- 465:465
Expand All @@ -17,10 +17,11 @@ services:
image: apache/james:memory-latest
container_name: james
hostname: james.local
command:
- --generate-keystore
volumes:
- ./smtpserver.xml:/root/conf/smtpserver.xml:ro
- ./imapserver.xml:/root/conf/imapserver.xml:ro
- ./keystore:/root/conf/keystore

helo:
image: alpine:latest
Expand Down
Binary file removed examples/proxy-smtp/keystore
Binary file not shown.
4 changes: 0 additions & 4 deletions mailbox/api/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -76,10 +76,6 @@
<groupId>com.sun.mail</groupId>
<artifactId>javax.mail</artifactId>
</dependency>
<dependency>
<groupId>commons-io</groupId>
<artifactId>commons-io</artifactId>
</dependency>
<dependency>
<groupId>io.projectreactor</groupId>
<artifactId>reactor-core</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion mailbox/event/json/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
<dependency>
<groupId>com.beachape</groupId>
<artifactId>enumeratum_${scala.base}</artifactId>
<version>1.7.0</version>
<version>1.7.2</version>
</dependency>
<dependency>
<groupId>com.chuusai</groupId>
Expand Down
4 changes: 0 additions & 4 deletions mailbox/store/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -90,10 +90,6 @@
<groupId>com.sun.mail</groupId>
<artifactId>javax.mail</artifactId>
</dependency>
<dependency>
<groupId>commons-io</groupId>
<artifactId>commons-io</artifactId>
</dependency>
<dependency>
<groupId>javax.inject</groupId>
<artifactId>javax.inject</artifactId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,8 @@
import javax.mail.Flags.Flag;

import org.apache.commons.io.input.TeeInputStream;
import org.apache.commons.io.input.UnsynchronizedBufferedInputStream;
import org.apache.commons.io.input.UnsynchronizedFilterInputStream;
import org.apache.commons.lang3.tuple.ImmutablePair;
import org.apache.commons.lang3.tuple.Pair;
import org.apache.james.events.EventBus;
Expand Down Expand Up @@ -107,7 +109,6 @@
import org.apache.james.mime4j.stream.RecursionMode;
import org.apache.james.util.io.BodyOffsetInputStream;
import org.apache.james.util.io.InputStreamConsummer;
import org.apache.james.util.io.UnsynchronizedBufferedInputStream;
import org.apache.james.util.streams.Iterators;
import org.reactivestreams.Publisher;

Expand Down Expand Up @@ -358,7 +359,9 @@ public AppendResult appendMessage(InputStream msgIn, Date internalDate, final Ma
file = Files.createTempFile("imap", ".msg").toFile();
try (FileOutputStream out = new FileOutputStream(file);
BufferedOutputStream bufferedOut = new BufferedOutputStream(out);
UnsynchronizedBufferedInputStream tmpMsgIn = new UnsynchronizedBufferedInputStream(new TeeInputStream(msgIn, bufferedOut));
UnsynchronizedFilterInputStream tmpMsgIn = UnsynchronizedBufferedInputStream.builder()
.setInputStream(new TeeInputStream(msgIn, bufferedOut))
.get();
BodyOffsetInputStream bIn = new BodyOffsetInputStream(tmpMsgIn)) {
Pair<PropertyBuilder, HeaderImpl> pair = parseProperties(bIn);
PropertyBuilder propertyBuilder = pair.getLeft();
Expand Down Expand Up @@ -405,8 +408,10 @@ private Mono<AppendResult> appendMessage(Content msgIn, Date internalDate, final
}

try (InputStream contentStream = msgIn.getInputStream();
UnsynchronizedBufferedInputStream bufferedContentStream = new UnsynchronizedBufferedInputStream(contentStream);
BodyOffsetInputStream bIn = new BodyOffsetInputStream(bufferedContentStream)) {
UnsynchronizedFilterInputStream bufferedContentStream = UnsynchronizedBufferedInputStream.builder()
.setInputStream(contentStream)
.get();
BodyOffsetInputStream bIn = new BodyOffsetInputStream(bufferedContentStream)) {
Pair<PropertyBuilder, HeaderImpl> pair = parseProperties(bIn);
PropertyBuilder propertyBuilder = pair.getLeft();
HeaderImpl headers = pair.getRight();
Expand Down
4 changes: 0 additions & 4 deletions mailet/amqp/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -83,10 +83,6 @@
<groupId>com.sun.mail</groupId>
<artifactId>javax.mail</artifactId>
</dependency>
<dependency>
<groupId>commons-io</groupId>
<artifactId>commons-io</artifactId>
</dependency>
<dependency>
<groupId>javax.annotation</groupId>
<artifactId>javax.annotation-api</artifactId>
Expand Down
4 changes: 0 additions & 4 deletions mailet/crypto/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,6 @@
<groupId>com.sun.mail</groupId>
<artifactId>javax.mail</artifactId>
</dependency>
<dependency>
<groupId>commons-io</groupId>
<artifactId>commons-io</artifactId>
</dependency>
<dependency>
<groupId>javax.inject</groupId>
<artifactId>javax.inject</artifactId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@

import javax.mail.MessagingException;

import org.apache.james.util.io.UnsynchronizedBufferedInputStream;
import org.apache.commons.io.input.UnsynchronizedBufferedInputStream;
import org.bouncycastle.cert.jcajce.JcaCertStoreBuilder;
import org.bouncycastle.cert.selector.X509CertificateHolderSelector;
import org.bouncycastle.cert.selector.jcajce.JcaX509CertSelectorConverter;
Expand Down Expand Up @@ -101,7 +101,10 @@ public KeyStoreHolder(String keyStoreFileName, String keyStorePassword, String k
}

keyStore = KeyStore.getInstance(keyStoreType);
keyStore.load(new UnsynchronizedBufferedInputStream(new FileInputStream(keyStoreFileName)), keyStorePassword.toCharArray());
keyStore.load(UnsynchronizedBufferedInputStream
.builder()
.setInputStream(new FileInputStream(keyStoreFileName))
.get(), keyStorePassword.toCharArray());
if (keyStore.size() == 0) {
throw new KeyStoreException("The keystore must be not empty");
}
Expand Down
Loading