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
Use Toolchains and Java 17 #1366
Conversation
Codecov Report
@@ Coverage Diff @@
## master #1366 +/- ##
============================================
- Coverage 79.33% 79.31% -0.03%
Complexity 3964 3964
============================================
Files 403 403
Lines 12320 12298 -22
Branches 1627 1620 -7
============================================
- Hits 9774 9754 -20
+ Misses 1962 1960 -2
Partials 584 584
Continue to review full report at Codecov.
|
5bb637d
to
70b1985
Compare
@@ -17,7 +17,7 @@ jobs: | |||
matrix: | |||
os: ['ubuntu-latest'] | |||
variant: ['2.5', '3.0'] | |||
java: ['8', '11', '15'] | |||
java: ['8', '11', '16'] |
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.
Groovy 2.5 doesn't seem to support Java 16. You should probably exclude those builds.
https://github.com/spockframework/spock/pull/1366/checks?check_run_id=3285269121#step:9:563
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 would not exclude, but configure to compile to a lower target. Running the build on a recent JDK is still important, IMO.
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.
You might be right. Groovy 2.5 might be able to be executed with Java 16, but with lower target version (but I haven't tested 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.
I upgraded my Spock playground project, and indeed it is working, despite a few compiler quirks in Groovy-Eclipse which forced me to refactor two classes. Also IntelliJ IDEA is bitching around now. But I got it compiling in Maven. Please also refer to
- Problems with static inner classes and static imports groovy/groovy-eclipse#1292
- https://youtrack.jetbrains.com/issue/IDEA-275889
But in general, it should work.
70b1985
to
a102277
Compare
Seems like Java 17 is only supported by Groovy 4.x |
Do you mean by a runtime JDK? I was building today one of my projects with Gradle 7.2, OpenJDK 17 and Spock 2.0 with Groovy 3.0.9 (in fact with 3.0.8 I had an error with |
3d549b5
to
46c6223
Compare
Export installed JDKs to GITHUB_ENV Update Groovy to 3.0.9 and 2.5.15
Co-authored-by: Marcin Zajączkowski <148013+szpak@users.noreply.github.com>
bb2ab82
to
d68aac1
Compare
No description provided.