Update babel dependencies 20/132020/2
authorFiete Ostkamp <Fiete.Ostkamp@telekom.de>
Mon, 7 Nov 2022 08:10:39 +0000 (08:10 +0000)
committerFiete Ostkamp <Fiete.Ostkamp@telekom.de>
Mon, 7 Nov 2022 08:16:26 +0000 (08:16 +0000)
- update dependencies
- resolve warning about statically accessing the logger

Issue-ID: AAI-3582

Signed-off-by: Fiete Ostkamp <Fiete.Ostkamp@telekom.de>
Change-Id: Icb80d3880e049e18a6fcbe91d6f1dfd95ebdeef5

pom.xml
src/main/java/org/onap/aai/babel/logging/LogHelper.java

diff --git a/pom.xml b/pom.xml
index 75f6ae9..ed6cde1 100644 (file)
--- a/pom.xml
+++ b/pom.xml
                <docker.fabric.version>0.28.0</docker.fabric.version>
                <aai.docker.version>1.0.0</aai.docker.version>
                <aai.build.directory>${project.build.directory}/${project.artifactId}-${project.version}-build/
-               </aai.build.directory>
+        </aai.build.directory>
                <aai.docker.namespace>onap</aai.docker.namespace>
                <aai.base.image>alpine</aai.base.image>
                <aai.base.image.version>1.9.0</aai.base.image.version>
 
                <!-- Dependency Versions -->
-               <sdc.tosca.version>1.5.1</sdc.tosca.version>
+               <sdc.tosca.version>1.6.5</sdc.tosca.version>
 
                <aai.common.version>1.9.4</aai.common.version>
-               <aaf.version>2.1.21</aaf.version>
-               <common.logging.version>1.2.2</common.logging.version>
-               <logback.core.version>1.2.7</logback.core.version>
-               <groovy.version>2.5.15</groovy.version>
+               <aaf.version>2.7.4</aaf.version>
+               <logback.core.version>1.2.11</logback.core.version>
+               <groovy.version>3.0.13</groovy.version>
 
-               <commons.compress.version>1.21</commons.compress.version>
+               <commons.compress.version>1.22</commons.compress.version>
                <commons.codec.version>1.15</commons.codec.version>
 
-               <javax.ws.rs.version>2.1</javax.ws.rs.version>
-               <mvn.jaxb2.version>0.13.3</mvn.jaxb2.version>
+               <javax.ws.rs.version>2.1.1</javax.ws.rs.version>
+               <mvn.jaxb2.version>0.15.1</mvn.jaxb2.version>
                <aai-schema.group.id>org.onap.aai.schema-service</aai-schema.group.id>
 
                <aai-schema.version>1.9.7</aai-schema.version>
-               <apache.lang3.version>3.7</apache.lang3.version>
-               <aai.rest.client.version>1.2.1</aai.rest.client.version>
+               <commons.lang3.version>3.12.0</commons.lang3.version>
+               <aai.rest.client.version>1.6.4</aai.rest.client.version>
 
-               <sdc.distribution.client.version>1.4.1</sdc.distribution.client.version>
+               <sdc.distribution.client.version>1.4.5</sdc.distribution.client.version>
+               <!-- TODO: use xml-legacy -->
                <xmlunit.version>1.6</xmlunit.version>
 
-               <antrun.version>1.8</antrun.version>
-
-               <javax.activation.version>1.1.1</javax.activation.version>
+               <antrun.version>3.1.0</antrun.version>
+               <jakarta.activation.version>1.2.2</jakarta.activation.version>
                <!-- This will be used for the docker images as the default format of maven build has issues -->
                <maven.build.timestamp.format>yyyyMMdd'T'HHmmss'Z'</maven.build.timestamp.format>
 
 
        <profiles>
                <!-- Docker profile to be used for building docker image and pushing to nexus -->
-
                <profile>
                        <id>docker</id>
                        <build>
                                        <plugin>
                                                <groupId>org.codehaus.mojo</groupId>
                                                <artifactId>build-helper-maven-plugin</artifactId>
-                                               <version>3.0.0</version>
+                                               <version>3.3.0</version>
                                                <executions>
                                                        <execution>
                                                                <phase>pre-clean</phase>
                                                </executions>
                                        </plugin>
                                        <plugin>
-                                               <groupId>org.codehaus.groovy.maven</groupId>
-                                               <artifactId>gmaven-plugin</artifactId>
-                                               <version>1.0</version>
+                                               <groupId>org.codehaus.gmavenplus</groupId>
+                                               <artifactId>gmavenplus-plugin</artifactId>
+                                               <version>1.13.1</version>
                                                <executions>
                                                        <execution>
                                                                <phase>pre-clean</phase>
                                                        <apiVersion>1.23</apiVersion>
                                                        <images>
                                                                <image>
