Skip to content

Gradle configuration cache fails: nested config POJOs are not Serializable #1139

Description

@JoelMagee

Problem
In typescript-generator-gradle-plugin 4.x, the nested-POJO types used by @Input Property<T> fields on TypescriptGeneratorExtension do not implement java.io.Serializable. Setting any of them to a non-default value breaks Gradle's configuration cache with:

Cannot fingerprint input property 'jackson3Configuration':
    value 'cz.habarta.typescript.generator.Jackson3Configuration@...' cannot be serialized.

Affected Types
All six nested-POJO input types are non-Serializable (verified by reflection at configuration time):

  • Jackson2Configuration
  • Jackson3Configuration
  • GsonConfiguration
  • JsonbConfiguration
  • ModuleDependency (element of moduleDependencies)
  • Settings.ConfiguredExtension (element of extensionsWithConfigurations)

Environment
Plugin 4.1.1, Gradle 8.14.5, JDK 21

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions