Skip to content

ConcurrentModificationException in LoadReportersWorkAction #518

@scic

Description

@scic

Sometime but not always we get a ConcurrentModificationException from this gradle plugin when it is in the LoadReportersWorkAction.

We have several kotlin modules (mixed with java modules) and the ktLint check runs there in parallel. We run the task ktlintCheck.
Each module configures ktLint with the CHECKSTYLE reporter like this:

ktlint {
    reporters {
        reporter(ReporterType.CHECKSTYLE)
    }
}

We are using v10.1.0.

FAILURE: Build failed with an exception.
* What went wrong:
 Execution failed for task ':loadKtlintReporters'.
   A failure occurred while executing org.jlleitschuh.gradle.ktlint.worker.LoadReportersWorkAction
    Could not serialize unit of work.
      java.util.ConcurrentModificationException (no error message)

is this a plugin problem or should we configure the reporters in a different manner?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions