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

fix JDK17 build #274

Merged
merged 3 commits into from
Jan 11, 2022
Merged

fix JDK17 build #274

merged 3 commits into from
Jan 11, 2022

Conversation

bjaglin
Copy link
Collaborator

@bjaglin bjaglin commented Jan 11, 2022

@bjaglin bjaglin closed this Jan 11, 2022
@bjaglin bjaglin reopened this Jan 11, 2022
@bjaglin bjaglin force-pushed the jdk17 branch 2 times, most recently from 31ad03b to 4bafc91 Compare January 11, 2022 12:10
if (System.getProperty("java.specification.version").toDouble < 17)
"1.2.7" // first release that can build 2.13 (as it bring a Zinc version with a compiler-bridge published for 2.13)
else
"1.5.5" // first release that supports JDK17
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Copy link
Collaborator Author

@bjaglin bjaglin Jan 11, 2022

Choose a reason for hiding this comment

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

Interestingly, this bump revealed that a minor feature works with sbt 1.2.7 (<1.3) but not on sbt 1.5.5 (>1.3), see 30d8d4d. I don't think it's worth making it work as it would require a lot of code...

Skip the test instead of following the workaround suggested in
Philippus/sbt-dotenv#118, as it would be
global to all tests and we could miss actual violations that would
prevent usage of the plugin for clients without the same hack.
- remove fragile, unnecessary assertions bringing false positives
- document a non-working feature with sbt 1.3+ (untested until now)
@bjaglin bjaglin changed the title don't run scripted with incompatible versions of sbt on JDK17 fix JDK17 build Jan 11, 2022
@bjaglin bjaglin requested a review from mlachkar January 11, 2022 16:22
@bjaglin bjaglin marked this pull request as ready for review January 11, 2022 16:22
@bjaglin bjaglin merged commit 8d4bde2 into scalacenter:main Jan 11, 2022
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.

1 participant