Friday, October 24, 2025

Re: domino-rest | pulling in com.fasterxml.jackson.core:jackson-annotations:2.16.0 ?

I've finally got it to compile without trying to implement anything yet by:

```groovy
dependencies {
    implementation("org.gwtproject:gwt-user:2.12.2")

    annotationProcessor('com.google.dagger:dagger-compiler:2.51')
    implementation "com.google.dagger:dagger-gwt:2.51"

    annotationProcessor 'org.dominokit:domino-rest-processor:1.0.2'
    implementation('org.dominokit:domino-rest-client:1.0.2') {
        exclude group: 'com.fasterxml.jackson.core', module: 'jackson-annotations'
        exclude group: 'com.fasterxml.jackson.core', module: 'jackson-core'
        exclude group: 'com.fasterxml.jackson.core', module: 'jackson-databind'
    }
```

Is this an elemental issue, do I need to pin that to particular version?

-Mike

On 10/24/25 12:37, Michael Conrad wrote:
I'm suddenly getting a jackson annotation set that is too new for gwt 2.12 to be able to compile in my dependency chain?

Am I missing something? Or have something extra?

## error fragment

   Tracing compile failure path for type 'com.fasterxml.jackson.annotation.JsonSetter'
      [ERROR] Errors in 'com/fasterxml/jackson/annotation/JsonSetter.java'
         [ERROR] Line 246: The method format(String, Nulls, Nulls) is undefined for the type String
   Tracing compile failure path for type 'com.fasterxml.jackson.annotation.JacksonInject'
      [ERROR] Errors in 'com/fasterxml/jackson/annotation/JacksonInject.java'
         [ERROR] Line 170: The method format(String, Object, Boolean) is undefined for the type String
   Tracing compile failure path for type 'com.fasterxml.jackson.annotation.JsonIncludeProperties'
      [ERROR] Errors in 'com/fasterxml/jackson/annotation/JsonIncludeProperties.java'
         [ERROR] Line 129: The method format(String, Set<String>) is undefined for the type String
   [ERROR] Aborting compile due to errors in some input files


## gradle fragment

dependencies {
    implementation("org.gwtproject:gwt-user:2.12.2")

    annotationProcessor('com.google.dagger:dagger-compiler:2.51')
    implementation('com.google.dagger:dagger-compiler:2.51')
    implementation('com.google.dagger:dagger-gwt:2.51')

    implementation 'org.dominokit:domino-rest-client:1.0.2'
    compileOnly 'org.dominokit:domino-rest-processor:1.0.2'
    annotationProcessor 'org.dominokit:domino-rest-processor:1.0.2'

## dependency graph

compileClasspath - Compile classpath for source set 'main'.
+--- org.dominokit:domino-rest-processor:1.0.2
|    +--- org.dominokit:domino-rest-shared:1.0.2
|    |    +--- javax.ws.rs:javax.ws.rs-api:2.1.1
|    |    +--- org.dominokit:domino-rest-jaxrs:1.0.2
|    |    +--- org.dominokit:domino-jackson:1.0.4
|    |    |    +--- com.google.elemental2:elemental2-core:1.2.1
|    |    |    |    +--- com.google.jsinterop:jsinterop-annotations:2.0.2
|    |    |    |    +--- com.google.jsinterop:base:1.0.1
|    |    |    |    |    \--- com.google.jsinterop:jsinterop-annotations:2.0.2
|    |    |    |    \--- com.google.elemental2:elemental2-promise:1.2.1
|    |    |    |         +--- com.google.jsinterop:jsinterop-annotations:2.0.2
|    |    |    |         \--- com.google.jsinterop:base:1.0.1 (*)
|    |    |    +--- com.fasterxml.jackson.core:jackson-annotations:2.16.0
|    |    |    |    \--- com.fasterxml.jackson:jackson-bom:2.16.0
|    |    |    |         +--- com.fasterxml.jackson.core:jackson-annotations:2.16.0 (c)
|    |    |    |         +--- com.fasterxml.jackson.core:jackson-core:2.16.0 (c)
|    |    |    |         \--- com.fasterxml.jackson.core:jackson-databind:2.16.0 (c)
|    |    |    +--- com.fasterxml.jackson.core:jackson-databind:2.16.0
|    |    |    |    +--- com.fasterxml.jackson.core:jackson-annotations:2.16.0 (*)
|    |    |    |    +--- com.fasterxml.jackson.core:jackson-core:2.16.0
|    |    |    |    |    \--- com.fasterxml.jackson:jackson-bom:2.16.0 (*)
|    |    |    |    \--- com.fasterxml.jackson:jackson-bom:2.16.0 (*)
|    |    |    \--- org.dominokit.i18n:gwt-datetimeformat:1.0.2

No comments:

Post a Comment