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

Build on Java 21 #982

Merged
merged 4 commits into from
Oct 3, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/maven.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Copy link
Collaborator

@snuyanzin snuyanzin Oct 3, 2023

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

Copy link
Contributor Author

@bodiam bodiam Oct 3, 2023

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.

Copy link
Collaborator

Choose a reason for hiding this comment

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

+1

Copy link
Contributor Author

@bodiam bodiam Oct 3, 2023

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.

Copy link
Collaborator

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.

Copy link
Contributor Author

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.

Copy link
Collaborator

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

Copy link
Collaborator

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

  1. mockito (5.5.0) depends on byte-buddy 1.14.6
  2. mvn dependency:tree shows that it uses byte-buddy 1.12.11
  3. 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

Copy link
Collaborator

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.

Copy link
Contributor Author

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.


jobs:
build:
Expand All @@ -29,6 +29,6 @@ jobs:
distribution: 'corretto'
cache: maven
- name: Build with Maven
run: ./mvnw $mvn_options verify -PnoGpg --file pom.xml -Dnet.bytebuddy.experimental=true
run: ./mvnw $mvn_options verify -PnoGpg --file pom.xml
- name: Upload coverage to Codecov
uses: codecov/[email protected]