Skip to content

NoClassDefFoundError's after update to gradle-plugin v8.5.1 #2933

Description

@abentele

after update from gradle-plugin v8.5.0 to v8.5.1, I get errors for Kotlin files which don't contain any Kotlin classes.

Log output is:

...
.../MediaTypes.kt:LINE_UNDEFINED ktlint(java.lang.NoClassDefFoundError) com/pinterest/ktlint/rule/engine/api/EditorConfigDefaults (...)
...

The example file MediaTypes.kt has this content:

package xyz

const val MEDIA_TYPE_WORD = "application/vnd.openxmlformats-officedocument.wordprocessingml.document"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions