Upgrade spring boot parent and hazelcast 91/131191/8
authorJozsef Csongvai <jozsef.csongvai@bell.ca>
Mon, 26 Sep 2022 15:09:50 +0000 (11:09 -0400)
committerLukasz Rajewski <lukasz.rajewski@t-mobile.pl>
Sat, 22 Oct 2022 10:57:11 +0000 (10:57 +0000)
The code changes are required for kotlin upgrade.
New kotlin version is 1.5.32 (defined in spring-boot-parent)

Issue-ID: CCSDK-3701
Issue-ID: CCSDK-3762
Signed-off-by: Jozsef Csongvai <jozsef.csongvai@bell.ca>
Change-Id: I0d6ecc7bee8c21d2ecd3ac4364845c5c8e0e9738

ms/blueprintsprocessor/modules/blueprints/blueprint-core/src/main/kotlin/org/onap/ccsdk/cds/controllerblueprints/core/scripts/BluePrintCompileService.kt
ms/blueprintsprocessor/modules/blueprints/blueprint-core/src/main/kotlin/org/onap/ccsdk/cds/controllerblueprints/core/utils/BluePrintArchiveUtils.kt
ms/blueprintsprocessor/modules/commons/processor-core/src/main/resources/application.properties
ms/blueprintsprocessor/modules/commons/rest-lib/src/main/kotlin/org/onap/ccsdk/cds/blueprintsprocessor/rest/service/RestLoggerService.kt
ms/blueprintsprocessor/modules/commons/rest-lib/src/main/resources/application.properties
ms/blueprintsprocessor/parent/pom.xml
pom.xml

index 0c43eef..b093e8e 100644 (file)
@@ -25,8 +25,8 @@ import kotlinx.coroutines.sync.Mutex
 import kotlinx.coroutines.sync.withLock
 import org.jetbrains.kotlin.cli.common.ExitCode
 import org.jetbrains.kotlin.cli.common.arguments.parseCommandLineArguments
-import org.jetbrains.kotlin.cli.common.messages.CompilerMessageLocation
 import org.jetbrains.kotlin.cli.common.messages.CompilerMessageSeverity
+import org.jetbrains.kotlin.cli.common.messages.CompilerMessageSourceLocation
 import org.jetbrains.kotlin.cli.common.messages.MessageCollector
 import org.jetbrains.kotlin.cli.jvm.K2JVMCompiler
 import org.jetbrains.kotlin.config.Services
@@ -160,7 +160,7 @@ open class BluePrintSourceCode : SourceCode {
 data class CompiledMessageData(
     val severity: CompilerMessageSeverity,
     val message: String,
-    val location: CompilerMessageLocation?
+    val location: CompilerMessageSourceLocation?
 )
 
 /** Class to collect compilation results */
@@ -168,7 +168,7 @@ class CompilationMessageCollector : MessageCollector {
 
     private val compiledMessages: MutableList<CompiledMessageData> = arrayListOf()
 
-    override fun report(severity: CompilerMessageSeverity, message: String, location: CompilerMessageLocation?) {
+    override fun report(severity: CompilerMessageSeverity, message: String, location: CompilerMessageSourceLocation?) {
         synchronized(compiledMessages) {
             compiledMessages.add(CompiledMessageData(severity, message, location))
         }
index 1a7c23c..4e2271b 100755 (executable)
@@ -250,7 +250,7 @@ class BluePrintArchiveUtils {
 
         override fun hasMoreElements(): Boolean {
             if (zipEnumeration != null)
-                return zipEnumeration?.hasMoreElements()
+                return zipEnumeration.hasMoreElements()
             else if (archiveStream != null) {
                 nextEntry = archiveStream.nextEntry
                 if (nextEntry != null && !archiveStream.canReadEntryData(nextEntry))
index c10e96e..1231194 100644 (file)
@@ -1,5 +1,5 @@
 #
-#  Copyright © 2017-2018 AT&T Intellectual Property.
+#  Copyright Â© 2017-2018 AT&T Intellectual Property.
 #
 #  Licensed under the Apache License, Version 2.0 (the "License");
 #  you may not use this file except in compliance with the License.
index 4b9bbb1..7442366 100644 (file)
@@ -178,7 +178,7 @@ fun <T> monoMdc(
 class MonoMDCCoroutine<in T>(
     parentContext: CoroutineContext,
     private val sink: MonoSink<T>
-) : AbstractCoroutine<T>(parentContext, true), Disposable {
+) : AbstractCoroutine<T>(parentContext, true, true), Disposable {
 
     private var disposed = false
 
index c10e96e..1231194 100644 (file)
@@ -1,5 +1,5 @@
 #
-#  Copyright © 2017-2018 AT&T Intellectual Property.
+#  Copyright Â© 2017-2018 AT&T Intellectual Property.
 #
 #  Licensed under the Apache License, Version 2.0 (the "License");
 #  you may not use this file except in compliance with the License.
index fb5f7dc..b636930 100755 (executable)
@@ -36,7 +36,7 @@
         <springfox.swagger2.version>3.0.0</springfox.swagger2.version>
         <eelf.version>1.0.0</eelf.version>
         <onap.logger.slf4j>1.2.2</onap.logger.slf4j>
-        <hazelcast.version>4.2.2</hazelcast.version>
+        <hazelcast.version>4.2.5</hazelcast.version>
 
         <h2database.version>1.4.197</h2database.version>
         <powermock.version>1.7.4</powermock.version>
diff --git a/pom.xml b/pom.xml
index 103e1bc..15ab6fa 100644 (file)
--- a/pom.xml
+++ b/pom.xml
@@ -21,8 +21,8 @@ limitations under the License.
 
     <parent>
         <groupId>org.onap.ccsdk.parent</groupId>
-        <artifactId>spring-boot-starter-parent</artifactId>
-        <version>2.4.2</version>
+        <artifactId>spring-boot-26-starter-parent</artifactId>
+        <version>2.4.4</version>
         <relativePath/>
     </parent>
 
@@ -55,7 +55,7 @@ limitations under the License.
         <sonar.inclusions>**/*.java,**/*.kt</sonar.inclusions>
         <!--Specify path to load jacoco XLM report, as Sonar can't load Kotlin coverage from binary report-->
         <sonar.coverage.jacoco.xmlReportPaths>${project.reporting.outputDirectory}/jacoco-ut/jacoco.xml</sonar.coverage.jacoco.xmlReportPaths>
-        <jacoco.version>0.8.3</jacoco.version>
+        <jacoco.version>0.8.7</jacoco.version>
 
         <!-- Properties for POM Format -->
         <format.skipValidate>false</format.skipValidate>
@@ -73,7 +73,7 @@ limitations under the License.
         <ccsdk.build.timestamp>${maven.build.timestamp}</ccsdk.build.timestamp>
         <maven.build.timestamp.format>yyyyMMdd'T'HHmmss'Z'</maven.build.timestamp.format>
 
-        <ccsdk.sli.version>1.5.1</ccsdk.sli.version>
+        <ccsdk.sli.version>1.5.2-SNAPSHOT</ccsdk.sli.version>
         <ccsdk.cds.version>${project.version}</ccsdk.cds.version>
     </properties>