Skip to content

scalaStyle key no longer accessible from ScalastylePlugin object #65

@dxuhuang

Description

@dxuhuang

The example given in http://www.scalastyle.org/sbt.html

compileScalastyle := org.scalastyle.sbt.ScalastylePlugin.scalastyle.in(Compile).toTask("").value

no longer works because all the keys are now in the autoImport object. Is there a reason for the change? Even though there is import autoImport._, this only makes the key accessible inside ScalastylePlugin itself; you can no longer write ScalastylePlugin.scalastyle directly.

We have to do

import org.scalastyle.sbt.ScalastylePlugin.autoImport._

to get it working.

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