diff --git a/docs-core/pom.xml b/docs-core/pom.xml index 9911cd33..eac646db 100644 --- a/docs-core/pom.xml +++ b/docs-core/pom.xml @@ -48,8 +48,8 @@ - commons-lang - commons-lang + org.apache.commons + commons-lang3 @@ -122,11 +122,6 @@ lucene-highlighter - - com.sun.mail - javax.mail - - com.squareup.okhttp3 okhttp diff --git a/docs-core/src/main/java/com/sismics/docs/core/service/InboxService.java b/docs-core/src/main/java/com/sismics/docs/core/service/InboxService.java index 1b463266..7b20dde1 100644 --- a/docs-core/src/main/java/com/sismics/docs/core/service/InboxService.java +++ b/docs-core/src/main/java/com/sismics/docs/core/service/InboxService.java @@ -18,7 +18,7 @@ import com.sismics.docs.core.util.TransactionUtil; import com.sismics.docs.core.util.jpa.SortCriteria; import com.sismics.util.EmailUtil; import com.sismics.util.context.ThreadLocalContext; -import org.apache.commons.lang.StringUtils; +import org.apache.commons.lang3.StringUtils; import org.slf4j.Logger; import org.slf4j.LoggerFactory; diff --git a/docs-core/src/main/java/com/sismics/docs/core/util/DirectoryUtil.java b/docs-core/src/main/java/com/sismics/docs/core/util/DirectoryUtil.java index be941c28..1c335ed6 100644 --- a/docs-core/src/main/java/com/sismics/docs/core/util/DirectoryUtil.java +++ b/docs-core/src/main/java/com/sismics/docs/core/util/DirectoryUtil.java @@ -5,7 +5,7 @@ import java.nio.file.Files; import java.nio.file.Path; import java.nio.file.Paths; -import org.apache.commons.lang.StringUtils; +import org.apache.commons.lang3.StringUtils; import com.sismics.util.EnvironmentUtil; diff --git a/docs-core/src/main/java/com/sismics/docs/core/util/FileUtil.java b/docs-core/src/main/java/com/sismics/docs/core/util/FileUtil.java index 7652c743..0598b729 100644 --- a/docs-core/src/main/java/com/sismics/docs/core/util/FileUtil.java +++ b/docs-core/src/main/java/com/sismics/docs/core/util/FileUtil.java @@ -16,7 +16,7 @@ import com.sismics.util.Scalr; import com.sismics.util.context.ThreadLocalContext; import com.sismics.util.io.InputStreamReaderThread; import com.sismics.util.mime.MimeTypeUtil; -import org.apache.commons.lang.StringUtils; +import org.apache.commons.lang3.StringUtils; import org.slf4j.Logger; import org.slf4j.LoggerFactory; diff --git a/docs-core/src/main/java/com/sismics/util/log4j/LogCriteria.java b/docs-core/src/main/java/com/sismics/util/log4j/LogCriteria.java index d8e4a90e..c28a31a6 100644 --- a/docs-core/src/main/java/com/sismics/util/log4j/LogCriteria.java +++ b/docs-core/src/main/java/com/sismics/util/log4j/LogCriteria.java @@ -1,6 +1,6 @@ package com.sismics.util.log4j; -import org.apache.commons.lang.StringUtils; +import org.apache.commons.lang3.StringUtils; import org.apache.log4j.Level; /** diff --git a/docs-web-common/pom.xml b/docs-web-common/pom.xml index 12149157..be1aadcf 100644 --- a/docs-web-common/pom.xml +++ b/docs-web-common/pom.xml @@ -34,8 +34,8 @@ - commons-lang - commons-lang + org.apache.commons + commons-lang3 @@ -53,17 +53,12 @@ log4j - - commons-dbcp - commons-dbcp - - javax.servlet javax.servlet-api provided - + joda-time joda-time diff --git a/docs-web-common/src/main/java/com/sismics/rest/util/ValidationUtil.java b/docs-web-common/src/main/java/com/sismics/rest/util/ValidationUtil.java index 0c5a279d..a1fc6831 100644 --- a/docs-web-common/src/main/java/com/sismics/rest/util/ValidationUtil.java +++ b/docs-web-common/src/main/java/com/sismics/rest/util/ValidationUtil.java @@ -2,7 +2,7 @@ package com.sismics.rest.util; import com.google.common.base.Strings; import com.sismics.rest.exception.ClientException; -import org.apache.commons.lang.StringUtils; +import org.apache.commons.lang3.StringUtils; import org.joda.time.DateTime; import java.text.MessageFormat; diff --git a/docs-web/pom.xml b/docs-web/pom.xml index fa9ffc33..41c77194 100644 --- a/docs-web/pom.xml +++ b/docs-web/pom.xml @@ -49,8 +49,8 @@ - commons-lang - commons-lang + org.apache.commons + commons-lang3 @@ -68,17 +68,6 @@ log4j - - commons-dbcp - commons-dbcp - - - - javax.servlet - javax.servlet-api - provided - - joda-time joda-time diff --git a/docs-web/src/main/java/com/sismics/docs/rest/resource/AppResource.java b/docs-web/src/main/java/com/sismics/docs/rest/resource/AppResource.java index 2f397b1e..f64b2d2b 100644 --- a/docs-web/src/main/java/com/sismics/docs/rest/resource/AppResource.java +++ b/docs-web/src/main/java/com/sismics/docs/rest/resource/AppResource.java @@ -27,7 +27,7 @@ import com.sismics.util.context.ThreadLocalContext; import com.sismics.util.log4j.LogCriteria; import com.sismics.util.log4j.LogEntry; import com.sismics.util.log4j.MemoryAppender; -import org.apache.commons.lang.StringUtils; +import org.apache.commons.lang3.StringUtils; import org.apache.log4j.Appender; import org.apache.log4j.Level; import org.slf4j.Logger; diff --git a/docs-web/src/main/java/com/sismics/docs/rest/resource/DocumentResource.java b/docs-web/src/main/java/com/sismics/docs/rest/resource/DocumentResource.java index 78f8751f..43742756 100644 --- a/docs-web/src/main/java/com/sismics/docs/rest/resource/DocumentResource.java +++ b/docs-web/src/main/java/com/sismics/docs/rest/resource/DocumentResource.java @@ -34,7 +34,7 @@ import com.sismics.util.JsonUtil; import com.sismics.util.context.ThreadLocalContext; import com.sismics.util.mime.MimeType; import org.apache.commons.collections4.CollectionUtils; -import org.apache.commons.lang.StringUtils; +import org.apache.commons.lang3.StringUtils; import org.glassfish.jersey.media.multipart.FormDataBodyPart; import org.glassfish.jersey.media.multipart.FormDataParam; import org.joda.time.DateTime; diff --git a/docs-web/src/main/java/com/sismics/docs/rest/resource/TagResource.java b/docs-web/src/main/java/com/sismics/docs/rest/resource/TagResource.java index 92485097..f44283e1 100644 --- a/docs-web/src/main/java/com/sismics/docs/rest/resource/TagResource.java +++ b/docs-web/src/main/java/com/sismics/docs/rest/resource/TagResource.java @@ -14,7 +14,7 @@ import com.sismics.rest.exception.ClientException; import com.sismics.rest.exception.ForbiddenClientException; import com.sismics.rest.util.AclUtil; import com.sismics.rest.util.ValidationUtil; -import org.apache.commons.lang.StringUtils; +import org.apache.commons.lang3.StringUtils; import javax.json.Json; import javax.json.JsonArrayBuilder; diff --git a/docs-web/src/main/java/com/sismics/docs/rest/resource/UserResource.java b/docs-web/src/main/java/com/sismics/docs/rest/resource/UserResource.java index 23301dd7..87dfe962 100644 --- a/docs-web/src/main/java/com/sismics/docs/rest/resource/UserResource.java +++ b/docs-web/src/main/java/com/sismics/docs/rest/resource/UserResource.java @@ -30,7 +30,7 @@ import com.sismics.util.context.ThreadLocalContext; import com.sismics.util.filter.TokenBasedSecurityFilter; import com.sismics.util.totp.GoogleAuthenticator; import com.sismics.util.totp.GoogleAuthenticatorKey; -import org.apache.commons.lang.StringUtils; +import org.apache.commons.lang3.StringUtils; import javax.json.Json; import javax.json.JsonArrayBuilder; diff --git a/docs-web/src/test/java/com/sismics/docs/rest/TestSecurity.java b/docs-web/src/test/java/com/sismics/docs/rest/TestSecurity.java index 602415a3..07001614 100644 --- a/docs-web/src/test/java/com/sismics/docs/rest/TestSecurity.java +++ b/docs-web/src/test/java/com/sismics/docs/rest/TestSecurity.java @@ -9,7 +9,7 @@ import javax.ws.rs.core.Response.Status; import com.sismics.util.filter.HeaderBasedSecurityFilter; import org.junit.Assert; -import org.apache.commons.lang.StringUtils; +import org.apache.commons.lang3.StringUtils; import org.junit.Test; import com.sismics.util.filter.TokenBasedSecurityFilter; diff --git a/pom.xml b/pom.xml index 5ba6666b..91a4510c 100644 --- a/pom.xml +++ b/pom.xml @@ -16,51 +16,49 @@ UTF-8 - 1.18 - 2.6 - 2.6 + 1.22 + 3.12.0 + 2.11.0 1.5 - 2.3.30 - 1.4 - 30.1-jre + 2.3.32 + 31.1-jre 1.2.17 1.7.30 1.7.30 1.7.30 - 4.13.1 - 1.4.199 - 2.33 + 4.13.2 + 1.4.200 + 2.39 1.1.4 - 0.9.0 + 0.10.2 8.7.0 4.2 - 2.0.22 - 1.68 - 2.10.9 - 5.4.27.Final - 4.0.1 - 2.0.2 - 5.6.0 - 3.6.2 + 2.0.27 + 1.70 + 2.12.2 + 5.6.15.Final + 3.1.0 + 2.0.4 + 5.13.0 + 3.9.4 2.0 1.4.0 - 42.2.18 + 42.6.0 1.2 - 1.5.8 - 1.6.2 - 1.13.1 - 4.9.0 - 2.0.1 + 1.6.14 + 1.15.4 + 4.10.0 + 2.1.2 9.4.51.v20230217 9.4.51.v20230217 9.4.51.v20230217 - 3.0.0 - 3.2.0 - 3.3.1 - 3.0.0-M5 + 3.1.0 + 3.3.0 + 3.3.2 + 3.0.0 9.4.51.v20230217 @@ -176,7 +174,7 @@ javax.servlet-api ${javax.servlet.javax.servlet-api.version} - + org.apache.commons commons-compress @@ -184,9 +182,9 @@ - commons-lang - commons-lang - ${commons-lang.commons-lang.version} + org.apache.commons + commons-lang3 + ${org.apache.commons.commons-lang3.version} @@ -346,12 +344,6 @@ ${org.hibernate.hibernate.version} - - commons-dbcp - commons-dbcp - ${commons-dbcp.version} - - org.freemarker freemarker @@ -448,12 +440,6 @@ ${com.icegreen.greenmail.version} - - com.sun.mail - javax.mail - ${com.sun.mail.javax.mail.version} - - org.postgresql postgresql