Skip to content

Can't configure SymbolResolver in expandWildcardImports() #2846

@boul2gom

Description

@boul2gom

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.ktsis :

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

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