-
Notifications
You must be signed in to change notification settings - Fork 179
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
Build on Java 21 #982
Build on Java 21 #982
Conversation
…rretto for the time being)
PR Summary
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #982 +/- ##
============================================
- Coverage 92.37% 92.32% -0.06%
+ Complexity 2761 2759 -2
============================================
Files 289 289
Lines 5523 5523
Branches 602 602
============================================
- Hits 5102 5099 -3
- Misses 269 270 +1
- Partials 152 154 +2 ☔ View full report in Codecov by Sentry. |
.github/workflows/maven.yml
Outdated
@@ -10,7 +10,7 @@ on: | |||
branches: [ main, 1.x ] | |||
|
|||
env: | |||
mvn_options: --batch-mode -Dstyle.color=always -Dorg.slf4j.simpleLogger.showDateTime=true -Dorg.slf4j.simpleLogger.dateTimeFormat=HH:mm:ss.SSS | |||
mvn_options: --batch-mode -Dnet.bytebuddy.experimental=true -Dstyle.color=always -Dorg.slf4j.simpleLogger.showDateTime=true -Dorg.slf4j.simpleLogger.dateTimeFormat=HH:mm:ss.SSS |
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.
nit:
no need for =true
this should be enough
-Dnet.bytebuddy.experimental
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 just stole it from here: raphw/byte-buddy#1396
either way, this should be a temporary solution until Mockito releases things.
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.
+1
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.
Seems this Windows Build doesn't want to start or finish.
update Ah, seems like the old build was stuck, preventing the new one from running.
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 re-ran failed (which includes cancelled). Fingers crossed it actually runs this time.
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 cancelled the build, triggered it again, but seems no luck.
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.
let's wait till the end to see exception
i guess there should be timeout something about an hour
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.
seems I found the reason
mockito
(5.5.0) depends onbyte-buddy
1.14.6mvn dependency:tree
shows that it usesbyte-buddy
1.12.11- it comes from
assertj-core
As a result exclusion of byte-buddy
from assertj-core
solves the issue and makes it using byte-buddy
from mockito
as a bonus after that there is no need for -Dnet.bytebuddy.experimental
at all
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! Thanks for tackling that.
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! I see that AssertJ did upgrade: https://github.com/assertj/assertj/blob/main/assertj-core/pom.xml#L31, they just haven't released a version in a while.
(temurin doesn't support Java 21 yet, so moved to Corretto for the time being)