-
Notifications
You must be signed in to change notification settings - Fork 41
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
including breaks my build due to ambiguous compile key #37
Comments
This is not an autoplugin. You should import:
instead of
and explicitly add the settings:
|
Simply adding the plugin to The error I pasted is output from SBT. And this happened as soon as I simply added the plugin, never including any settings in my build file. I never wrote this line of code in my build file:
Anyhow, I have moved away from protobuf. Wanted to capture this for any others that might see the same issue. If you follow the workaround of aliasing compile |
for convenience, here's a link to how this was fixed for scrooge: https://github.com/twitter/scrooge/pull/210/files#diff-3d1ecf501419eb7452297ced4c03b47eR13 |
I'm seeing this too, the import is added automatically by sbt when you use https://issues.scala-lang.org/browse/SI-2133 Even though |
Thanks all. I just fixed and released |
I can't include this plugin in my build because it breaks it. Here is the error I get when adding
addSbtPlugin("com.github.gseitz" % "sbt-protobuf" % "0.4.0")
toplugins.sbt
:I found a similar issue from twitter scrooge. If i follow @matthandlersux workaround
import Keys.{compile => sbtCompile}
and change all mymainClass in compile
tomainClass in sbtCompile
, then adding the plugin works.https://github.com/trueaccord/ScalaPB depends upon this plugin, and it also breaks my build.
The text was updated successfully, but these errors were encountered: