-
Notifications
You must be signed in to change notification settings - Fork 100
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
Upgrade AWS Java SDK to 1.12.228 #334
Upgrade AWS Java SDK to 1.12.228 #334
Conversation
79c08df
to
464a415
Compare
Codecov Report
@@ Coverage Diff @@
## master #334 +/- ##
============================================
+ Coverage 58.86% 58.92% +0.05%
Complexity 1206 1206
============================================
Files 131 131
Lines 5066 5066
Branches 593 593
============================================
+ Hits 2982 2985 +3
+ Misses 1809 1806 -3
Partials 275 275
Continue to review full report at Codecov.
|
464a415
to
9cd4bd7
Compare
9cd4bd7
to
2dcd09e
Compare
@@ -18,14 +18,12 @@ | |||
import com.amazonaws.xray.AWSXRay; | |||
import com.amazonaws.xray.entities.Namespace; | |||
import com.amazonaws.xray.entities.Subsegment; | |||
|
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.
These formatting changes were failing the build, although I don't agree with them, added them for now and we can revisit the linter later.
"com.fasterxml.jackson:jackson-bom:2.11.0", | ||
"org.junit:junit-bom:5.6.2" | ||
"com.amazonaws:aws-java-sdk-bom:1.12.228", | ||
"com.fasterxml.jackson:jackson-bom:2.12.0", |
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 wanted to remove this jackson
reference and the one below, but it failed to find them at compileOnly
time. I was hoping it would get it through the com.amazonaws:aws-java-sdk-bom
dependency which requires them.
However, now my theory is that it won't see them because com.amazonaws:aws-java-sdk-bom
doesn't import them in a way that is visible to downstream packages. So we will have to continue updating it for future AWS Java SDK updates.
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.
v1.12.x shadows Jackson dependencies since customers were relying on the version that came with the SDK, preventing the team from upgrading from insecure versions to newer ones without introducing breaking changes.
Hence the change in v1.12.x which forces customers to bring their own Jackson version.
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.
Awesome! Looks like a great fix 🤠
Issue #, if available: #333
Description of changes:
Upgrade AWS SDK for Java to version
1.12.228
. This was inspired by the same changes we made in #256.We fixed several issues along the way:
1.12.228
, many dependencies could not be resolved even though they were definitely there. Worked with a colleague to find out that this is a Gradle 6 issue. Updating gradle with./gradlew wrapper --gradle-version=7.4.2
fixed the issue 🥳junit-bom
to version5.8.2
because its dependencies do not supportjunit
version1.12
which is another package we pull in0.16.1
of that package so we updated it here.Cool thing I learned:
Your first instinct should be to check if all dependencies resolved when working with gradle.
i.e.
./gradlew :a-x-r-s-c:dependencies
a-x-r-s-c
is short foraws-xray-recorder-sdk-core
.and then google whatever failure comes out 🙂
Fixes #333
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.