Skip to content

Commit 3392b21

Browse files
authored
Merge pull request #88 from clerk/speakeasy-sdk-regen-1756771797
chore: 🐝 Update SDK - Generate 4.0.0
2 parents 0243037 + 4021548 commit 3392b21

File tree

717 files changed

+29311
-17659
lines changed

Some content is hidden

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

717 files changed

+29311
-17659
lines changed

β€Ž.gitignoreβ€Ž

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
.env
2+
.env.local
13
**/.speakeasy/temp/
24
**/.speakeasy/logs/
35
.speakeasy/reports

β€Ž.speakeasy/gen.lockβ€Ž

Lines changed: 246 additions & 69 deletions
Large diffs are not rendered by default.

β€Ž.speakeasy/gen.yamlβ€Ž

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,16 @@ generation:
1616
auth:
1717
oAuth2ClientCredentialsEnabled: true
1818
oAuth2PasswordEnabled: false
19+
hoistGlobalSecurity: true
20+
schemas:
21+
allOfMergeStrategy: shallowMerge
22+
requestBodyFieldName: ""
1923
tests:
2024
generateTests: true
2125
generateNewTests: false
2226
skipResponseBodyAssertions: false
2327
java:
24-
version: 3.2.0
28+
version: 4.0.0
2529
additionalDependencies: []
2630
additionalPlugins: []
2731
artifactID: backend-api
@@ -31,9 +35,12 @@ java:
3135
companyName: My Company
3236
companyURL: www.mycompany.com
3337
defaultErrorName: SDKError
34-
enableAsync: false
3538
enableCustomCodeRegions: false
39+
enableStreamingUploads: false
40+
enhancedUnionMemberResolution: true
3641
flattenGlobalSecurity: true
42+
generateOptionalUnionAccessors: false
43+
generateSpringBootStarter: true
3744
githubURL: github.com/owner/repo
3845
groupID: com.clerk
3946
imports:
@@ -52,6 +59,7 @@ java:
5259
url: https://mit-license.org/
5360
maxMethodParams: 4
5461
nullFriendlyParameters: false
62+
openUnions: true
5563
outputModelSuffix: output
5664
projectName: api
5765
templateVersion: v2

β€Ž.speakeasy/workflow.lockβ€Ž

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
1-
speakeasyVersion: 1.606.9
1+
speakeasyVersion: 1.653.0
22
sources:
33
clerk-java-sdk:
44
sourceNamespace: clerk-java-sdk
5-
sourceRevisionDigest: sha256:50ec69cb208a504bcf1098f28817af6691e8e924eb4349d141989a927680dfe8
6-
sourceBlobDigest: sha256:f8e89b57ae783aa6cc659bdc7c1d7955947b0c989a2224290169d25eb18c65df
5+
sourceRevisionDigest: sha256:4cdfbca5fe446f5440ef5a91053cdec7dd86d4b1c296a30cec61e1f46e1c3bf0
6+
sourceBlobDigest: sha256:667192662fbf3ee62bd9f4d3e67323b7b6777054d7d08b383e2db721e2911354
77
tags:
88
- latest
9-
- speakeasy-sdk-regen-1753143080
10-
- "2025-04-10"
9+
- speakeasy-sdk-regen-1756771797
10+
- "2025-11-10"
1111
targets:
1212
clerk-java:
1313
source: clerk-java-sdk
1414
sourceNamespace: clerk-java-sdk
15-
sourceRevisionDigest: sha256:50ec69cb208a504bcf1098f28817af6691e8e924eb4349d141989a927680dfe8
16-
sourceBlobDigest: sha256:f8e89b57ae783aa6cc659bdc7c1d7955947b0c989a2224290169d25eb18c65df
15+
sourceRevisionDigest: sha256:4cdfbca5fe446f5440ef5a91053cdec7dd86d4b1c296a30cec61e1f46e1c3bf0
16+
sourceBlobDigest: sha256:667192662fbf3ee62bd9f4d3e67323b7b6777054d7d08b383e2db721e2911354
1717
codeSamplesNamespace: clerk-java-sdk-code-samples
18-
codeSamplesRevisionDigest: sha256:ce2a259ab2e8d16332425f8ffa3e5d352574ad828ec574b02ed47ab8c262a028
18+
codeSamplesRevisionDigest: sha256:ec10b689b7835ba5566ba1569f14e7b197a7dcba7dd11c0753c62de6d3f072c4
1919
my-first-target:
2020
source: clerk-java-sdk
2121
sourceNamespace: clerk-java-sdk
@@ -27,7 +27,7 @@ workflow:
2727
sources:
2828
clerk-java-sdk:
2929
inputs:
30-
- location: https://raw.githubusercontent.com/clerk/openapi-specs/refs/heads/main/bapi/2025-04-10.yml
30+
- location: https://raw.githubusercontent.com/clerk/openapi-specs/refs/heads/main/bapi/2025-11-10.yml
3131
overlays:
3232
- location: https://raw.githubusercontent.com/clerk/openapi-specs/refs/heads/main/.speakeasy/bapi/fixes.yml
3333
registry:

