-
Notifications
You must be signed in to change notification settings - Fork 935
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
Cannot compile SBT plugin under Scala 2.13.0 #5032
Comments
sbt plugin should be created like this: lazy val root = (project in file("."))
.enablePlugins(SbtPlugin)
.settings(
name := "sbt-something"
) and Scala version should not be specified unless you're cross building between sbt 1.x and 0.13. |
thank you! conclusion:
It would be lovely to see such table/mapping in SBT docs for plugin development |
I ran into this exact issue by starting my plugin from The plugin doc is confusing. It shows "bare" configurations in the complete example, and it starts by introducing So, I created a minimal working example in this repository: https://github.com/logc/sbt-hello . Please comment there if you find that it does not follow current best practices. Otherwise, I hope it helps someone else! |
steps
SBT version: 1.2.8, 1.3.0
build.sbt:
src/main/scala/Bug.scala:
Run command:
+compile
or++2.13.0; compile
problem
expectation
There are no compilation errors.
Compilation for Scala 2.13.0 must succeed.
notes
The text was updated successfully, but these errors were encountered: