Skip to content
This repository has been archived by the owner on Sep 28, 2021. It is now read-only.

Upgrade guice 4.2.2 -> 5.0.1 #356

Merged
merged 6 commits into from
Jun 2, 2021
Merged

Upgrade guice 4.2.2 -> 5.0.1 #356

merged 6 commits into from
Jun 2, 2021

Conversation

caesar-ralf
Copy link
Contributor

@caesar-ralf caesar-ralf commented May 21, 2021

Upgrades Guice from 4.2.2 to 5.0.1.

Why?

User @backuitist asked at issue #350 to do this change to remove a warning. We realized after investigation that guice 4.2.2 is not compatible with Java 16+, which will require us to do this upgrade to 5.0.1 anyway.

Breaking changes

From documentation from their release notes and local tests, there's no breaking changes that we could perceive in Apollo code and its modules besides changes in dependencies.

This upgrade anyway poses a breaking change risk for users using Guice, which will be obligated to also upgrade their versions to match. Our rollout strategy has not been yet determined for this change.

UPDATE

After testing with different projects, there's no change in the API of how Apollo is exposed, neither we could find a significant change in how Guice is used. This means that there's no breaking change perceived in both API and behaviour. With that in mind, I think we can go ahead and release this change to our users as a minor version upgrade

@codecov
Copy link

codecov bot commented May 21, 2021

Codecov Report

Merging #356 (e833edc) into 1.x (10b98e0) will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff            @@
##                1.x     #356   +/-   ##
=========================================
  Coverage     72.04%   72.04%           
  Complexity      673      673           
=========================================
  Files           137      137           
  Lines          2862     2862           
  Branches        167      167           
=========================================
  Hits           2062     2062           
  Misses          763      763           
  Partials         37       37           

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 10b98e0...e833edc. Read the comment docs.

@caesar-ralf caesar-ralf linked an issue May 31, 2021 that may be closed by this pull request
@caesar-ralf caesar-ralf marked this pull request as ready for review June 1, 2021 08:01
We are avoid explicitly using the bom because it brings too many
transitive dependencies.
pom.xml Outdated
@@ -76,12 +76,7 @@
<dependency>
<groupId>com.google.inject</groupId>
<artifactId>guice</artifactId>
Copy link
Contributor

Choose a reason for hiding this comment

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

Use the bom?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done

Copy link
Contributor

@klaraward klaraward left a comment

Choose a reason for hiding this comment

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

Lets make an alpha release of this

@caesar-ralf caesar-ralf merged commit 6395083 into 1.x Jun 2, 2021
@caesar-ralf caesar-ralf deleted the features/upgrade-guice branch June 2, 2021 14:24
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Upgrade to Guice 5
2 participants