Skip to content

Running Gradle with --debug causes caching issues #45

@bmorris591

Description

@bmorris591

When run with --debug, the debug logger is enabled in Gradle. In the plugin, this is used to pass configuration to xjc - specifically debugMode is turned on -

This causes xjc to generate slightly different code - notably the class JAXBDebug is generated by xjc.

Because the configuration of the debug logger is not treated as a task input, the generated source is cached and reused - so that the output from xjc with debugMode turned on is reused even what Gradle is later run without --debug.

A workaround for this is to force the task to rerun with --rerun-tasks.

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