This message was deleted.
# dependency-management
s
This message was deleted.
o
It seems odd to me that you would apply a platform for it not to apply transitively -- that is generally what they are for. Additionally, I don't think that's your problem here -- this isn't a "failed to resolve conflicting versions" message, this is a "Gradle resolved the version to
19.6
and can't find it in your repositories" error. So you would need to either add a repository with that, or add a constraint for the specific version that you want separately.
b
well, i want to manage the versions that my library uses but i don’t want to necessarily enforce ALL versions from that platform. it’s actually not an issue with 19.6 i just truncated the full log, 19.6 itself is perfectly resolvable (and is the version used when i don’t add my library to the consuming project
o
It doesn't look like spring boot is enforcing it, merely adding it as an option, so you should be able to constrain it to a specific version using
strictly
, or you could exclude this specific rule. It would be nice to see the full log so I can provide more specific advice.
b
ahh, so i missed the task that was failing initially.
./gradlew classes
works just fine, but
assemble
fails on
bootJarMainClassName
. So it’s probably something fun and special that boot itself is doing when it encounters a bom (or maybe specifically its own bom??) as a transitive? 😐
yeah, it is deifnitely something with the
productionRuntimeClasspath
that spring boot creates.
runtimeClasspath
has the version of
spring-boot-dependencies
that is applied in the consuming application (
2.7.13
downgraded from
3.1.5
), but
productionRuntimeClasspath
has
3.1.5
.
Copy code
./gradlew dependencies --configuration runtimeClasspath

+--- com.glassdoor.employer.managed.content:employer-managed-content-service-service-client:1.1.11
|    +--- org.slf4j:slf4j-api:2.0.9 -> 1.7.36
|    +--- com.fasterxml.jackson.core:jackson-core:2.15.3 (*)
|    +--- com.fasterxml.jackson.core:jackson-databind:2.15.3 (*)
|    +--- com.fasterxml.jackson.jaxrs:jackson-jaxrs-json-provider:2.15.3 (*)
|    +--- org.openapitools:jackson-databind-nullable:0.2.6 (*)
|    +--- org.springframework:spring-context:6.0.13 -> 5.3.28 (*)
|    +--- org.springframework:spring-web:6.0.13 -> 5.3.28 (*)
|    +--- org.springframework.boot:spring-boot-autoconfigure:3.1.5 -> 2.7.13 (*)
|    +--- org.springframework:spring-webflux:6.0.13 -> 5.3.28 (*)
|    +--- com.fasterxml.jackson.datatype:jackson-datatype-jsr310:2.15.3 (*)
|    +--- io.projectreactor.netty:reactor-netty-http:1.1.12 -> 1.1.8 (*)
|    +--- com.fasterxml.jackson.core:jackson-annotations:2.15.3 (*)
|    +--- jakarta.validation:jakarta.validation-api:3.0.2
|    +--- jakarta.annotation:jakarta.annotation-api:2.1.1
|    +--- org.jetbrains.kotlin:kotlin-stdlib:1.9.20 (*)
|    +--- org.springframework.boot:spring-boot-dependencies:3.1.5 -> 2.7.13 (*)
|    +--- org.springframework.cloud:spring-cloud-dependencies:2022.0.4 -> 2021.0.7 (*)
|    +--- de.codecentric:spring-boot-admin-dependencies:3.1.7 -> 2.7.10 (*)
|    +--- org.jetbrains.kotlin:kotlin-bom:1.9.20 -> 1.8.22 (*)
|    \--- io.github.resilience4j:resilience4j-bom:2.1.0 -> 2.0.2 (*)
Copy code
./gradlew dependencies --configuration productionRuntimeClasspath

+--- com.glassdoor.employer.managed.content:employer-managed-content-service-service-client:1.1.11
|    +--- org.slf4j:slf4j-api:2.0.9 -> 1.7.36
|    +--- com.fasterxml.jackson.core:jackson-core:2.15.3 (*)
|    +--- com.fasterxml.jackson.core:jackson-databind:2.15.3 (*)
|    +--- com.fasterxml.jackson.jaxrs:jackson-jaxrs-json-provider:2.15.3 (*)
|    +--- org.openapitools:jackson-databind-nullable:0.2.6 (*)
|    +--- org.springframework:spring-context:6.0.13 (*)
|    +--- org.springframework:spring-web:6.0.13 (*)
|    +--- org.springframework.boot:spring-boot-autoconfigure:3.1.5 (*)
|    +--- org.springframework:spring-webflux:6.0.13 (*)
|    +--- com.fasterxml.jackson.datatype:jackson-datatype-jsr310:2.15.3 (*)
|    +--- io.projectreactor.netty:reactor-netty-http:1.1.12 (*)
|    +--- com.fasterxml.jackson.core:jackson-annotations:2.15.3 (*)
|    +--- jakarta.validation:jakarta.validation-api:3.0.2
|    +--- jakarta.annotation:jakarta.annotation-api:2.1.1
|    +--- org.jetbrains.kotlin:kotlin-stdlib:1.9.20
|    +--- org.springframework.boot:spring-boot-dependencies:3.1.5 (*)
|    +--- org.springframework.cloud:spring-cloud-dependencies:2022.0.4 (*)
|    +--- de.codecentric:spring-boot-admin-dependencies:3.1.7 (*)
|    +--- org.jetbrains.kotlin:kotlin-bom:1.9.20 (*)
|    \--- io.github.resilience4j:resilience4j-bom:2.1.0 (*)