Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Plugin is incompatible with Micronaut Gradle plugin #13

Open
sgrimm opened this issue Jan 4, 2021 · 1 comment
Open

Plugin is incompatible with Micronaut Gradle plugin #13

sgrimm opened this issue Jan 4, 2021 · 1 comment

Comments

@sgrimm
Copy link

sgrimm commented Jan 4, 2021

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.

@mikeazz
Copy link

mikeazz commented Dec 3, 2021

I'm running into a similar issue. Is there a workaround?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants