Skip to content

Missing jackson-module-kotlin in classpath #950

@Eclipseop

Description

@Eclipseop

Starting with commit cabc609 (v1.48.0), the maven-shade-plugin was added to shade and relocate the jackson-module-kotlin and Kotlin stdlib dependencies. However, the KotlinModule no longer exists in the classpath, thus an exception is thrown.

Environment details

  • Programming language: Java
  • OS: Any (reproduced on Linux)
  • Language runtime version: Java 25.0.2-open
  • Package version: google-genai 1.48.0+ (reproduced with 1.50.0)

Steps to reproduce

  1. Create a Maven project with com.google.genai:google-genai version 1.48.0 or later
  2. Call ObjectMapper#findModules

Repo: https://github.com/Eclipseop/genai-java-bug/

Metadata

Metadata

Assignees

No one assigned

    Labels

    priority: p2Moderately-important priority. Fix may not be included in next release.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions