From 61553299e7a2a837af325e5917d33791fd7061ae Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Wed, 20 Nov 2024 22:14:55 +0000 Subject: [PATCH] ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.441.1 --- .speakeasy/gen.lock | 11 +++++------ .speakeasy/workflow.lock | 14 +++++++------- README.md | 4 ++-- RELEASES.md | 12 +++++++++++- build.gradle | 7 ++++--- gen.yaml | 2 +- .../java/dev/speakeasyapi/javaclientsdk/SDK.java | 5 ----- .../javaclientsdk/SDKConfiguration.java | 12 +++--------- 8 files changed, 33 insertions(+), 34 deletions(-) diff --git a/.speakeasy/gen.lock b/.speakeasy/gen.lock index da96840e..446a30fe 100755 --- a/.speakeasy/gen.lock +++ b/.speakeasy/gen.lock @@ -3,10 +3,10 @@ id: 66f99777-b2f2-4e45-9581-501d199e5c0c management: docChecksum: f29435bb099891e387e6c1c61cb02f8c docVersion: 0.4.0 - speakeasyVersion: 1.441.0 - generationVersion: 2.460.1 - releaseVersion: 7.19.2 - configChecksum: c54f3f736cfae30a1e5e98bd9c492fe8 + speakeasyVersion: 1.441.1 + generationVersion: 2.461.2 + releaseVersion: 7.20.0 + configChecksum: 323804e3e65ec493bca51eb21d00d75f repoURL: https://github.com/speakeasy-api/speakeasy-client-sdk-java.git repoSubDirectory: . published: true @@ -14,7 +14,7 @@ features: java: acceptHeaders: 2.81.2 additionalDependencies: 0.1.0 - core: 3.32.0 + core: 3.32.1 deprecations: 2.81.1 downloadStreams: 0.1.1 examples: 2.81.3 @@ -29,7 +29,6 @@ features: sdkHooks: 0.1.0 serverEventsSentinels: 0.2.0 serverIDs: 2.81.1 - tests: 0.1.0 generatedFiles: - .gitattributes - CONTRIBUTING.md diff --git a/.speakeasy/workflow.lock b/.speakeasy/workflow.lock index 8e7506a0..d9f49a99 100644 --- a/.speakeasy/workflow.lock +++ b/.speakeasy/workflow.lock @@ -1,9 +1,9 @@ -speakeasyVersion: 1.441.0 +speakeasyVersion: 1.441.1 sources: first-source: {} my-source: sourceNamespace: my-source - sourceRevisionDigest: sha256:09654734784c94348a0e50bd77c928680e867102d597cfa09045e096a717ddf6 + sourceRevisionDigest: sha256:90d3869a7f1503d27a79404a9b3dd443d204913bd5f54c5ac307f13a9a3575d9 sourceBlobDigest: sha256:3a852c07826c5fc0bf4f450222762a1723f9fd43faf32126ffdf193260ff2d12 tags: - latest @@ -12,10 +12,10 @@ targets: java-target: source: my-source sourceNamespace: my-source - sourceRevisionDigest: sha256:09654734784c94348a0e50bd77c928680e867102d597cfa09045e096a717ddf6 + sourceRevisionDigest: sha256:90d3869a7f1503d27a79404a9b3dd443d204913bd5f54c5ac307f13a9a3575d9 sourceBlobDigest: sha256:3a852c07826c5fc0bf4f450222762a1723f9fd43faf32126ffdf193260ff2d12 - codeSamplesNamespace: code-samples-java-java-target - codeSamplesRevisionDigest: sha256:75e3cdbf4f073341d31f26715aef232826c4de8b5354e85212a46d6fd0dffca2 + codeSamplesNamespace: my-source-code-samples + codeSamplesRevisionDigest: sha256:57136784f7071f80c8a3898578b1e9c695d27fdda54aaf5b89404a2da1886c85 py: source: first-source ts: @@ -28,7 +28,7 @@ workflow: inputs: - location: https://speakeasy.com/openapi.yaml registry: - location: registry.speakeasyapi.dev/speakeasy-self/speakeasy-self/my-source + location: registry.speakeasyapi.dev/chase-test/chase-test/my-source targets: java-target: target: java @@ -43,4 +43,4 @@ workflow: codeSamples: output: codeSamples.yaml registry: - location: registry.speakeasyapi.dev/speakeasy-self/speakeasy-self/code-samples-java-java-target + location: registry.speakeasyapi.dev/chase-test/chase-test/my-source-code-samples diff --git a/README.md b/README.md index 78798054..26dc776e 100755 --- a/README.md +++ b/README.md @@ -32,7 +32,7 @@ The samples below show how a published SDK artifact is used: Gradle: ```groovy -implementation 'dev.speakeasyapi:javaclientsdk:7.19.2' +implementation 'dev.speakeasyapi:javaclientsdk:7.20.0' ``` Maven: @@ -40,7 +40,7 @@ Maven: dev.speakeasyapi javaclientsdk - 7.19.2 + 7.20.0 ``` diff --git a/RELEASES.md b/RELEASES.md index 0921970c..5ade0013 100644 --- a/RELEASES.md +++ b/RELEASES.md @@ -1786,4 +1786,14 @@ Based on: ### Generated - [java v7.19.2] . ### Releases -- [Maven Central v7.19.2] https://central.sonatype.com/artifact/dev.speakeasyapi/javaclientsdk/7.19.2 - . \ No newline at end of file +- [Maven Central v7.19.2] https://central.sonatype.com/artifact/dev.speakeasyapi/javaclientsdk/7.19.2 - . + +## 2024-11-20 22:13:54 +### Changes +Based on: +- OpenAPI Doc +- Speakeasy CLI 1.441.1 (2.461.2) https://github.com/speakeasy-api/speakeasy +### Generated +- [java v7.20.0] . +### Releases +- [Maven Central v7.20.0] https://central.sonatype.com/artifact/dev.speakeasyapi/javaclientsdk/7.20.0 - . \ No newline at end of file diff --git a/build.gradle b/build.gradle index 20102f16..d888debd 100644 --- a/build.gradle +++ b/build.gradle @@ -61,7 +61,7 @@ tasks.withType(Javadoc) { } group = "dev.speakeasyapi" -version = "7.19.2" +version = "7.20.0" sourcesJar { archiveBaseName = "javaclientsdk" @@ -88,7 +88,7 @@ publishing { maven(MavenPublication) { groupId = 'dev.speakeasyapi' artifactId = 'javaclientsdk' - version = '7.19.2' + version = '7.20.0' from components.java @@ -132,10 +132,11 @@ if (!project.hasProperty('skip.signing')) { } dependencies { + api 'com.fasterxml.jackson.core:jackson-annotations:2.17.2' implementation 'com.fasterxml.jackson.core:jackson-databind:2.17.2' implementation 'com.fasterxml.jackson.datatype:jackson-datatype-jsr310:2.17.2' implementation 'com.fasterxml.jackson.datatype:jackson-datatype-jdk8:2.17.2' - implementation 'org.openapitools:jackson-databind-nullable:0.2.6' + api('org.openapitools:jackson-databind-nullable:0.2.6') {exclude group: 'com.fasterxml.jackson.core', module: 'jackson-databind'} implementation 'org.apache.httpcomponents:httpclient:4.5.14' implementation 'org.apache.httpcomponents:httpmime:4.5.14' implementation 'commons-io:commons-io:2.15.1' diff --git a/gen.yaml b/gen.yaml index 3d7c12d9..eeba612b 100644 --- a/gen.yaml +++ b/gen.yaml @@ -11,7 +11,7 @@ generation: oAuth2ClientCredentialsEnabled: false oAuth2PasswordEnabled: false java: - version: 7.19.2 + version: 7.20.0 additionalDependencies: [] additionalPlugins: [] artifactID: javaclientsdk diff --git a/src/main/java/dev/speakeasyapi/javaclientsdk/SDK.java b/src/main/java/dev/speakeasyapi/javaclientsdk/SDK.java index 0f94cc19..d073ef4c 100644 --- a/src/main/java/dev/speakeasyapi/javaclientsdk/SDK.java +++ b/src/main/java/dev/speakeasyapi/javaclientsdk/SDK.java @@ -352,11 +352,6 @@ public Builder workspaceId(String workspaceId) { return this; } - // Visible for testing, will be accessed via reflection - void _hooks(dev.speakeasyapi.javaclientsdk.utils.Hooks hooks) { - sdkConfiguration.setHooks(hooks); - } - /** * Builds a new instance of the SDK. * @return The SDK instance. diff --git a/src/main/java/dev/speakeasyapi/javaclientsdk/SDKConfiguration.java b/src/main/java/dev/speakeasyapi/javaclientsdk/SDKConfiguration.java index fd3cc3eb..8639d767 100644 --- a/src/main/java/dev/speakeasyapi/javaclientsdk/SDKConfiguration.java +++ b/src/main/java/dev/speakeasyapi/javaclientsdk/SDKConfiguration.java @@ -4,9 +4,7 @@ package dev.speakeasyapi.javaclientsdk; -import dev.speakeasyapi.javaclientsdk.hooks.SDKHooks; import dev.speakeasyapi.javaclientsdk.utils.HTTPClient; -import dev.speakeasyapi.javaclientsdk.utils.Hook.SdkInitData; import dev.speakeasyapi.javaclientsdk.utils.Hooks; import dev.speakeasyapi.javaclientsdk.utils.RetryConfig; import java.lang.Object; @@ -27,8 +25,8 @@ public Optional securitySource() { public String server; private static final String LANGUAGE = "java"; public static final String OPENAPI_DOC_VERSION = "0.4.0"; - public static final String SDK_VERSION = "7.19.2"; - public static final String GEN_VERSION = "2.460.1"; + public static final String SDK_VERSION = "7.20.0"; + public static final String GEN_VERSION = "2.461.2"; private static final String BASE_PACKAGE = "dev.speakeasyapi.javaclientsdk"; public static final String USER_AGENT = String.format("speakeasy-sdk/%s %s %s %s %s", @@ -53,11 +51,7 @@ public void setHooks(Hooks hooks) { * Initializes state (for example hooks). **/ public void initialize() { - SDKHooks.initialize(_hooks); - // apply the sdk init hook immediately - SdkInitData data = _hooks.sdkInit(new SdkInitData(serverUrl, defaultClient)); - this.serverUrl = data.baseUrl(); - this.defaultClient = data.client(); + } @SuppressWarnings("serial")