use slightly older version of fabric8 kubernetes which uses slf4j 1.x
tried to update slf4j to 2.x but it isn't completely straightforward; instead updated to latest 1.x
diff --git a/karaf/features/src/main/feature/feature.xml b/karaf/features/src/main/feature/feature.xml
index 26e6bba..1a8a25d 100644
--- a/karaf/features/src/main/feature/feature.xml
+++ b/karaf/features/src/main/feature/feature.xml
@@ -48,6 +48,7 @@
<bundle>mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.jsr305/${jsr305.bundle.version}</bundle> <!-- complementary to above, but split packages; excluded by karaf.features.xml as not needed, confuses things -->
<bundle>mvn:jakarta.xml.bind/jakarta.xml.bind-api/${jakarta.xml.bind-api.version}</bundle> <!-- preferred over servicemix jaxb (identical) -->
+ <!-- <bundle>mvn:org.slf4j/slf4j-api/${slf4j.version}</bundle> seems to give compile errors if we include this -->
<bundle>mvn:org.slf4j/jul-to-slf4j/${slf4j.version}</bundle>
<bundle>mvn:ch.qos.logback/logback-core/${logback.version}</bundle>
diff --git a/pom.xml b/pom.xml
index 4b8ade5..145b682 100644
--- a/pom.xml
+++ b/pom.xml
@@ -106,7 +106,7 @@
<!-- Dependency Versions -->
<jclouds.version>2.4.0</jclouds.version> <!-- JCLOUDS_VERSION -->
<logback.version>1.2.9</logback.version>
- <slf4j.version>1.7.25</slf4j.version> <!-- used for java.util.logging jul-to-slf4j interception -->
+ <slf4j.version>1.7.36</slf4j.version> <!-- used for java.util.logging jul-to-slf4j interception; 2.x is released 2023 but does not provide org.slf4j.spi.SLF4JServiceProvider which is used -->
<!-- Must match jclouds' version. From jclouds 2.4.0 it is 27 by default but might use any. -->
<guava.version>27.1-jre</guava.version>
<!--
@@ -185,7 +185,7 @@
<maxmind-db.version>1.2.1</maxmind-db.version>
<winrm4j.version>0.12.3</winrm4j.version> <!-- WINRM4J_VERSION -->
<felix-osgi-compendium.version>1.4.0</felix-osgi-compendium.version>
- <kubernetes-client.version>6.9.2</kubernetes-client.version>
+ <kubernetes-client.version>6.8.1</kubernetes-client.version> <!-- 6.9 switches to slf4j v2 which has compatibility issues -->
<!-- Dependencies shipped with vanilla karaf; update these when we update the karaf version -->
<karaf.version>4.3.8</karaf.version>