-
Notifications
You must be signed in to change notification settings - Fork 35
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
1.3.1 breaks compatibility with SBT 1.2.8 #87
Comments
Hi @nigredo-tori, In the meantime I would recommend to either use sbt-dependency-check v1.3.0 or upgrade your project to sbt v1.3.x. |
The problem here seems to be that you build for, and test on, the same SBT version. So you effectively check that your plugin builds for 1.2.8, and then check that artifact against 1.2.8. You won't catch any bincompat issues this way. A proper way to do this would be to build for whatever version you build your published artifact against, and test against different SBT versions. So instead of
Yes, that's what I am doing right now. |
Yeah you're right, I need to set up a different test for that. However I will only do that if sbt decides that everything is working as expected. I obviously don't want to do the tests that sbt should do in the first place. |
Just released v1.3.3 that should address the issue |
Describe the bug
After updating from 1.3.0 to 1.3.1 I get a
NoSuchMethodError
when runningdependencyCheck
.Version of sbt-dependency-check used
The problem occurs using version 1.3.1 of the the plugin.
Log file
https://gist.github.com/nigredo-tori/b09e66fda6d1f040da6d5e796906cfd3
To Reproduce
dependencyCheck
.Expected behavior
dependencyCheck
works as intended.Additional context
It's probably not a good idea to build for the latest SBT version. These are, in general, backward compatible, but not forward compatible. We don't want to accidentally use an API that was not present in the previous versions (like we did here), so we should revert
crossSbtVersions
toVector("0.13.18", "1.2.8")
.The text was updated successfully, but these errors were encountered: