Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,17 @@ on:
- 'integrated/**'
- 'stl-preview-head/**'
- 'stl-preview-base/**'
pull_request:
branches-ignore:
- 'stl-preview-head/**'
- 'stl-preview-base/**'

jobs:
lint:
timeout-minutes: 10
name: lint
runs-on: ${{ github.repository == 'stainless-sdks/modern-treasury-java' && 'depot-ubuntu-24.04' || 'ubuntu-latest' }}
if: github.event_name == 'push' || github.event.pull_request.head.repo.fork

steps:
- uses: actions/checkout@v4
Expand All @@ -35,6 +40,7 @@ jobs:
timeout-minutes: 10
name: test
runs-on: ${{ github.repository == 'stainless-sdks/modern-treasury-java' && 'depot-ubuntu-24.04' || 'ubuntu-latest' }}
if: github.event_name == 'push' || github.event.pull_request.head.repo.fork
steps:
- uses: actions/checkout@v4

Expand Down
2 changes: 1 addition & 1 deletion .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
".": "7.2.1"
".": "7.3.0"
}
4 changes: 2 additions & 2 deletions .stats.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
configured_endpoints: 159
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/modern-treasury%2Fmodern-treasury-37b7e93a7c5af373739dda32dd30b0c5807c8778271dc7d661096c3f1f55bd09.yml
openapi_spec_hash: be677b9d48a9bfc7af03c61b3f9eb82f
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/modern-treasury%2Fmodern-treasury-e1cbef11a7767ed6538807afe1fc1051c4912501d6fc84d99eded0e9aeb8c1e3.yml
openapi_spec_hash: 613ddce23730a6141dcf666b074014c5
config_hash: 8c51757781a73761e5f429590725c965
29 changes: 29 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,34 @@
# Changelog

## 7.3.0 (2025-07-07)

