-
Notifications
You must be signed in to change notification settings - Fork 186
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 sbt plugin for 0.13 and 1.0 #375
Conversation
if (isSupportedScalaVersion.value) { | ||
scalafixScalacOptions.value | ||
options |
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.
This is to fix
[error] Problem: `scalafixScalacOptions` is inside the if expression of a regular task.
[error] Regular tasks always evaluate task inside the bodies of if expressions.
[error]
[error] Solution:
[error] 1. If you only want to evaluate it when the if predicate is true or false, use a dynamic task.
[error] 2. Otherwise, make the static evaluation explicit by evaluating `scalafixScalacOptions` outside the if expression.
[error]
[error] scalafixScalacOptions.value
[error] ^
[error] one error found
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.
By the way, ❤️ @jvican for that beautiful error message 👆
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 @gabro, lovely comment.
af4364c
to
084e529
Compare
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! Can we update the ci publish script to ^^1.02 to cross publish the sbt plugin?
Otherwise LGTM 👍
I've moved sbt versions to The last one is admittedly a shot in the dark, but I don't have a decent way of testing it. |
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.
LGTM 👍
feel free to cut a release to test if the publish script works. We can delete the tag in case of failure
mm, I had high hopes but nope, didn't work: Any sbt expert around? |
@olafurpg I've removed the tag, but left the release notes in draft (https://github.com/scalacenter/scalafix/releases/tag/untagged-0b502c49a33fb0c5374e) |
I'll take a look at this Monday. |
Closes #374
Not sure what I should change to make this automatically published by the CI