Open stefanbethke opened 7 months ago
Hi @stefanbethke this seems to be a dependency mismatch, can you compare the version of fabric8 client and OkHttp within this repo and yours?
@stefanbethke it would be a good idea to use spring dependency-management and spring boot plugin and let them manage the version numbers.
I can give you an example in for gradle with kotlin.
build.gradle.kts
plugins {
id("org.springframework.boot") version "3.2.3"
id("io.spring.dependency-management") version "1.1.4"
kotlin("jvm") version "1.9.22"
kotlin("plugin.spring") version "1.9.22"
}
dependencies {
implementation("org.springframework.boot:spring-boot-starter-actuator")
implementation("org.springframework.boot:spring-boot-starter-web")
// kotlin dependencies
implementation("com.fasterxml.jackson.module:jackson-module-kotlin")
implementation("org.jetbrains.kotlin:kotlin-reflect")
/* OperatorSDK Spring Boot starter */
implementation("io.javaoperatorsdk:operator-framework-spring-boot-starter:5.4.1")
// Generating CustomResourceDefinitions from Java classes
annotationProcessor("io.fabric8:crd-generator-apt")
annotationProcessor("org.springframework.boot:spring-boot-configuration-processor")
testImplementation("org.springframework.boot:spring-boot-starter-test")
// Test OperatorSDK
testImplementation("io.javaoperatorsdk:operator-framework-spring-boot-starter-test:5.4.1") {
/* Exclude sample code that gets unnecessary packaged
fixed with PR https://github.com/operator-framework/josdk-spring-boot-starter/pull/127
next version will include the fix
*/
exclude(
group = "io.javaoperatorsdk",
module = "operator-framework-spring-boot-starter-samples-common")
}
}
configurations {
all {
/*
Exclude log4j-slf4j2-impl from io.javaoperatorsdk
conflicts with spring-boot-starter-logging
*/
exclude(group = "org.apache.logging.log4j", module = "log4j-slf4j2-impl")
}
}
With these dependencies:
I'm getting this error on startup:
I'm not sure what to do here.