Skip to content

Unable to specify manageTrailingCommas option for Ktfmt #2348

Open
@AlexandrosAlexiou

Description

Hello!

I am using the maven plugin v.2.43.0 with ktfmt

When I specify <manageTrailingCommas>true</manageTrailingCommas> the mvn spotless:apply command fails with:

Unable to parse configuration of mojo com.diffplug.spotless:spotless-maven-plugin:2.43.0:apply for parameter manageTrailingCommas: Cannot find 'manageTrailingCommas' in class com.diffplug.spotless.maven.kotlin.Ktfmt

Here is the whole config:

            <plugin>
                <groupId>com.diffplug.spotless</groupId>
                <artifactId>spotless-maven-plugin</artifactId>
                <version>2.43.0</version>
                <configuration>
                    <kotlin>
                        <ktfmt>
                            <style>KOTLINLANG</style>
                            <manageTrailingCommas>true</manageTrailingCommas>
                        </ktfmt>
                    </kotlin>
                </configuration>
            </plugin>

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions