From 2b79d27acf2f19da0be2469c08effc91f1aefbae Mon Sep 17 00:00:00 2001 From: Jun Luo <4catcode@gmail.com> Date: Wed, 22 Apr 2026 11:42:40 +0800 Subject: [PATCH] release: 3.0.0 --- CHANGELOG.md | 17 +++++++++++++++++ android_test/app/build.gradle.kts | 2 +- build.gradle.kts | 2 +- examples/build.gradle.kts | 2 +- pom.xml | 2 +- readme.md | 4 ++-- 6 files changed, 23 insertions(+), 6 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index dbc9676a3..be8379998 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,23 @@ ## Pending +## 3.0.0 + +This release contains the exact same content as 3.0.0-beta1. Below is the changelog since 2.2.3. + +### Update +- fix: use OkHttp's public SSE factory for Horizon streams and force SSE requests to bypass caches. ([#791](https://github.com/lightsail-network/java-stellar-sdk/pull/791)) +- feat: sort `ScMap` entries by key in `Scv.toMap` following Soroban runtime ordering rules, as the network requires `ScMap` keys to be in ascending order. `Scv.toMap` now accepts `Map`; the previous `toMap(LinkedHashMap)` overload is deprecated. ([#766](https://github.com/lightsail-network/java-stellar-sdk/pull/766)) +- feat: add SEP-0051 support. ([#774](https://github.com/lightsail-network/java-stellar-sdk/pull/774)) +- feat: add `closeTime`, `headerXdr`, and `metadataXdr` to `GetLatestLedgerResponse`. ([#768](https://github.com/lightsail-network/java-stellar-sdk/pull/768)) +- chore: update various dependencies to the latest compatible versions. ([#786](https://github.com/lightsail-network/java-stellar-sdk/pull/786), [#790](https://github.com/lightsail-network/java-stellar-sdk/pull/790)) +- docs: add more detailed API and XDR generator documentation. ([#783](https://github.com/lightsail-network/java-stellar-sdk/pull/783), [#784](https://github.com/lightsail-network/java-stellar-sdk/pull/784)) +- chore: building the project from source now requires JDK 21 and Gradle 9.4.1. Published SDK artifacts still target Java 8 bytecode. ([#788](https://github.com/lightsail-network/java-stellar-sdk/pull/788), [#789](https://github.com/lightsail-network/java-stellar-sdk/pull/789)) +- chore: bump generated XDR definitions to `stellar-xdr` v26.0, including the v25.0 changes introduced earlier in this release cycle. ([#769](https://github.com/lightsail-network/java-stellar-sdk/pull/769), [#781](https://github.com/lightsail-network/java-stellar-sdk/pull/781)) + +### Breaking changes +- refactor!: remove deprecated `StrKey` helpers `encodeEd25519PublicKey(AccountID)`, `encodeMuxedAccount(MuxedAccount)`, `decodeMuxedAccount(String)`, `encodeToXDRAccountId(String)`, and `encodeToXDRMuxedAccount(String)`; use `StrKey.encodeEd25519PublicKey(byte[])`, `org.stellar.sdk.MuxedAccount`, and `KeyPair#getXdrAccountId()` instead. ([#779](https://github.com/lightsail-network/java-stellar-sdk/pull/779)) + ## 3.0.0-beta1 ### Update diff --git a/android_test/app/build.gradle.kts b/android_test/app/build.gradle.kts index 7ae9d7a08..4fc8db9c0 100644 --- a/android_test/app/build.gradle.kts +++ b/android_test/app/build.gradle.kts @@ -68,7 +68,7 @@ dependencies { implementation("androidx.compose.material3:material3") // Since we are adding local jar(libs/stellar-sdk.jar) as dependency, // gradle cannot automatically download the required third-party dependencies. - implementation(files("libs/stellar-sdk-3.0.0-beta1.jar")) + implementation(files("libs/stellar-sdk-3.0.0.jar")) implementation("com.squareup.okhttp3:okhttp:4.11.0") implementation("com.squareup.okhttp3:okhttp-sse:4.11.0") implementation("com.moandjiezana.toml:toml4j:0.7.2") diff --git a/build.gradle.kts b/build.gradle.kts index 2a9a75658..99a69b143 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -12,7 +12,7 @@ plugins { } group = "network.lightsail" -version = "3.0.0-beta1" +version = "3.0.0" java { toolchain { diff --git a/examples/build.gradle.kts b/examples/build.gradle.kts index 2c6d9488d..bfda6ca32 100644 --- a/examples/build.gradle.kts +++ b/examples/build.gradle.kts @@ -22,7 +22,7 @@ spotless { dependencies { // Use https://central.sonatype.com/artifact/network.lightsail/stellar-sdk in prod. - implementation("network.lightsail:stellar-sdk:3.0.0-beta1") + implementation("network.lightsail:stellar-sdk:3.0.0") testImplementation(platform("org.junit:junit-bom:5.10.0")) testImplementation("org.junit.jupiter:junit-jupiter") } diff --git a/pom.xml b/pom.xml index 577c4e18d..d57563582 100644 --- a/pom.xml +++ b/pom.xml @@ -11,7 +11,7 @@ network.lightsail stellar-sdk - 3.0.0-beta1 + 3.0.0 jar stellar-sdk diff --git a/readme.md b/readme.md index 53870f291..6030a0093 100644 --- a/readme.md +++ b/readme.md @@ -14,13 +14,13 @@ The Java Stellar SDK library provides APIs to build transactions and connect to network.lightsail stellar-sdk - 2.2.3 + 3.0.0 ``` ### Gradle ```groovy -implementation 'network.lightsail:stellar-sdk:2.2.3' +implementation 'network.lightsail:stellar-sdk:3.0.0' ``` You can find instructions on how to install this dependency using alternative package managers [here](https://central.sonatype.com/artifact/network.lightsail/stellar-sdk).