-
Notifications
You must be signed in to change notification settings - Fork 443
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
Cross build with sbt 1.0 #1000
Cross build with sbt 1.0 #1000
Conversation
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.
Thanks for porting this important plugin.
Let us know if you found some awkward parts in the API.
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 echo Eugene: let us know if any parts of the API or the migration process was awkward/difficult/complicated so we can try and smooth the edges before the release. Thanks.
First of all: Even this is the first major version bump of SBT and native-packager is a pretty old plugin, the necessary changes are really small and comprehensible. I mostly struggled with the the What puzzles me at the moment is the changed behavior with special artifacts and artifact scopes. We have two provided dependencies:
The
Apparently this lazy loading behavior changed as I now get The second thing that puzzled me was that the classpathTypes += "maven-plugin" to the native-packager |
.settings(mySettings) | ||
.settings( | ||
ivyConfigurations += assets, | ||
artifact in assets := artifact.value.withClassifier(classifier = Some("assets")), |
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.
@eed3si9n Where can I find the latest Artifact
API definition? I wasn't able to find the publish API documentation, or the sources files in the sbt-librarymanagment
project. I actually guessed this method call 😛
Before it was copy(classifier = Some("assets"))
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.
The sbt docs on Aritfacts still state there is a copy
method
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.
It's generated from https://github.com/sbt/librarymanagement/blob/1.0/librarymanagement/src/main/contraband/librarymanagement.json. I should make sure the generated code goes into GitHub like other sbt modules.
a0f386e
to
dbf196f
Compare
This may break 0.13.6 -> add compat for this
37866fd
to
88233b3
Compare
Is there anything else that needs to be done to get this merged? I'm working on cross-building my company's plugins for sbt 1.0 and like @eed3si9n said, this is an important one that's included in several of ours as a dependency. If there's something I can help with, please let me know. |
Thanks a lot for your offer 😍 I tried to release a first RC1 with this, but messed up at some point. The release now takes almost 1 1/2 hours ony machine due to the scripted tests in two versions. |
The first release candidate is out |
@muuki88 We are using I'll test again with I did notice a few eviction warnings during the build, which may or may not be a problem. We try to treat warnings as errors so I'm conditioned to worry about them, idk. |
Following up on earlier—RC2 looks good AFAICT, other than the previously mentioned eviction warnings. |
Initial attempt to cross build sbt-native-packager for sbt
1.0.0-M6
and0.13.15
.Inspired by and copied from