scalastyle / scalastyle-sbt-plugin

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

plugins.sbt in IntelliJ IDEA - plugin not found #51

Closed lopezavila85 closed 7 years ago

lopezavila85 commented 8 years ago

Hello,

I am following the instructions in Scalastyle in order to add the plugin into my Scala project. I have added "addSbtPlugin("org.scalastyle" %% "scalastyle-sbt-plugin" % "0.8.0")" into a new plugins.sbt file.

However, when I refresh my project in IntelliJ IDEA, I get the following error:

Error:Error while importing SBT project:
...

[info] Resolving org.scala-lang.modules#scala-xml_2.11;1.0.4 ...
[info] Resolving jline#jline;2.12.1 ...
[warn]  ::::::::::::::::::::::::::::::::::::::::::::::
[warn]  ::          UNRESOLVED DEPENDENCIES         ::
[warn]  ::::::::::::::::::::::::::::::::::::::::::::::
[warn]  :: org.scalastyle#scalastyle-sbt-plugin;0.8.0: not found
[warn]  ::::::::::::::::::::::::::::::::::::::::::::::
[...]
error sbt.ResolveException: unresolved dependency: org.scalastyle#scalastyle-sbt-plugin;0.8.0: not found
error sbt.ResolveException: unresolved dependency: org.scalastyle#scalastyle-sbt-plugin;0.8.0: not found
[error] Total time: 1 s, completed 12-jun-2016 14:46:45

What am I doing wrong? The project is using Scala 2.11.7 and SBT 0.13.9

matthewfarwell commented 8 years ago

scalastyle is in the OSS Sonatype repo. You will probably need to add the sonatype repo into your configuration for Intellij - see http://www.scalastyle.org/sbt.html. However, I don't know how to do this for Intellij.

matthewfarwell commented 7 years ago

Closing, presumed fixed. If there is still a problem, please reopen or raise a new issue.