Skip to content

Commit 93c3d4c

Browse files
authored
Merge pull request #322 from orbcorp/release-please--branches--main--changes--next
release: 0.46.1
2 parents a3e06b5 + eacb972 commit 93c3d4c

File tree

149 files changed

+3920
-4791
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

149 files changed

+3920
-4791
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
.prism.log
22
.gradle
33
.idea
4+
.kotlin
45
build
56
codegen.log
67
kls_database.db

.release-please-manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
".": "0.46.0"
2+
".": "0.46.1"
33
}

CHANGELOG.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,16 @@
11
# Changelog
22

3+
## 0.46.1 (2025-03-07)
4+
5+
Full Changelog: [v0.46.0...v0.46.1](https://github.com/orbcorp/orb-java/compare/v0.46.0...v0.46.1)
6+
7+
### Chores
8+
9+
* **internal:** add `.kotlin` to `.gitignore` ([#323](https://github.com/orbcorp/orb-java/issues/323)) ([8c1f105](https://github.com/orbcorp/orb-java/commit/8c1f105f073072041491eeffed999a31957c4c5e))
10+
* **internal:** codegen related update ([#321](https://github.com/orbcorp/orb-java/issues/321)) ([a45ffe2](https://github.com/orbcorp/orb-java/commit/a45ffe29a6f89939a7c624efac74e5ce890ca7d9))
11+
* **internal:** don't generate docs ([#325](https://github.com/orbcorp/orb-java/issues/325)) ([dccfa35](https://github.com/orbcorp/orb-java/commit/dccfa351f867c99eddac02c5603ac59cf892a7ef))
12+
* **internal:** use `getOrNull` instead of `orElse(null)` ([#324](https://github.com/orbcorp/orb-java/issues/324)) ([02fd429](https://github.com/orbcorp/orb-java/commit/02fd429784de8fe4a0ae0d4eee9fbe1544080c92))
13+
314
## 0.46.0 (2025-03-07)
415

516
Full Changelog: [v0.45.0...v0.46.0](https://github.com/orbcorp/orb-java/compare/v0.45.0...v0.46.0)

README.md

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,15 @@
22

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

5-
[![Maven Central](https://img.shields.io/maven-central/v/com.withorb.api/orb-java)](https://central.sonatype.com/artifact/com.withorb.api/orb-java/0.46.0)
6-
[![javadoc](https://javadoc.io/badge2/com.withorb.api/orb-java/0.46.0/javadoc.svg)](https://javadoc.io/doc/com.withorb.api/orb-java/0.46.0)
5+
[![Maven Central](https://img.shields.io/maven-central/v/com.withorb.api/orb-java)](https://central.sonatype.com/artifact/com.withorb.api/orb-java/0.46.1)
76

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

109
The Orb Java SDK provides convenient access to the Orb REST API from applications written in Java.
1110

1211
The Orb Java SDK is similar to the Orb Kotlin SDK but with minor differences that make it more ergonomic for use in Java, such as `Optional` instead of nullable values, `Stream` instead of `Sequence`, and `CompletableFuture` instead of suspend functions.
1312

14-
The REST API documentation can be found on [docs.withorb.com](https://docs.withorb.com/reference/api-reference). Javadocs are also available on [javadoc.io](https://javadoc.io/doc/com.withorb.api/orb-java/0.45.0).
13+
The REST API documentation can be found on [docs.withorb.com](https://docs.withorb.com/reference/api-reference).
1514

1615
## Installation
1716

@@ -20,7 +19,7 @@ The REST API documentation can be found on [docs.withorb.com](https://docs.witho
2019
### Gradle
2120

2221
```kotlin
23-
implementation("com.withorb.api:orb-java:0.46.0")
22+
implementation("com.withorb.api:orb-java:0.46.1")
2423
```
2524

2625
### Maven
@@ -29,7 +28,7 @@ implementation("com.withorb.api:orb-java:0.46.0")
2928
<dependency>
3029
<groupId>com.withorb.api</groupId>
3130
<artifactId>orb-java</artifactId>
32-
<version>0.46.0</version>
31+
<version>0.46.1</version>
3332
</dependency>
3433
```
3534

build.gradle.kts

Lines changed: 1 addition & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,4 @@
1-
plugins {
2-
id("org.jetbrains.dokka") version "2.0.0"
3-
}
4-
5-
repositories {
6-
mavenCentral()
7-
}
8-
91
allprojects {
102
group = "com.withorb.api"
11-
version = "0.46.0" // x-release-please-version
12-
}
13-
14-
subprojects {
15-
apply(plugin = "org.jetbrains.dokka")
16-
}
17-
18-
// Avoid race conditions between `dokkaJavadocCollector` and `dokkaJavadocJar` tasks
19-
tasks.named("dokkaJavadocCollector").configure {
20-
subprojects.flatMap { it.tasks }
21-
.filter { it.project.name != "orb-java" && it.name == "dokkaJavadocJar" }
22-
.forEach { mustRunAfter(it) }
3+
version = "0.46.1" // x-release-please-version
234
}

buildSrc/src/main/kotlin/orb.publish.gradle.kts

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
import com.vanniktech.maven.publish.JavadocJar
2-
import com.vanniktech.maven.publish.KotlinJvm
31
import com.vanniktech.maven.publish.MavenPublishBaseExtension
42
import com.vanniktech.maven.publish.SonatypeHost
53

@@ -21,12 +19,6 @@ configure<MavenPublishBaseExtension> {
2119
publishToMavenCentral(SonatypeHost.CENTRAL_PORTAL)
2220

2321
coordinates(project.group.toString(), project.name, project.version.toString())
24-
configure(
25-
KotlinJvm(
26-
javadocJar = JavadocJar.Dokka("dokkaJavadoc"),
27-
sourcesJar = true,
28-
)
29-
)
3022

3123
pom {
3224
name.set("API Reference")

orb-java-client-okhttp/src/main/kotlin/com/withorb/api/client/okhttp/OrbOkHttpClient.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ import java.net.Proxy
1313
import java.time.Clock
1414
import java.time.Duration
1515
import java.util.Optional
16+
import kotlin.jvm.optionals.getOrNull
1617

1718
class OrbOkHttpClient private constructor() {
1819

@@ -150,7 +151,7 @@ class OrbOkHttpClient private constructor() {
150151
}
151152

152153
fun webhookSecret(webhookSecret: Optional<String>) =
153-
webhookSecret(webhookSecret.orElse(null))
154+
webhookSecret(webhookSecret.getOrNull())
154155

155156
fun fromEnv() = apply { clientOptions.fromEnv() }
156157

orb-java-client-okhttp/src/main/kotlin/com/withorb/api/client/okhttp/OrbOkHttpClientAsync.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ import java.net.Proxy
1313
import java.time.Clock
1414
import java.time.Duration
1515
import java.util.Optional
16+
import kotlin.jvm.optionals.getOrNull
1617

1718
class OrbOkHttpClientAsync private constructor() {
1819

@@ -150,7 +151,7 @@ class OrbOkHttpClientAsync private constructor() {
150151
}
151152

152153
fun webhookSecret(webhookSecret: Optional<String>) =
153-
webhookSecret(webhookSecret.orElse(null))
154+
webhookSecret(webhookSecret.getOrNull())
154155

155156
fun fromEnv() = apply { clientOptions.fromEnv() }
156157

orb-java-core/src/main/kotlin/com/withorb/api/core/ClientOptions.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ import com.withorb.api.core.http.QueryParams
1010
import com.withorb.api.core.http.RetryingHttpClient
1111
import java.time.Clock
1212
import java.util.Optional
13+
import kotlin.jvm.optionals.getOrNull
1314

1415
class ClientOptions
1516
private constructor(
@@ -100,7 +101,7 @@ private constructor(
100101
fun webhookSecret(webhookSecret: String?) = apply { this.webhookSecret = webhookSecret }
101102

102103
fun webhookSecret(webhookSecret: Optional<String>) =
103-
webhookSecret(webhookSecret.orElse(null))
104+
webhookSecret(webhookSecret.getOrNull())
104105

105106
fun headers(headers: Headers) = apply {
106107
this.headers.clear()

orb-java-core/src/main/kotlin/com/withorb/api/core/Timeout.kt

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ package com.withorb.api.core
55
import java.time.Duration
66
import java.util.Objects
77
import java.util.Optional
8+
import kotlin.jvm.optionals.getOrNull
89

910
/** A class containing timeouts for various processing phases of a request. */
1011
class Timeout
@@ -96,7 +97,7 @@ private constructor(
9697
*
9798
* Defaults to `Duration.ofMinutes(1)`.
9899
*/
99-
fun connect(connect: Optional<Duration>) = connect(connect.orElse(null))
100+
fun connect(connect: Optional<Duration>) = connect(connect.getOrNull())
100101

101102
/**
102103
* The maximum time allowed between two data packets when waiting for the server’s response.
@@ -114,7 +115,7 @@ private constructor(
114115
*
115116
* Defaults to `request()`.
116117
*/
117-
fun read(read: Optional<Duration>) = read(read.orElse(null))
118+
fun read(read: Optional<Duration>) = read(read.getOrNull())
118119

119120
/**
120121
* The maximum time allowed between two data packets when sending the request to the server.
@@ -132,7 +133,7 @@ private constructor(
132133
*
133134
* Defaults to `request()`.
134135
*/
135-
fun write(write: Optional<Duration>) = write(write.orElse(null))
136+
fun write(write: Optional<Duration>) = write(write.getOrNull())
136137

137138
/**
138139
* The maximum time allowed for a complete HTTP call, not including retries.
@@ -156,7 +157,7 @@ private constructor(
156157
*
157158
* Defaults to `Duration.ofMinutes(1)`.
158159
*/
159-
fun request(request: Optional<Duration>) = request(request.orElse(null))
160+
fun request(request: Optional<Duration>) = request(request.getOrNull())
160161

161162
fun build(): Timeout = Timeout(connect, read, write, request)
162163
}

0 commit comments

Comments
 (0)