-                                                                       <name>${docker.push.registry}/${aai.docker.namespace}/${project.artifactId}:%l
-                                                                       </name>
+                                                                       <name>${docker.push.registry}/${aai.docker.namespace}/${project.artifactId}:%l</name>
                                                                        <build>
                                                                                <filter>@</filter>
                                                                                <tags>
                <dependency>
                        <groupId>org.apache.commons</groupId>
                        <artifactId>commons-lang3</artifactId>
+                       <version>${commons.lang3.version}</version>
                </dependency>
                <dependency>
                        <groupId>javax.ws.rs</groupId>
                        <artifactId>javax.ws.rs-api</artifactId>
-                       <version>2.1</version>
+                       <version>${javax.ws.rs.version}</version>
                </dependency>
                <dependency>
                        <groupId>org.codehaus.groovy</groupId>
                        <artifactId>jaxb-impl</artifactId>
                </dependency>
                <dependency>
-                       <groupId>javax.activation</groupId>
-                       <artifactId>activation</artifactId>
-                       <version>${javax.activation.version}</version>
+                       <groupId>jakarta.activation</groupId>
+                       <artifactId>jakarta.activation-api</artifactId>
+                       <version>${jakarta.activation.version}</version>
                </dependency>
        </dependencies>
 
                                <groupId>org.codehaus.mojo</groupId>
                                <version>1.5.0</version>
                                <executions>
-                                       <execution><!-- Run our script to get latest xsd version -->
+                                       <execution>
+                                               <!-- Run our script to get latest xsd version -->
                                                <id>Get latest xsd version</id>
                                                <phase>generate-sources</phase>
                                                <goals>
 
 
                        <!-- once we connect aai-parent or oparent 3.0+ we can take out this
-                            whole section -->
+                 whole section -->
 
                        <plugin>
                                <groupId>org.jacoco</groupId>
                                <artifactId>sonar-maven-plugin</artifactId>
                                <version>${sonar.scanner.version}</version>
                        </plugin>
-                       <!-- end removable sonar config, note the additional exclusion for babel above
-                            -->
+                       <!-- end removable sonar config, note the additional exclusion for babel above -->
                </plugins>
        </build>
 
-</project>
+</project>
\ No newline at end of file
index b9fa351..19ee25b 100644 (file)
@@ -22,11 +22,6 @@ package org.onap.aai.babel.logging;
 
 import static com.att.eelf.configuration.Configuration.MDC_SERVICE_NAME;
 
-import ch.qos.logback.classic.AsyncAppender;
-import ch.qos.logback.core.FileAppender;
-import com.att.eelf.configuration.EELFLogger;
-import com.att.eelf.configuration.EELFManager;
-import com.att.eelf.i18n.EELFResolvableErrorEnum;
 import java.io.File;
 import java.text.DateFormat;
 import java.text.SimpleDateFormat;
@@ -34,9 +29,11 @@ import java.util.Date;
 import java.util.Optional;
 import java.util.function.BiConsumer;
 import java.util.function.Consumer;
+
 import javax.servlet.ServletRequest;
 import javax.ws.rs.core.HttpHeaders;
 import javax.ws.rs.core.Response.Status;
+
 import org.apache.commons.lang3.time.StopWatch;
 import org.onap.aai.babel.request.RequestHeaders;
 import org.onap.aai.cl.api.LogFields;
@@ -46,6 +43,13 @@ import org.onap.aai.cl.mdc.MdcOverride;
 import org.onap.aai.restclient.client.Headers;
 import org.slf4j.MDC;
 
+import com.att.eelf.configuration.EELFLogger;
+import com.att.eelf.configuration.EELFManager;
+import com.att.eelf.i18n.EELFResolvableErrorEnum;
+
+import ch.qos.logback.classic.AsyncAppender;
+import ch.qos.logback.core.FileAppender;
+
 /*-
  * This Log Helper mimics the interface of a Common Logging Logger
  * but adds helper methods for audit and metrics logging requirements.
@@ -119,10 +123,10 @@ public enum LogHelper implements Logger {
     /** Our externally advertised service API */
     private static final String SERVICE_NAME_VALUE = "AAI-BAS";
 
-    private static final EELFLogger errorLogger = EELFManager.getInstance().getErrorLogger();
-    private static final EELFLogger debugLogger = EELFManager.getInstance().getDebugLogger();
-    private static final EELFLogger auditLogger = EELFManager.getInstance().getAuditLogger();
-    private static final EELFLogger metricsLogger = EELFManager.getInstance().getMetricsLogger();
+    private static final EELFLogger errorLogger = EELFManager.getErrorLogger();
+    private static final EELFLogger debugLogger = EELFManager.getDebugLogger();
+    private static final EELFLogger auditLogger = EELFManager.getAuditLogger();
+    private static final EELFLogger metricsLogger = EELFManager.getMetricsLogger();
 
     /** Formatting for timestamps logged as Strings (from the MDC) */
     private DateFormat timestampFormat = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSSXXX");