Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to specify manageTrailingCommas option for Ktfmt #2348

Open
AlexandrosAlexiou opened this issue Nov 26, 2024 · 2 comments
Open

Unable to specify manageTrailingCommas option for Ktfmt #2348

AlexandrosAlexiou opened this issue Nov 26, 2024 · 2 comments

Comments

@AlexandrosAlexiou
Copy link

AlexandrosAlexiou commented Nov 26, 2024

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>
@EniXoo
Copy link

EniXoo commented Dec 18, 2024

Hey ! I faced the same issue 👍

I've decided to check the README of the v2.43.0 and it seems that it is not implemented on this version 😃 It seems that you'll need at least v2.44.0BETA2 😉

Hoping it will help you 👌

@AlexandrosAlexiou
Copy link
Author

AlexandrosAlexiou commented Dec 18, 2024

Thanks for the info! 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants