From 6bc38b65b60d081f23a520011f3d835a550baa46 Mon Sep 17 00:00:00 2001 From: Robert Varga Date: Thu, 2 Mar 2023 11:39:08 +0100 Subject: [PATCH] Move Kryo shading to atomix-storage sal-akka-segmented-journal should not need to deal with Kryo, make sure we contain the hacks at the source of the problem. JIRA: CONTROLLER-2071 Change-Id: I0e82b532889babeacd47aade33268886620811d8 Signed-off-by: Robert Varga --- .../md-sal/sal-akka-segmented-journal/pom.xml | 59 ------------------- third-party/atomix/storage/pom.xml | 42 ++++++++++++- 2 files changed, 40 insertions(+), 61 deletions(-) diff --git a/opendaylight/md-sal/sal-akka-segmented-journal/pom.xml b/opendaylight/md-sal/sal-akka-segmented-journal/pom.xml index 93fef5cda7..dc77829936 100644 --- a/opendaylight/md-sal/sal-akka-segmented-journal/pom.xml +++ b/opendaylight/md-sal/sal-akka-segmented-journal/pom.xml @@ -65,37 +65,6 @@ and is available at http://www.eclipse.org/legal/epl-v10.html org.opendaylight.controller atomix-storage - provided - - - com.esotericsoftware - kryo - 4.0.2 - provided - - - com.esotericsoftware - minlog - 1.3.1 - provided - - - com.esotericsoftware - reflectasm - 1.11.8 - provided - - - org.ow2.asm - asm - 5.2 - provided - - - org.objenesis - objenesis - 2.6 - provided @@ -110,34 +79,6 @@ and is available at http://www.eclipse.org/legal/epl-v10.html - - - - org.apache.felix - maven-bundle-plugin - true - - - ${project.groupId}.${project.artifactId} - - !COM.newmonics.*, - !android.os, - * - - - - *;inline=true;artifactId=atomix-storage, - *;inline=true;groupId=com.esotericsoftware, - *;inline=true;groupId=org.objenesis, - *;inline=true;groupId=org.ow2.asm, - - - - - - - scm:git:http://git.opendaylight.org/gerrit/controller.git scm:git:ssh://git.opendaylight.org:29418/controller.git diff --git a/third-party/atomix/storage/pom.xml b/third-party/atomix/storage/pom.xml index c077f156f4..0650152143 100644 --- a/third-party/atomix/storage/pom.xml +++ b/third-party/atomix/storage/pom.xml @@ -26,6 +26,7 @@ atomix-storage Atomix Storage + bundle true @@ -46,6 +47,31 @@ com.esotericsoftware kryo 4.0.2 + provided + + + com.esotericsoftware + minlog + 1.3.1 + provided + + + com.esotericsoftware + reflectasm + 1.11.8 + provided + + + org.ow2.asm + asm + 5.2 + provided + + + org.objenesis + objenesis + 2.6 + provided @@ -64,11 +90,23 @@ io.atomix.storage.*, - io.atomix.utils.* + io.atomix.utils.*, + com.esotericsoftware.kryo.*;version=4.0.2 - sun.nio.ch;resolution:=optional,sun.misc;resolution:=optional,* + sun.nio.ch;resolution:=optional, + sun.misc;resolution:=optional, + !COM.newmonics.*, + !android.os, + * + + + + *;inline=true;groupId=com.esotericsoftware, + *;inline=true;groupId=org.objenesis, + *;inline=true;groupId=org.ow2.asm, + -- 2.36.6