sbt-checkstyle-plugin
sbt-checkstyle-plugin copied to clipboard
Problem with apache commons-cli
I have multi-module project. When I try to use checkstyle
in any of my submodules I am getting the following error:
java.lang.NoSuchMethodError: org.apache.commons.cli.Options.hasShortOption(Ljava/lang/String;)Z
Any idea?
This is most probably caused by conflict with another plugin. I've got this when used Swagger Codegen and this plugin in the same project.
I think this can be solved by adding a separate Configuration for every plugin.
Yes, I am using swagger codegen in this project...
Checkstyle 8.15 will use picocli instead of Apache Commons CLI, so that problem should go away.