<0.6.0 sbt plugin > Get error object PluginKeys is not a member of package org.scalastyle.sbt org.scalastyle.sbt.PluginKeys.scalastyle.toTask("").value

56 views
Skip to first unread message

Ken Cheng

unread,
Nov 27, 2014, 5:23:47 AM11/27/14
to scalasty...@googlegroups.com
I am following the steps in http://www.scalastyle.org/sbt.html to make style check part of test , but I got the error

object PluginKeys is not a member of package org.scalastyle.sbt org.scalastyle.sbt.PluginKeys.scalastyle.toTask("").value


add below to project/plugins.sbt


addSbtPlugin("org.scalastyle" %% "scalastyle-sbt-plugin" % "0.6.0") resolvers += "sonatype-releases" at "https://oss.sonatype.org/content/repositories/releases/"



and then add below to build.sbt


// Create a default Scala style task to run with tests lazy val testScalaStyle = taskKey[Unit]("testScalaStyle") testScalaStyle := { org.scalastyle.sbt.PluginKeys.scalastyle.toTask("").value } (test in Test) <<= (test in Test) dependsOn testScalaStyle
Reply all
Reply to author
Forward
0 new messages