Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create a cross build for both 2.11 and 2.10 #20

Closed
jasonchaffee opened this issue Jul 6, 2014 · 5 comments
Closed

Create a cross build for both 2.11 and 2.10 #20

jasonchaffee opened this issue Jul 6, 2014 · 5 comments

Comments

@jasonchaffee
Copy link

It would be nice if the plugin would work with both scala versions. Need to wait for sbt on 2.11.

http://stackoverflow.com/questions/23282469/does-sbt-builds-againts-scala-2-11

@matthewfarwell
Copy link
Member

Should be fixed by commit 42d4e4a. WIll be part of 0.6.0.

@code-rhino
Copy link

Is there a SBT repository that will work with 2.11?

@matthewfarwell
Copy link
Member

There should be. What is your problem? Are you having problems - if you are then could provide a small project which doesn't work. Thanks.

@agenovese
Copy link

Hello, not sure if this is the same issue that code-rhino is referencing, but I am unable to use the scalastyle sbt plugin with a scala 2.11 project. The error is an unresolved dependency.

The url I would have expected to find the plugin at is https://oss.sonatype.org/content/repositories/releases/org/scalastyle/scalastyle-sbt-plugin_2.11_0.13/0.6.0/scalastyle-sbt-plugin-0.6.0.pom

the test project is just a build.sbt file as follows:

name := "testScalaStyle"

version := "1.0"

scalaVersion := "2.11.1"

resolvers ++= Seq(
"sonatype-releases" at "https://oss.sonatype.org/content/repositories/releases/"
)

addSbtPlugin("org.scalastyle" %% "scalastyle-sbt-plugin" % "0.6.0")

@matthewfarwell
Copy link
Member

You need to put the addSbtPlugin into project/plugins.sbt, not directly in build.sbt.

project/plugins.sbt contains the dependencies of the build, whereas build.sbt contains the dependencies of your code.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants