-
Notifications
You must be signed in to change notification settings - Fork 446
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
Put jdeb back in provided scope #1097
Comments
Sorry for the late reply. I tried fix this while upgrading to sbt 1.x, but wasn't able to This requires some more refactoring on the |
A possible solution would be to create a separate class which contains all the import org.vafer.jdeb.{DataProducer, DebMaker}
import org.vafer.jdeb.mapping._
import org.vafer.jdeb.producers._ The class is only instantiated when the |
Thanks for fixing this! If I can make time I'll try to do similar for Spotify docker-client, it brings quite a bit of junk (hello, Guava) into your build's dependencies that are not welcome if not using |
That would be fantastic 😍 |
Expected behaviour
Adding the plugin with no configuration at all does not break the build when using Coursier.
Actual behaviour
#1053 happens out of the box with sbt-native-packager 1.3.2 and Coursier 1.0.
Information
jdeb is in provided scope for sbt 0.13, but that is currently disabled with a comment that something was broken about it in sbt 1.0 milestones (build used RC3 at the time the comment was added).
I've created this issue to track following up on that—presumably if jdeb is back in provided scope for sbt 1.x, a user won't have the bad experience of hitting #1053 and having to go discover the coursier/coursier#450 workaround as soon as they enable sbt-native-packager on their project, when they are not even using
JDebPackaging
.This is a poor out-of-the-box experience, so I feel an issue should be kept open for it.
I don't know what the problem with provided was, but I can try to see if it still persists with later sbt 1.x.
The text was updated successfully, but these errors were encountered: