-
-
Notifications
You must be signed in to change notification settings - Fork 4
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
add support for sbt-assembly #152
Conversation
scalaVersion := "2.12.7" | ||
|
||
enablePlugins(ReproducibleBuildsPlugin) | ||
enablePlugins(AssemblyPlugin) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Apparently I have to enable the Assembly for the reproducible hook to work, although the AssemblyPlugin is an auto plugin?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That is indeed pretty weird.
Without this explicit call the assembly plugin was enabled, but indeed assembly
called the original task instead of the 'reproducible' one.
Putting a $ pause
in the scripted test right before the failing check, started an interactive sbt shell and did inspect assembly
. Sure enough this confirmed assembly
was the original assembly
from AssemblyPlugin.scala:57
.
I wonder if it's some sort of ordering or scoping thing?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I can confirm that changing the order here matters, it won't work if the order was:
enablePlugins(AssemblyPlugin)
enablePlugins(ReproducibleBuildsPlugin)
@raboof aside from the enablePlugin issue this is ready on my side. Let me know if you have any comments. |
@somdoron what do you think about somdoron#1 ? |
Amazing, thanks |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice contribution, thanks!
refs #127 |
No description provided.