Skip to content
Closed
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
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 1 addition & 1 deletion .github/workflows/publish-sonatype.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ jobs:
export -- GPG_SIGNING_KEY_ID
printenv -- GPG_SIGNING_KEY | gpg --batch --passphrase-fd 3 --import 3<<< "$GPG_SIGNING_PASSWORD"
GPG_SIGNING_KEY_ID="$(gpg --with-colons --list-keys | awk -F : -- '/^pub:/ { getline; print "0x" substr($10, length($10) - 7) }')"
./gradlew publishAndReleaseToMavenCentral -Dorg.gradle.jvmargs="-Xmx8g" --stacktrace -PmavenCentralUsername="$SONATYPE_USERNAME" -PmavenCentralPassword="$SONATYPE_PASSWORD" --no-configuration-cache
./gradlew publishAndReleaseToMavenCentral --stacktrace -PmavenCentralUsername="$SONATYPE_USERNAME" -PmavenCentralPassword="$SONATYPE_PASSWORD" --no-configuration-cache
env:
SONATYPE_USERNAME: ${{ secrets.LITHIC_SONATYPE_USERNAME || secrets.SONATYPE_USERNAME }}
SONATYPE_PASSWORD: ${{ secrets.LITHIC_SONATYPE_PASSWORD || secrets.SONATYPE_PASSWORD }}
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 @@
{
".": "0.102.0"
".": "0.102.1"
}
16 changes: 16 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,21 @@
# Changelog

## 0.102.1 (2025-08-22)