β€ŽREADME.mdβ€Ž

Lines changed: 226 additions & 31 deletions
Large diffs are not rendered by default.

β€ŽRELEASES.mdβ€Ž

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -348,4 +348,14 @@ Based on:
348348
### Generated
349349
- [java v3.2.0] .
350350
### Releases
351-
- [Maven Central v3.2.0] https://central.sonatype.com/artifact/com.clerk/backend-api/3.2.0 - .
351+
- [Maven Central v3.2.0] https://central.sonatype.com/artifact/com.clerk/backend-api/3.2.0 - .
352+
353+
## 2025-11-10 21:06:20
354+
### Changes
355+
Based on:
356+
- OpenAPI Doc
357+
- Speakeasy CLI 1.653.0 (2.748.0) https://github.com/speakeasy-api/speakeasy
358+
### Generated
359+
- [java v4.0.0] .
360+
### Releases
361+
- [Maven Central v4.0.0] https://central.sonatype.com/artifact/com.clerk/backend-api/4.0.0 - .

β€Žbuild.gradleβ€Ž

Lines changed: 63 additions & 88 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
////////////////////////////////////////////////////////////////////////////////////////////
32
// This file is generated by Speakeasy and any edits will be lost in generation updates.
43
//
@@ -9,12 +8,15 @@
98
// of string where each string value is an additional line in the block) in gen.yaml.
109
////////////////////////////////////////////////////////////////////////////////////////////
1110

11+
1212
plugins {
1313
// Apply the java-library plugin for API and implementation separation.
1414
id 'java-library'
1515
id 'maven-publish'
1616
id 'signing'
17+
// V2 publishing plugin (Sonatype Central Portal)
1718
id 'cl.franciscosolis.sonatype-central-upload' version '1.0.3'
19+
id "io.spring.dependency-management" version "1.1.6" apply false
1820
}
1921

2022
compileJava.options.encoding = "UTF-8"
@@ -31,21 +33,18 @@ java {
3133
withJavadocJar()
3234
}
3335

34-
model {
35-
tasks.generatePomFileForMavenPublication {
36-
destination = file("$buildDir/pom.xml")
37-
}
38-
}
39-
4036
version = "${version}"
4137
group = "${groupId}"
4238

4339
jar {
44-
dependsOn(":generatePomFileForMavenPublication")
40+
dependsOn 'generatePomFileForMavenPublication'
4541
archiveBaseName = "${artifactId}"
4642

4743
into("META-INF/maven/com.clerk/backend-api") {
48-
from("$buildDir/pom.xml")
44+
from(layout.buildDirectory.file("pom.xml")) {
45+
// Only include if it exists to avoid build ordering issues
46+
duplicatesStrategy = DuplicatesStrategy.INCLUDE
47+
}
4948
}
5049
}
5150

@@ -58,7 +57,7 @@ javadoc {
5857
options.addStringOption('Xdoclint:none', '-quiet')
5958
}
6059

