diffplug / diffplug/spotless

Can't configure SymbolResolver in `expandWildcardImports()`

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

Description

Gradle throw the following error :
``
Execution failed for task ':spotlessJavaApply'.
> There were 6 lint error(s), they must be fixed or suppressed.
src/main/java/com/hypixel/hytale/server/core/Message.java:LINE_UNDEFINED expandwildcardimports(java.lang.IllegalStateException) Symbol resolution not configured: to configure consider setting a SymbolResolver in the ParserConfiguration (...)
``

The `build.gradle.kts`is :
```gradle
spotless {
java {
target(
"src/main/java/**/*.java"
)

palantirJavaFormat("2.85.0").formatJavadoc(true)

formatAnnotations()
forbidModuleImports()
expandWildcardImports()

removeUnusedImports()
endWithNewline()
importOrder()
}
}
```

I'm using the plugin in version 8.2.1

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.