Full Changelog: [v0.102.0...v0.102.1](https://github.com/lithic-com/lithic-java/compare/v0.102.0...v0.102.1)

### Bug Fixes

* update singularization rules ([546691f](https://github.com/lithic-com/lithic-java/commit/546691f462bbb849a11baa32f3ff8f34aff9523b))


### Chores

* **ci:** reduce log noise ([9e55acc](https://github.com/lithic-com/lithic-java/commit/9e55acc8f97887a2a0bb33fd298200fd1d5dc75a))
* **client:** refactor closing / shutdown ([ffdb0de](https://github.com/lithic-com/lithic-java/commit/ffdb0dec8ae31a8f1a5894ae62c9330d9f5e69fe))
* **internal:** support running formatters directly ([5803b62](https://github.com/lithic-com/lithic-java/commit/5803b62ba3fa4f6d9cf6f8c92d04f9fd0473a701))
* remove memory upper bound from publishing step ([e75ad9a](https://github.com/lithic-com/lithic-java/commit/e75ad9a34161e81144bb936ca66113f14ccf659c))

## 0.102.0 (2025-08-18)

Full Changelog: [v0.101.0...v0.102.0](https://github.com/lithic-com/lithic-java/compare/v0.101.0...v0.102.0)
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.lithic.api/lithic-java)](https://central.sonatype.com/artifact/com.lithic.api/lithic-java/0.102.0)
[![javadoc](https://javadoc.io/badge2/com.lithic.api/lithic-java/0.102.0/javadoc.svg)](https://javadoc.io/doc/com.lithic.api/lithic-java/0.102.0)
[![Maven Central](https://img.shields.io/maven-central/v/com.lithic.api/lithic-java)](https://central.sonatype.com/artifact/com.lithic.api/lithic-java/0.102.1)
[![javadoc](https://javadoc.io/badge2/com.lithic.api/lithic-java/0.102.1/javadoc.svg)](https://javadoc.io/doc/com.lithic.api/lithic-java/0.102.1)

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

Expand All @@ -13,7 +13,7 @@ The Lithic Java SDK is similar to the Lithic Kotlin SDK but with minor differenc

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

The REST API documentation can be found on [docs.lithic.com](https://docs.lithic.com). Javadocs are available on [javadoc.io](https://javadoc.io/doc/com.lithic.api/lithic-java/0.102.0).
The REST API documentation can be found on [docs.lithic.com](https://docs.lithic.com). Javadocs are available on [javadoc.io](https://javadoc.io/doc/com.lithic.api/lithic-java/0.102.1).

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

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

```kotlin
implementation("com.lithic.api:lithic-java:0.102.0")
implementation("com.lithic.api:lithic-java:0.102.1")
```

### Maven
Expand All @@ -33,7 +33,7 @@ implementation("com.lithic.api:lithic-java:0.102.0")
<dependency>
<groupId>com.lithic.api</groupId>
<artifactId>lithic-java</artifactId>
<version>0.102.0</version>
<version>0.102.1</version>
</dependency>
```

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.lithic.api"
version = "0.102.0" // x-release-please-version
version = "0.102.1" // x-release-please-version
}

subprojects {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,8 @@ class LithicOkHttpClient private constructor() {
* The executor to use for running [AsyncStreamResponse.Handler] callbacks.
*
* Defaults to a dedicated cached thread pool.
*
* This class takes ownership of the executor and shuts it down, if possible, when closed.
*/
fun streamHandlerExecutor(streamHandlerExecutor: Executor) = apply {
clientOptions.streamHandlerExecutor(streamHandlerExecutor)
Expand Down Expand Up @@ -218,33 +220,33 @@ class LithicOkHttpClient private constructor() {

fun putHeader(name: String, value: String) = apply { clientOptions.putHeader(name, value) }

fun putHeaders(name: String, values: Iterable<String>) = apply {
clientOptions.putHeaders(name, values)
fun putheaders(name: String, values: Iterable<String>) = apply {
clientOptions.putheaders(name, values)
}

fun putAllHeaders(headers: Headers) = apply { clientOptions.putAllHeaders(headers) }
fun putAllheaders(headers: Headers) = apply { clientOptions.putAllheaders(headers) }

fun putAllHeaders(headers: Map<String, Iterable<String>>) = apply {
clientOptions.putAllHeaders(headers)
fun putAllheaders(headers: Map<String, Iterable<String>>) = apply {
clientOptions.putAllheaders(headers)
}

fun replaceHeaders(name: String, value: String) = apply {
clientOptions.replaceHeaders(name, value)
fun replaceheaders(name: String, value: String) = apply {
clientOptions.replaceheaders(name, value)
}

fun replaceHeaders(name: String, values: Iterable<String>) = apply {
clientOptions.replaceHeaders(name, values)
fun replaceheaders(name: String, values: Iterable<String>) = apply {
clientOptions.replaceheaders(name, values)
}

fun replaceAllHeaders(headers: Headers) = apply { clientOptions.replaceAllHeaders(headers) }
fun replaceAllheaders(headers: Headers) = apply { clientOptions.replaceAllheaders(headers) }

fun replaceAllHeaders(headers: Map<String, Iterable<String>>) = apply {
clientOptions.replaceAllHeaders(headers)
fun replaceAllheaders(headers: Map<String, Iterable<String>>) = apply {
clientOptions.replaceAllheaders(headers)
}

fun removeHeaders(name: String) = apply { clientOptions.removeHeaders(name) }
fun removeheaders(name: String) = apply { clientOptions.removeheaders(name) }

fun removeAllHeaders(names: Set<String>) = apply { clientOptions.removeAllHeaders(names) }
fun removeAllheaders(names: Set<String>) = apply { clientOptions.removeAllheaders(names) }

fun queryParams(queryParams: QueryParams) = apply { clientOptions.queryParams(queryParams) }

Expand All @@ -256,38 +258,38 @@ class LithicOkHttpClient private constructor() {
clientOptions.putQueryParam(key, value)
}

fun putQueryParams(key: String, values: Iterable<String>) = apply {
clientOptions.putQueryParams(key, values)
fun putquery_params(key: String, values: Iterable<String>) = apply {
clientOptions.putquery_params(key, values)
}

fun putAllQueryParams(queryParams: QueryParams) = apply {
clientOptions.putAllQueryParams(queryParams)
fun putAllquery_params(queryParams: QueryParams) = apply {
clientOptions.putAllquery_params(queryParams)
}

fun putAllQueryParams(queryParams: Map<String, Iterable<String>>) = apply {
clientOptions.putAllQueryParams(queryParams)
fun putAllquery_params(queryParams: Map<String, Iterable<String>>) = apply {
clientOptions.putAllquery_params(queryParams)
}

fun replaceQueryParams(key: String, value: String) = apply {
clientOptions.replaceQueryParams(key, value)
fun replacequery_params(key: String, value: String) = apply {
clientOptions.replacequery_params(key, value)
}

fun replaceQueryParams(key: String, values: Iterable<String>) = apply {
clientOptions.replaceQueryParams(key, values)
fun replacequery_params(key: String, values: Iterable<String>) = apply {
clientOptions.replacequery_params(key, values)
}

fun replaceAllQueryParams(queryParams: QueryParams) = apply {
clientOptions.replaceAllQueryParams(queryParams)
fun replaceAllquery_params(queryParams: QueryParams) = apply {
clientOptions.replaceAllquery_params(queryParams)
}

fun replaceAllQueryParams(queryParams: Map<String, Iterable<String>>) = apply {
clientOptions.replaceAllQueryParams(queryParams)
fun replaceAllquery_params(queryParams: Map<String, Iterable<String>>) = apply {
clientOptions.replaceAllquery_params(queryParams)
}

fun removeQueryParams(key: String) = apply { clientOptions.removeQueryParams(key) }
fun removequery_params(key: String) = apply { clientOptions.removequery_params(key) }

fun removeAllQueryParams(keys: Set<String>) = apply {
clientOptions.removeAllQueryParams(keys)
fun removeAllquery_params(keys: Set<String>) = apply {
clientOptions.removeAllquery_params(keys)
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,8 @@ class LithicOkHttpClientAsync private constructor() {
* The executor to use for running [AsyncStreamResponse.Handler] callbacks.
*
* Defaults to a dedicated cached thread pool.
*
* This class takes ownership of the executor and shuts it down, if possible, when closed.
*/
fun streamHandlerExecutor(streamHandlerExecutor: Executor) = apply {
clientOptions.streamHandlerExecutor(streamHandlerExecutor)
Expand Down Expand Up @@ -218,33 +220,33 @@ class LithicOkHttpClientAsync private constructor() {

fun putHeader(name: String, value: String) = apply { clientOptions.putHeader(name, value) }

fun putHeaders(name: String, values: Iterable<String>) = apply {
clientOptions.putHeaders(name, values)
fun putheaders(name: String, values: Iterable<String>) = apply {
clientOptions.putheaders(name, values)
}

fun putAllHeaders(headers: Headers) = apply { clientOptions.putAllHeaders(headers) }
fun putAllheaders(headers: Headers) = apply { clientOptions.putAllheaders(headers) }

fun putAllHeaders(headers: Map<String, Iterable<String>>) = apply {
clientOptions.putAllHeaders(headers)
fun putAllheaders(headers: Map<String, Iterable<String>>) = apply {
clientOptions.putAllheaders(headers)
}

fun replaceHeaders(name: String, value: String) = apply {
clientOptions.replaceHeaders(name, value)
fun replaceheaders(name: String, value: String) = apply {
clientOptions.replaceheaders(name, value)
}

fun replaceHeaders(name: String, values: Iterable<String>) = apply {
clientOptions.replaceHeaders(name, values)
fun replaceheaders(name: String, values: Iterable<String>) = apply {
clientOptions.replaceheaders(name, values)
}

fun replaceAllHeaders(headers: Headers) = apply { clientOptions.replaceAllHeaders(headers) }
fun replaceAllheaders(headers: Headers) = apply { clientOptions.replaceAllheaders(headers) }

fun replaceAllHeaders(headers: Map<String, Iterable<String>>) = apply {
clientOptions.replaceAllHeaders(headers)
fun replaceAllheaders(headers: Map<String, Iterable<String>>) = apply {
clientOptions.replaceAllheaders(headers)
}

fun removeHeaders(name: String) = apply { clientOptions.removeHeaders(name) }
fun removeheaders(name: String) = apply { clientOptions.removeheaders(name) }

fun removeAllHeaders(names: Set<String>) = apply { clientOptions.removeAllHeaders(names) }
fun removeAllheaders(names: Set<String>) = apply { clientOptions.removeAllheaders(names) }

fun queryParams(queryParams: QueryParams) = apply { clientOptions.queryParams(queryParams) }

Expand All @@ -256,38 +258,38 @@ class LithicOkHttpClientAsync private constructor() {
clientOptions.putQueryParam(key, value)
}

fun putQueryParams(key: String, values: Iterable<String>) = apply {
clientOptions.putQueryParams(key, values)
fun putquery_params(key: String, values: Iterable<String>) = apply {
clientOptions.putquery_params(key, values)
}

fun putAllQueryParams(queryParams: QueryParams) = apply {
clientOptions.putAllQueryParams(queryParams)
fun putAllquery_params(queryParams: QueryParams) = apply {
clientOptions.putAllquery_params(queryParams)
}

fun putAllQueryParams(queryParams: Map<String, Iterable<String>>) = apply {
clientOptions.putAllQueryParams(queryParams)
fun putAllquery_params(queryParams: Map<String, Iterable<String>>) = apply {
clientOptions.putAllquery_params(queryParams)
}

fun replaceQueryParams(key: String, value: String) = apply {
clientOptions.replaceQueryParams(key, value)
fun replacequery_params(key: String, value: String) = apply {
clientOptions.replacequery_params(key, value)
}

fun replaceQueryParams(key: String, values: Iterable<String>) = apply {
clientOptions.replaceQueryParams(key, values)
fun replacequery_params(key: String, values: Iterable<String>) = apply {
clientOptions.replacequery_params(key, values)
}

fun replaceAllQueryParams(queryParams: QueryParams) = apply {
clientOptions.replaceAllQueryParams(queryParams)
fun replaceAllquery_params(queryParams: QueryParams) = apply {
clientOptions.replaceAllquery_params(queryParams)
}

fun replaceAllQueryParams(queryParams: Map<String, Iterable<String>>) = apply {
clientOptions.replaceAllQueryParams(queryParams)
fun replaceAllquery_params(queryParams: Map<String, Iterable<String>>) = apply {
clientOptions.replaceAllquery_params(queryParams)
}

fun removeQueryParams(key: String) = apply { clientOptions.removeQueryParams(key) }
fun removequery_params(key: String) = apply { clientOptions.removequery_params(key) }

fun removeAllQueryParams(keys: Set<String>) = apply {
clientOptions.removeAllQueryParams(keys)
fun removeAllquery_params(keys: Set<String>) = apply {
clientOptions.removeAllquery_params(keys)
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@ class LithicClientAsyncImpl(private val clientOptions: ClientOptions) : LithicCl
// get /v1/status
withRawResponse().apiStatus(params, requestOptions).thenApply { it.parse() }

override fun close() = clientOptions.httpClient.close()
override fun close() = clientOptions.close()

class WithRawResponseImpl internal constructor(private val clientOptions: ClientOptions) :
LithicClientAsync.WithRawResponse {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@ class LithicClientImpl(private val clientOptions: ClientOptions) : LithicClient
// get /v1/status
withRawResponse().apiStatus(params, requestOptions).parse()

override fun close() = clientOptions.httpClient.close()
override fun close() = clientOptions.close()

class WithRawResponseImpl internal constructor(private val clientOptions: ClientOptions) :
LithicClient.WithRawResponse {
Expand Down
Loading
Loading