palantir / palantir/palantir-java-format

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

Open
#1,374 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Java
Stars
907
Forks
101
Avg merge
1d 3h
Merged PRs (30d)
19

Description

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?

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the Gradle plugin instructions in the README and the application at build.gradle line 42. Reproduce the IntelliJ IDEA Gradle sync using Gradle 8.14.3, then inspect why com.diffplug.spotless.FormatterStep is unavailable while PalantirJavaFormatSpotlessPlugin is applied. Done means the documented setup syncs without the missing-class error, or the incompatibility is clearly documented.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
build-system
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.