From 1deb97514c5bec501c5fb1ff90e7ebc44f4380e0 Mon Sep 17 00:00:00 2001 From: curfew-marathon Date: Mon, 8 Jun 2026 12:56:33 -0400 Subject: [PATCH] fix: promote Jackson dependencies to api scope in published POM Jackson core, annotations, and databind are used in the public API surface (model class annotations, ApiClient imports), so they must be declared as `api` rather than `implementation`. This ensures downstream Maven consumers have them on the compile classpath and avoids "unknown enum constant" compiler warnings. Switches the Gradle plugin from `java` to `java-library` to enable the `api` configuration. Fixes https://github.com/openfga/java-sdk/issues/349 --- build.gradle | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/build.gradle b/build.gradle index f146e817..ceb5d715 100644 --- a/build.gradle +++ b/build.gradle @@ -1,5 +1,5 @@ plugins { - id 'java' + id 'java-library' // Quality id 'jacoco' @@ -62,10 +62,10 @@ dependencies { implementation "com.google.code.findbugs:jsr305:3.0.2" // ---- Jackson ---- - implementation platform("com.fasterxml.jackson:jackson-bom:$jackson_version") - implementation "com.fasterxml.jackson.core:jackson-core" - implementation "com.fasterxml.jackson.core:jackson-annotations" - implementation "com.fasterxml.jackson.core:jackson-databind" + api platform("com.fasterxml.jackson:jackson-bom:$jackson_version") + api "com.fasterxml.jackson.core:jackson-core" + api "com.fasterxml.jackson.core:jackson-annotations" + api "com.fasterxml.jackson.core:jackson-databind" implementation "com.fasterxml.jackson.datatype:jackson-datatype-jsr310" implementation "org.openapitools:jackson-databind-nullable:0.2.10"