-
Notifications
You must be signed in to change notification settings - Fork 34
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
[ANCHOR-634] Bump Java SDK version to 0.43.0 #1289
[ANCHOR-634] Bump Java SDK version to 0.43.0 #1289
Conversation
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.
Approved with some nits.
@@ -1,5 +1,5 @@ | |||
distributionBase=GRADLE_USER_HOME | |||
distributionPath=wrapper/dists | |||
distributionUrl=https\://services.gradle.org/distributions/gradle-7.5.1-bin.zip | |||
distributionUrl=https\://services.gradle.org/distributions/gradle-8.5-bin.zip |
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.
Are we bumping the gradle distribution as well?
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.
Yeah, I couldn't get the project to build without upgrading the Gradle version. If this fix works, I will do the same in the 2.x branch.
@@ -13,7 +13,7 @@ class TestHelper { | |||
account: String = TEST_ACCOUNT, | |||
accountMemo: String? = null, | |||
hostUrl: String = "", | |||
clientDomain: String = "vibrant.stellar.org" | |||
clientDomain: String = "vibrant.stellar.org", |
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: Why this extra ,
?
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.
ktfmt
upgrade
@@ -22,7 +22,7 @@ class TestHelper { | |||
issuedAt, | |||
issuedAt + 60, | |||
"", | |||
clientDomain | |||
clientDomain, |
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: same as above
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.
ktfmt
upgrade
@@ -40,7 +40,7 @@ class AuthHelperTest { | |||
JwtToken.of( | |||
"http://localhost:8080", | |||
currentTimeMilliseconds / 1000L, | |||
(currentTimeMilliseconds + JWT_EXPIRATION_MILLISECONDS) / 1000L | |||
(currentTimeMilliseconds + JWT_EXPIRATION_MILLISECONDS) / 1000L, |
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: same as above
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.
ktfmt
upgrade
@@ -110,7 +110,7 @@ internal class Sep24ServiceTest { | |||
assertEquals(slotTxn.captured.assetCode, "USDC") | |||
assertEquals( | |||
slotTxn.captured.assetIssuer, | |||
"GDQOE23CFSUMSVQK4Y5JHPPYK73VYCNHZHA7ENKCV37P6SUEO6XQBKPP" | |||
"GDQOE23CFSUMSVQK4Y5JHPPYK73VYCNHZHA7ENKCV37P6SUEO6XQBKPP", |
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.
Looks like this is from formatter?
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.
Yeah, all the formatting changes are from upgrading ktfmt
version. Upgrading the SDK version required pulling in Kotlin 1.9 which required upgrading Gradle and ktfmt
.
@@ -25,13 +25,13 @@ junit = "5.8.2" | |||
junit-suite-engine = "1.8.2" | |||
kafka = "3.1.0" | |||
kafka-json-schema = "7.0.1" | |||
kotlin = "1.6.20" | |||
kotlin = "1.9.23" |
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: Can we also document this in the PR description?
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.
Done
Description
This bumps the Java SDK version from 0.42.0 to 0.43.0. This is an attempt to resolve an issue with the payment observer getting stuck on unparsable payment operations.
Bumping the SDK version required bumping the Kotlin to 1.9 and
ktfmt
versions, which is why the lines changed are so large.Context
Testing
./gradlew test
Documentation
N/A
Known limitations
N/A