scalastyle / scalastyle-sbt-plugin

scalastyle-sbt-plugin
Apache License 2.0
139 stars 52 forks source link

Incompatible with AutoPlugin #48

Closed brunon closed 7 years ago

brunon commented 8 years ago

ScalaStyle plugin uses the legacy sbt.Plugin class which is not compatible with the newer AutoPlugin mechanism.

In particular, I'm writing an AutoPlugin that modifies the scalastyle task to add automatic "fail on warnings" by applying the "w" argument using partialInput. That works well if the override to scalastyle task is specified in a project's build.sbt file, but if it's specified in an AutoPlugin then the override order is not respected: the task definition present in your plugin overrides anything I specify in my AutoPlugin

It would be good to migrate your code to use sbt.AutoPlugin instead

matthewfarwell commented 7 years ago

Fixed by #52.