Full Changelog: [v7.2.1...v7.3.0](https://github.com/Modern-Treasury/modern-treasury-java/compare/v7.2.1...v7.3.0)

### Features

* **api:** api update ([9878971](https://github.com/Modern-Treasury/modern-treasury-java/commit/98789718b8e741323afe82d448c50381804a5e01))
* **api:** api update ([8228c82](https://github.com/Modern-Treasury/modern-treasury-java/commit/8228c821222c56856de81474b5a9b6c4e2f0ad5d))
* **api:** api update ([f3457f3](https://github.com/Modern-Treasury/modern-treasury-java/commit/f3457f3b69b52f74b567564d8e4d87733d696234))
* **api:** api update ([ebebe01](https://github.com/Modern-Treasury/modern-treasury-java/commit/ebebe014e88a325e69da23f561de25a5c66df629))


### Bug Fixes

* **ci:** release-doctor — report correct token name ([9d417db](https://github.com/Modern-Treasury/modern-treasury-java/commit/9d417dbb348fafa717552871c43e7c566c9394a9))
* **client:** bump max requests per host to max requests (5 -> 64) ([7467ae9](https://github.com/Modern-Treasury/modern-treasury-java/commit/7467ae93d624e154e26cd89ee2dea2155148d547))
* **client:** don't close client on `withOptions` usage when original is gc'd ([78a9080](https://github.com/Modern-Treasury/modern-treasury-java/commit/78a90809fc50f58241e1c35ba842d83814b8be11))


### Chores

* **ci:** enable for pull requests ([82124d0](https://github.com/Modern-Treasury/modern-treasury-java/commit/82124d011ac3ee26f31df1e4394caed473944491))
* **ci:** only run for pushes and fork pull requests ([f36a1a9](https://github.com/Modern-Treasury/modern-treasury-java/commit/f36a1a9f6ab1e0b87f6f9d5f1602848f1a3b2569))


### Refactors

* **internal:** minor `ClientOptionsTest` change ([b4a712e](https://github.com/Modern-Treasury/modern-treasury-java/commit/b4a712e2380c527751c74777f8eedcd8729cf518))

## 7.2.1 (2025-06-16)

Full Changelog: [v7.2.0...v7.2.1](https://github.com/Modern-Treasury/modern-treasury-java/compare/v7.2.0...v7.2.1)
Expand Down
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

<!-- x-release-please-start-version -->

[![Maven Central](https://img.shields.io/maven-central/v/com.moderntreasury.api/modern-treasury-java)](https://central.sonatype.com/artifact/com.moderntreasury.api/modern-treasury-java/7.2.1)
[![javadoc](https://javadoc.io/badge2/com.moderntreasury.api/modern-treasury-java/7.2.1/javadoc.svg)](https://javadoc.io/doc/com.moderntreasury.api/modern-treasury-java/7.2.1)
[![Maven Central](https://img.shields.io/maven-central/v/com.moderntreasury.api/modern-treasury-java)](https://central.sonatype.com/artifact/com.moderntreasury.api/modern-treasury-java/7.3.0)
[![javadoc](https://javadoc.io/badge2/com.moderntreasury.api/modern-treasury-java/7.3.0/javadoc.svg)](https://javadoc.io/doc/com.moderntreasury.api/modern-treasury-java/7.3.0)

<!-- x-release-please-end -->

Expand All @@ -13,7 +13,7 @@ The Modern Treasury Java SDK is similar to the Modern Treasury Kotlin SDK but wi

<!-- x-release-please-start-version -->

The REST API documentation can be found on [docs.moderntreasury.com](https://docs.moderntreasury.com). Javadocs are available on [javadoc.io](https://javadoc.io/doc/com.moderntreasury.api/modern-treasury-java/7.2.1).
The REST API documentation can be found on [docs.moderntreasury.com](https://docs.moderntreasury.com). Javadocs are available on [javadoc.io](https://javadoc.io/doc/com.moderntreasury.api/modern-treasury-java/7.3.0).

<!-- x-release-please-end -->

Expand All @@ -24,7 +24,7 @@ The REST API documentation can be found on [docs.moderntreasury.com](https://doc
### Gradle

```kotlin
implementation("com.moderntreasury:modern-treasury-java:7.2.1")
implementation("com.moderntreasury:modern-treasury-java:7.3.0")
```

### Maven
Expand All @@ -33,7 +33,7 @@ implementation("com.moderntreasury:modern-treasury-java:7.2.1")
<dependency>
<groupId>com.moderntreasury</groupId>
<artifactId>modern-treasury-java</artifactId>
<version>7.2.1</version>
<version>7.3.0</version>
</dependency>
```

Expand Down
8 changes: 4 additions & 4 deletions bin/check-release-environment
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,19 @@
errors=()

if [ -z "${SONATYPE_USERNAME}" ]; then
errors+=("The MODERN_TREASURY_SONATYPE_USERNAME secret has not been set. Please set it in either this repository's secrets or your organization secrets")
errors+=("The SONATYPE_USERNAME secret has not been set. Please set it in either this repository's secrets or your organization secrets")
fi

if [ -z "${SONATYPE_PASSWORD}" ]; then
errors+=("The MODERN_TREASURY_SONATYPE_PASSWORD secret has not been set. Please set it in either this repository's secrets or your organization secrets")
errors+=("The SONATYPE_PASSWORD secret has not been set. Please set it in either this repository's secrets or your organization secrets")
fi

if [ -z "${GPG_SIGNING_KEY}" ]; then
errors+=("The MODERN_TREASURY_SONATYPE_GPG_SIGNING_KEY secret has not been set. Please set it in either this repository's secrets or your organization secrets")
errors+=("The GPG_SIGNING_KEY secret has not been set. Please set it in either this repository's secrets or your organization secrets")
fi

if [ -z "${GPG_SIGNING_PASSWORD}" ]; then
errors+=("The MODERN_TREASURY_SONATYPE_GPG_SIGNING_PASSWORD secret has not been set. Please set it in either this repository's secrets or your organization secrets")
errors+=("The GPG_SIGNING_PASSWORD secret has not been set. Please set it in either this repository's secrets or your organization secrets")
fi

lenErrors=${#errors[@]}
Expand Down
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ repositories {

allprojects {
group = "com.moderntreasury"
version = "7.2.1" // x-release-please-version
version = "7.3.0" // x-release-please-version
}

subprojects {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,11 @@ class OkHttpClient private constructor(private val okHttpClient: okhttp3.OkHttpC
.callTimeout(timeout.request())
.proxy(proxy)
.build()
.apply {
// We usually make all our requests to the same host so it makes sense to
// raise the per-host limit to the overall limit.
dispatcher.maxRequestsPerHost = dispatcher.maxRequests
}
)
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,9 @@ private constructor(
webhookKey = clientOptions.webhookKey
}

fun httpClient(httpClient: HttpClient) = apply { this.httpClient = httpClient }
fun httpClient(httpClient: HttpClient) = apply {
this.httpClient = PhantomReachableClosingHttpClient(httpClient)
}

fun checkJacksonVersionCompatibility(checkJacksonVersionCompatibility: Boolean) = apply {
this.checkJacksonVersionCompatibility = checkJacksonVersionCompatibility
Expand Down Expand Up @@ -269,14 +271,12 @@ private constructor(

return ClientOptions(
httpClient,
PhantomReachableClosingHttpClient(
RetryingHttpClient.builder()
.httpClient(httpClient)
.clock(clock)
.maxRetries(maxRetries)
.idempotencyHeader("Idempotency-Key")
.build()
),
RetryingHttpClient.builder()
.httpClient(httpClient)
.clock(clock)
.maxRetries(maxRetries)
.idempotencyHeader("Idempotency-Key")
.build(),
checkJacksonVersionCompatibility,
jsonMapper,
streamHandlerExecutor
Expand Down
Loading