Skip to content

Commit 502f332

Browse files
committed
Merge remote-tracking branch 'origin/develop' into develop
2 parents 6844fe1 + 7c385eb commit 502f332

10 files changed

Lines changed: 27 additions & 19 deletions

File tree

.github/dependabot.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,11 @@ updates:
88
interval: "weekly"
99
target-branch: "develop"
1010
ignore:
11+
- dependency-name: "org.mnode.ical4j:ical4j-vcard"
12+
update-types:
13+
- "version-update:semver-patch"
14+
- "version-update:semver-minor"
15+
- "version-update:semver-major"
1116
- dependency-name: "info.picocli:picocli"
1217
update-types:
1318
- "version-update:semver-minor"

modules/batch-module/src/main/java/org/simplejavamail/internal/batchsupport/BatchSupport.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -131,11 +131,11 @@ private void checkConfigureOAuth2Token(Session session) {
131131
*/
132132
@NotNull
133133
@Override
134-
public Future<?> shutdownConnectionPools(@NotNull Session session) {
134+
public Future<Void> shutdownConnectionPools(@NotNull Session session) {
135135
if (smtpConnectionPool == null) {
136136
LOGGER.warn("user requested connection pool shutdown, but there is no connection pool to shut down (yet)");
137137
return completedFuture(null);
138138
}
139139
return smtpConnectionPool.shutdownPool(session);
140140
}
141-
}
141+
}

modules/cli-module/pom.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
<dependency>
3333
<groupId>com.github.bbottema</groupId>
3434
<artifactId>java-reflection</artifactId>
35-
<version>4.0.2</version>
35+
<version>4.1.1</version>
3636
</dependency>
3737

3838
<!-- needed for cli support -->
@@ -147,7 +147,7 @@
147147
<!-- always trigger CliListAllSupportedOptionsDemoApp when packaging CLI artifacts, generating cli data files -->
148148
<groupId>org.codehaus.mojo</groupId>
149149
<artifactId>exec-maven-plugin</artifactId>
150-
<version>3.0.0</version>
150+
<version>3.5.0</version>
151151
<executions>
152152
<execution>
153153
<id>generateCliData</id>
@@ -165,7 +165,7 @@
165165
<plugin>
166166
<groupId>org.codehaus.mojo</groupId>
167167
<artifactId>appassembler-maven-plugin</artifactId>
168-
<version>1.8.1</version>
168+
<version>2.1.0</version>
169169
<configuration>
170170
<configurationSourceDirectory>src/main/resources</configurationSourceDirectory>
171171
<copyConfigurationDirectory>true</copyConfigurationDirectory>

modules/core-module/src/main/java/org/simplejavamail/api/mailer/Mailer.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ public interface Mailer extends AutoCloseable {
120120
* <p>
121121
* <strong>Note:</strong> this is only works in combination with the {@value org.simplejavamail.internal.modules.BatchModule#NAME}.
122122
*/
123-
Future<?> shutdownConnectionPool();
123+
Future<Void> shutdownConnectionPool();
124124

125125
/**
126126
* @return The server connection details. Will be {@code null} in case a custom fixed {@link Session} instance is used.

modules/core-module/src/main/java/org/simplejavamail/internal/modules/BatchModule.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,5 +57,5 @@ public interface BatchModule {
5757
* Shuts down connection pool(s) and closes remaining open connections. Waits until all connections still in use become available again to deallocate them as well.
5858
*/
5959
@NotNull
60-
Future<?> shutdownConnectionPools(@NotNull Session session);
61-
}
60+
Future<Void> shutdownConnectionPools(@NotNull Session session);
61+
}

modules/core-test-module/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
<dependency>
3737
<groupId>commons-io</groupId>
3838
<artifactId>commons-io</artifactId>
39-
<version>2.16.1</version>
39+
<version>2.18.0</version>
4040
</dependency>
4141
<dependency>
4242
<groupId>org.assertj</groupId>

modules/simple-java-mail/pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@
9393
<dependency><!-- used to test loading of Environment properties in ConfigLoaderTest -->
9494
<groupId>org.junit-pioneer</groupId>
9595
<artifactId>junit-pioneer</artifactId>
96-
<version>1.9.1</version>
96+
<version>2.3.0</version>
9797
<scope>test</scope>
9898
</dependency>
9999
</dependencies>
@@ -113,7 +113,7 @@
113113
<plugin>
114114
<groupId>org.assertj</groupId>
115115
<artifactId>assertj-assertions-generator-maven-plugin</artifactId>
116-
<version>2.1.0</version>
116+
<version>2.2.0</version>
117117
<executions>
118118
<execution>
119119
<goals>

modules/simple-java-mail/src/main/java/org/simplejavamail/mailer/internal/MailerImpl.java

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -373,11 +373,14 @@ public boolean validate(@NotNull final Email email)
373373
* @see Mailer#shutdownConnectionPool()
374374
*/
375375
@Override
376-
public Future<?> shutdownConnectionPool() {
376+
public Future<Void> shutdownConnectionPool() {
377377
if (!operationalConfig.isExecutorServiceIsUserProvided()) {
378378
operationalConfig.getExecutorService().shutdown();
379379
}
380-
return ModuleLoader.loadBatchModule().shutdownConnectionPools(session);
380+
if (ModuleLoader.batchModuleAvailable()) {
381+
return ModuleLoader.loadBatchModule().shutdownConnectionPools(session);
382+
}
383+
return CompletableFuture.completedFuture(null);
381384
}
382385

383386
@Override
@@ -458,4 +461,4 @@ public EmailGovernance getEmailGovernance() {
458461
public void close() throws ExecutionException, InterruptedException {
459462
shutdownConnectionPool().get();
460463
}
461-
}
464+
}

modules/smime-module/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
<dependency>
3434
<groupId>org.simplejavamail</groupId>
3535
<artifactId>utils-mail-smime</artifactId>
36-
<version>2.3.11</version>
36+
<version>2.3.12</version>
3737
</dependency>
3838
</dependencies>
3939
</project>

pom.xml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -64,13 +64,13 @@
6464
<dependency>
6565
<groupId>org.projectlombok</groupId>
6666
<artifactId>lombok</artifactId>
67-
<version>1.18.22</version>
67+
<version>1.18.36</version>
6868
<scope>provided</scope>
6969
</dependency>
7070
<dependency>
7171
<groupId>com.pivovarit</groupId>
7272
<artifactId>throwing-function</artifactId>
73-
<version>1.5.1</version>
73+
<version>1.6.1</version>
7474
<scope>compile</scope>
7575
</dependency>
7676

@@ -89,7 +89,7 @@
8989
<dependency>
9090
<groupId>org.objenesis</groupId>
9191
<artifactId>objenesis</artifactId>
92-
<version>2.6</version>
92+
<version>3.4</version>
9393
</dependency>
9494
<dependency>
9595
<groupId>com.google.code.findbugs</groupId>
@@ -109,7 +109,7 @@
109109
<dependency>
110110
<groupId>commons-io</groupId>
111111
<artifactId>commons-io</artifactId>
112-
<version>2.16.1</version>
112+
<version>2.18.0</version>
113113
</dependency>
114114
<dependency>
115115
<groupId>org.eclipse.angus</groupId>

0 commit comments

Comments
 (0)