Skip to content

Plugin is incompatible with Micronaut Gradle plugin #13

Description

@sgrimm

I'm not sure if this is a jooq-plugin problem or a Micronaut one, but the two don't play nicely together.

Minimal build file:

plugins {
  id("com.revolut.jooq-docker") version "0.3.5"
  id("io.micronaut.application") version "1.2.0"
}

group = "com.example"
version = "0.1-SNAPSHOT"

repositories {
  jcenter()
}

micronaut {
  version("2.2.0")
  runtime("netty")
}

application {
  mainClass.set("com.example.Application")
}

This causes Gradle to throw an exception java.lang.NoSuchMethodError: 'com.fasterxml.jackson.databind.ObjectMapper com.github.dockerjava.core.DockerClientConfig.getObjectMapper()'. Full stack trace is at https://gist.github.com/sgrimm/e9d4e9fca6571b339f8a6ae404dd3445 .

The symptom really looks like maybe different versions of different jars in the Java Docker library are being used, but gradle buildEnvironment doesn't show that library as a dependency of the Micronaut plugin. I also tried forcing it to a specific version using setForcedModules() but that didn't help.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions