Skip to content
Merged
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
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,17 @@ else if (JacksonVersion.JACKSON_2.isOnClasspath(classLoader)) {
return (B) DoclingServeJackson2Client.builder();
}

throw new IllegalStateException("Neither Jackson 2 or 3 is on the classpath");
throw new IllegalStateException("""
Neither Jackson 2 nor Jackson 3 is on the classpath. You must add one of the following dependencies:

For Jackson 2:
Maven: com.fasterxml.jackson.core:jackson-databind
Gradle: implementation("com.fasterxml.jackson.core:jackson-databind:<version>")

For Jackson 3:
Maven: tools.jackson.core:jackson-databind
Gradle: implementation("tools.jackson.core:jackson-databind:<version>")
""");
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,9 @@ void noBuilderWhenNeitherArePresent() {

assertThatExceptionOfType(IllegalStateException.class)
.isThrownBy(() -> DoclingServeClientBuilderFactory.<DoclingServeClient, DoclingServeClientBuilder>newBuilder(classLoader))
.withMessage("Neither Jackson 2 or 3 is on the classpath");
.withMessageContaining("Neither Jackson 2 nor Jackson 3 is on the classpath")
.withMessageContaining("com.fasterxml.jackson.core:jackson-databind")
.withMessageContaining("tools.jackson.core:jackson-databind");
}

@ParameterizedTest
Expand Down