diffplug / diffplug/spotless

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

Open
#2,933 2 comments 2 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
5.6k
Forks
559
Avg merge
1d 13h
Merged PRs (30d)
34

Description

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"
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.