61-
tasks.withType(Javadoc) {
60+
tasks.withType(Javadoc).configureEach {
6261
failOnError = false
6362
options.addStringOption('Xdoclint:none', '-quiet')
6463
}
@@ -74,93 +73,69 @@ sourcesJar {
7473
javadocJar {
7574
archiveBaseName = "${artifactId}"
7675
}
77-
sonatypeCentralUpload {
78-
// This is your Sonatype generated username
79-
username = System.getenv("SONATYPE_USERNAME")
80-
// This is your sonatype generated password
81-
password = System.getenv("SONATYPE_PASSWORD")
82-
83-
// This is a list of files to upload. Ideally you would point to your jar file, source and javadoc jar (required by central)
84-
archives = files(
85-
"$buildDir/libs/${artifactId}-${version}.jar",
86-
"$buildDir/libs/${artifactId}-${version}-sources.jar",
87-
"$buildDir/libs/${artifactId}-${version}-javadoc.jar"
88-
)
89-
90-
// This is the pom file to upload. This is required by central
91-
pom = file("$buildDir/pom.xml")
92-
93-
// This is your PGP private key. This is required to sign your files
94-
signingKey = System.getenv("SONATYPE_SIGNING_KEY")
95-
// This is your PGP private key passphrase to decrypt your private key
96-
signingKeyPassphrase = System.getenv("SIGNING_KEY_PASSPHRASE")
76+
77+
dependencies {
78+
api 'com.fasterxml.jackson.core:jackson-annotations:2.18.2'
79+
implementation 'com.fasterxml.jackson.core:jackson-databind:2.18.2'
80+
implementation 'com.fasterxml.jackson.datatype:jackson-datatype-jsr310:2.18.2'
81+
implementation 'com.fasterxml.jackson.datatype:jackson-datatype-jdk8:2.18.2'
82+
api('org.openapitools:jackson-databind-nullable:0.2.6') {exclude group: 'com.fasterxml.jackson.core', module: 'jackson-databind'}
83+
implementation 'commons-io:commons-io:2.18.0'
84+
implementation 'jakarta.annotation:jakarta.annotation-api:3.0.0'
9785
}
9886

87+
ext {
88+
springBootVersion = '2.7.18'
89+
}
9990

100-
publishing {
101-
102-
publications {
103-
maven(MavenPublication) {
104-
// note that properties can't yet be used below!
105-
// https://github.com/gradle/gradle/issues/18619
106-
groupId = "com.clerk"
107-
artifactId = "backend-api"
108-
version = "3.2.0"
109-
110-
from components.java
111-
112-
pom {
113-
properties = [
114-
'maven.compiler.source': '11',
115-
'maven.compiler.target': '11',
116-
]
117-
name = 'My Company Java SDK'
118-
description = 'SDK enabling Java developers to easily integrate with the My Company API.'
119-
url = 'https://github.com/owner/repo'
120-
scm {
121-
url = 'github.com/owner/repo'
122-
connection = 'scm:git:ssh://[email protected]/owner/repo.git'
123-
}
124-
licenses {
125-
license {
126-
name = 'The MIT License (MIT)'
127-
url = 'https://mit-license.org/'
128-
}
129-
}
130-
developers {
131-
developer {
132-
name = 'My Company'
133-
organization = 'My Company'
134-
135-
}
136-
}
137-
organization {
138-
name = 'My Company'
139-
url = 'www.mycompany.com'
140-
}
91+
subprojects {
92+
if (name in [
93+
'backend-api-spring-boot-autoconfigure',
94+
'backend-api-spring-boot-starter'
95+
]) {
96+
// Ensure subprojects use the same group and version as root project
97+
group = rootProject.group
98+
version = rootProject.version
99+
100+
apply {
101+
plugin "java-library"
102+
plugin "io.spring.dependency-management"
103+
plugin "maven-publish"
104+
plugin "signing"
105+
plugin "cl.franciscosolis.sonatype-central-upload"
106+
}
107+
dependencyManagement {
108+
imports {
109+
mavenBom "org.springframework.boot:spring-boot-dependencies:${rootProject.springBootVersion}"
141110
}
142111
}
143-
}
144-
}
112+
repositories {
113+
mavenCentral()
114+
}
115+
java {
116+
withSourcesJar()
117+
withJavadocJar()
118+
}
119+
tasks.withType(JavaCompile).configureEach {
120+
options.release = 11
121+
}
145122

146-
if (!project.hasProperty('skip.signing')) {
147-
signing {
148-
def signingKey = findProperty("signingKey")
149-
def signingPassphrase = findProperty("signingPassphrase")
150-
useInMemoryPgpKeys(signingKey, signingPassphrase)
151-
sign publishing.publications.maven
123+
// Apply publishing configuration to all subprojects - they'll check for publishingConfig internally
124+
apply from: rootProject.file('publishing.gradle')
152125
}
153126
}
154127

155-
156-
157-
dependencies {
158-
api 'com.fasterxml.jackson.core:jackson-annotations:2.18.2'
159-
implementation 'com.fasterxml.jackson.core:jackson-databind:2.18.2'
160-
implementation 'com.fasterxml.jackson.datatype:jackson-datatype-jsr310:2.18.2'
161-
implementation 'com.fasterxml.jackson.datatype:jackson-datatype-jdk8:2.18.2'
162-
api('org.openapitools:jackson-databind-nullable:0.2.6') {exclude group: 'com.fasterxml.jackson.core', module: 'jackson-databind'}
163-
implementation 'commons-io:commons-io:2.18.0'
128+
ext {
129+
publishingConfig = [
130+
groupId: group,
131+
artifactId: artifactId,
132+
version: version,
133+
name: "My Company Java SDK",
134+
description: "SDK enabling Java developers to easily integrate with the My Company API.",
135+
publicationName: "maven"
136+
]
164137
}
165138

139+
apply from: 'publishing.gradle'
140+
166141
apply from: 'build-extras.gradle'

β€Ždocs/models/components/AWSCredential.mdβ€Ž

Lines changed: 0 additions & 15 deletions
This file was deleted.

β€Ždocs/models/components/AccountlessApplication.mdβ€Ž

Lines changed: 0 additions & 14 deletions
This file was deleted.

β€Ždocs/models/components/AccountlessApplicationObject.mdβ€Ž

Lines changed: 0 additions & 8 deletions
This file was deleted.

0 commit comments

Comments
Β (0)