Skip to content

Unable to load class 'com.diffplug.spotless.FormatterStep'. #1374

@lackovic

Description

@lackovic

Followed these instructions in the README and when I sync Gradle changes in IntelliJ IDEA I get the following error:

Build file 'build.gradle' line: 42

A problem occurred evaluating root project.
> Failed to apply plugin class 'com.palantir.javaformat.gradle.PalantirJavaFormatSpotlessPlugin'.
   > Could not create an instance of type com.palantir.javaformat.gradle.SpotlessInterop.
      > Could not generate a decorated class for type SpotlessInterop.
         > com/diffplug/spotless/FormatterStep

Line 42 is the following:

    apply plugin: 'com.palantir.java-format'

I am getting the same error, regardless of whether the plugin is installed or not.

Using Gradle 8.14.3.

Any idea what I might be doing wrong?

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