Skip to content

Old version of spotless java creating compilation issues #2828

@daberkow

Description

@daberkow

What happened?

With

com.diffplug.spotless:spotless-plugin-gradle = 6.6.0
we have spotless java kept at 6.6.0, diffplug/spotless#834 (comment) says we need to bump to at least 6.7.1 to avoid a bug I am seeing where the following stack trace occurs (I copied the stack trace from the link before).

Step 'removeUnusedImports' found problem in 'functional-tests/src/main/java/com/comp/atlas/oyo/upgrade/configuration/TesterConfiguration.java':

null

java.lang.reflect.InvocationTargetException
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)

What did you want to happen?

I see a note that "Newer spotless versions have issues resolving dependencies at configuration time", but latest is 6.24.0, and we are on a build from 2022.

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