diff --git a/pom.xml b/pom.xml
index c9bb0cfe..768af950 100644
--- a/pom.xml
+++ b/pom.xml
@@ -333,7 +333,7 @@
org.gaul
modernizer-maven-plugin
- 3.0.0
+ ${modernizer.version}
modernizer
@@ -345,9 +345,6 @@
${java.version}
-
- com/google/common/base/Supplier
-
@@ -369,6 +366,7 @@
11
2.6.0
11.0.24
+ 3.1.0
2.0.16
${project.groupId}.shaded
3.2.5
@@ -509,6 +507,11 @@
jetty-servlet
${jetty.version}
+
+ org.gaul
+ modernizer-maven-annotations
+ ${modernizer.version}
+
org.slf4j
slf4j-api
diff --git a/src/main/java/org/gaul/s3proxy/Main.java b/src/main/java/org/gaul/s3proxy/Main.java
index e6eb3ac4..5396e231 100644
--- a/src/main/java/org/gaul/s3proxy/Main.java
+++ b/src/main/java/org/gaul/s3proxy/Main.java
@@ -46,6 +46,7 @@
import com.google.common.io.MoreFiles;
import com.google.common.util.concurrent.ThreadFactoryBuilder;
+import org.gaul.modernizer_maven_annotations.SuppressModernizer;
import org.jclouds.Constants;
import org.jclouds.ContextBuilder;
import org.jclouds.JcloudsVersion;
@@ -392,7 +393,8 @@ private static BlobStore createBlobStore(Properties properties,
}
if ((identity.isEmpty() || credential.isEmpty()) && provider.equals("aws-s3")) {
- var credentialsSupplier = new Supplier() {
+ @SuppressModernizer
+ Supplier credentialsSupplier = new Supplier() {
@Override
public Credentials get() {
AWSCredentialsProvider authChain = DefaultAWSCredentialsProviderChain.getInstance();