-
Notifications
You must be signed in to change notification settings - Fork 848
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
Update to Gradle 7.3 and fail build if binary compatibility broken #3779
Conversation
Ran locally with java 11, but looks like something about this change triggers bad behavior with java 17 will see what's up
|
Cool. I had looked into this very early on in the japicmp journey, but bailed out when running into the default method thing. Glad you figured out how to deal with that. |
Looking at the Gradle 7.3 release notes it mentions support for Java 17 - despite us using Java 17 for some time already :) Presumably due to corner cases that still caused errors, and it seems that this change was one of them. I think Gradle RCs tend to be good to use, and can bring up Gradle bugs that we would otherwise hit post-release in some cases, so think it's fine to upgrade now and get our compatibility check with it |
Codecov Report
@@ Coverage Diff @@
## main #3779 +/- ##
============================================
+ Coverage 89.05% 89.15% +0.10%
- Complexity 3940 3959 +19
============================================
Files 471 473 +2
Lines 12435 12442 +7
Branches 1226 1225 -1
============================================
+ Hits 11074 11093 +19
+ Misses 945 935 -10
+ Partials 416 414 -2
Continue to review full report at Codecov.
|
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.
👍🏽 We'll have to figure out what we're going to do when we need to rev to 2.0 and we actually do need to break binary compatibility. ;)
Found the magic to allow japicmp to enforce binary compatibility.
Compatible change that passed, and still prints diff as normal
c51d55f
Incompatible change that fails, while also outputing the diff for local debugging
c23ac31