Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions buildSrc/src/main/kotlin/openai.java.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,9 @@ tasks.withType<Test>().configureEach {

val palantir by configurations.creating
dependencies {
// Palantir is an isolated build tool and must use the internally aligned Jackson line it was
// built against. This does not affect any published or runtime dependency configuration.
palantir(platform("com.fasterxml.jackson:jackson-bom:2.21.5"))
palantir("com.palantir.javaformat:palantir-java-format:2.96.0")
}

Expand Down
5 changes: 4 additions & 1 deletion openai-java-core/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,10 @@ val jacksonPublishedRuntime by configurations.creating {
isCanBeResolved = true
}

configurations.matching { it.name != jacksonPublishedRuntime.name }.configureEach {
// Palantir is an isolated build tool with its own aligned Jackson BOM.
configurations.matching {
it.name != jacksonPublishedRuntime.name && it.name != "palantir"
}.configureEach {
resolutionStrategy {
// Compile and test against a lower Jackson version to ensure we're compatible with it. Note that
// we generally support 2.13.4, but test against 2.14.0 because 2.13.4 has some annoying (but
Expand Down
Loading