Skip to content
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

Merged
merged 3 commits into from
Sep 23, 2017

Conversation

gabro
Copy link
Collaborator

@gabro gabro commented Sep 23, 2017

Closes #374

Not sure what I should change to make this automatically published by the CI

@gabro gabro requested a review from olafurpg September 23, 2017 16:44
if (isSupportedScalaVersion.value) {
scalafixScalacOptions.value
options
Copy link
Collaborator Author

@gabro gabro Sep 23, 2017

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

Copy link
Collaborator Author

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 👆

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @gabro, lovely comment.

@gabro gabro mentioned this pull request Sep 23, 2017
Copy link
Contributor

@olafurpg olafurpg left a 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 👍

@gabro
Copy link
Collaborator Author

gabro commented Sep 23, 2017

I've moved sbt versions to Dependencies.scala and tried to upgrade the ci-publish script.

The last one is admittedly a shot in the dark, but I don't have a decent way of testing it.

@gabro gabro requested a review from olafurpg September 23, 2017 20:30
Copy link
Contributor

@olafurpg olafurpg left a 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

@gabro gabro merged commit 6b8cccd into scalacenter:master Sep 23, 2017
@gabro gabro deleted the cross-build-sbt-plugin branch September 23, 2017 21:08
@gabro
Copy link
Collaborator Author

gabro commented Sep 23, 2017

mm, I had high hopes but nope, didn't work:
https://travis-ci.org/scalacenter/scalafix/jobs/279044336

Any sbt expert around?

@gabro
Copy link
Collaborator Author

gabro commented Sep 23, 2017

@olafurpg I've removed the tag, but left the release notes in draft (https://github.com/scalacenter/scalafix/releases/tag/untagged-0b502c49a33fb0c5374e)

@olafurpg
Copy link
Contributor

I'll take a look at this Monday.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants