Skip to content

Commit cd0b7da

Browse files
authored
Merge pull request #71 from hathora/speakeasy-sdk-regen-1756426117
chore: 🐝 Update SDK - Generate 3.3.0
2 parents c5db0f3 + 9541780 commit cd0b7da

File tree

948 files changed

+88114
-10722
lines changed

Some content is hidden

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

948 files changed

+88114
-10722
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/temp/

.speakeasy/gen.lock

Lines changed: 639 additions & 18 deletions
Large diffs are not rendered by default.

.speakeasy/workflow.lock

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
1-
speakeasyVersion: 1.606.6
1+
speakeasyVersion: 1.658.2
22
sources:
33
java-source:
44
sourceNamespace: java-source
5-
sourceRevisionDigest: sha256:577401c910d4e5966fd680144e0ef3d38620dee02ce6a7cc70bd64ee90d0dcaa
6-
sourceBlobDigest: sha256:7037c4a3cfad22d533120b46da9b211a5f42427f8b70e36998095e3bf84b6bb1
5+
sourceRevisionDigest: sha256:846f82b2c5f534ddfa5eaf03dae4c50d9d0d5973f953a30460951980f5a99238
6+
sourceBlobDigest: sha256:a83dd5d2f6be3733c4c0cfde58d5b8811cff8746f24cc3baf3c90f78a45c1e30
77
tags:
88
- latest
9-
- speakeasy-sdk-regen-1756253357
9+
- speakeasy-sdk-regen-1756426117
1010
- 0.0.1
1111
targets:
1212
hathora-java:
1313
source: java-source
1414
sourceNamespace: java-source
15-
sourceRevisionDigest: sha256:577401c910d4e5966fd680144e0ef3d38620dee02ce6a7cc70bd64ee90d0dcaa
16-
sourceBlobDigest: sha256:7037c4a3cfad22d533120b46da9b211a5f42427f8b70e36998095e3bf84b6bb1
15+
sourceRevisionDigest: sha256:846f82b2c5f534ddfa5eaf03dae4c50d9d0d5973f953a30460951980f5a99238
16+
sourceBlobDigest: sha256:a83dd5d2f6be3733c4c0cfde58d5b8811cff8746f24cc3baf3c90f78a45c1e30
1717
codeSamplesNamespace: code-samples-java-hathora-java
18-
codeSamplesRevisionDigest: sha256:cd1ce58fba3f87119d56205751f2fa15390bdeb8b5bedffd8d65c1155c24bcd2
18+
codeSamplesRevisionDigest: sha256:0fc45c41414e243f3d1b781442c3b054bc035b8ac1e04c3d3b26663a2aedeed0
1919
workflow:
2020
workflowVersion: 1.0.0
2121
speakeasyVersion: latest

README.md

Lines changed: 358 additions & 34 deletions
Large diffs are not rendered by default.

RELEASES.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1169,4 +1169,14 @@ Based on:
11691169
### Generated
11701170
- [java v3.2.0] .
11711171
### Releases
1172-
- [Maven Central v3.2.0] https://central.sonatype.com/artifact/dev.hathora/cloud-sdk/3.2.0 - .
1172+
- [Maven Central v3.2.0] https://central.sonatype.com/artifact/dev.hathora/cloud-sdk/3.2.0 - .
1173+
1174+
## 2025-11-20 00:08:49
1175+
### Changes
1176+
Based on:
1177+
- OpenAPI Doc
1178+
- Speakeasy CLI 1.658.2 (2.755.9) https://github.com/speakeasy-api/speakeasy
1179+
### Generated
1180+
- [java v3.3.0] .
1181+
### Releases
1182+
- [Maven Central v3.3.0] https://central.sonatype.com/artifact/dev.hathora/cloud-sdk/3.3.0 - .

USAGE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import java.lang.Exception;
1010

1111
public class Application {
1212

13-
public static void main(String[] args) throws ApiError, ApiError, Exception {
13+
public static void main(String[] args) throws ApiError, Exception {
1414

1515
HathoraCloud sdk = HathoraCloud.builder()
1616
.orgId("org-6f706e83-0ec1-437a-9a46-7d4281eb2f39")

build.gradle

Lines changed: 65 additions & 89 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/dev.hathora/cloud-sdk") {
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,85 +73,6 @@ 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")
97-
}
98-
99-
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 = "dev.hathora"
107-
artifactId = "cloud-sdk"
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 = 'Hathora Java SDK'
118-
description = 'SDK enabling Java developers to easily integrate with the Hathora API.'
119-
url = 'https://github.com/hathora/cloud-sdk-java'
120-
scm {
121-
url = 'github.com/hathora/cloud-sdk-java'
122-
connection = 'scm:git:ssh://git@github.com/hathora/cloud-sdk-java.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 = 'Hathora'
133-
organization = 'Hathora'
134-
email = 'hello@hathora.dev'
135-
}
136-
}
137-
organization {
138-
name = 'Hathora'
139-
url = 'https://hathora.dev/'
140-
}
141-
}
142-
}
143-
}
144-
}
145-
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
152-
}
153-
}
154-
155-
15676

15777
dependencies {
15878
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.8.1'
@@ -164,6 +84,62 @@ dependencies {
16484
implementation 'com.fasterxml.jackson.datatype:jackson-datatype-jdk8:2.18.2'
16585
api('org.openapitools:jackson-databind-nullable:0.2.6') {exclude group: 'com.fasterxml.jackson.core', module: 'jackson-databind'}
16686
implementation 'commons-io:commons-io:2.18.0'
87+
implementation 'jakarta.annotation:jakarta.annotation-api:3.0.0'
88+
api 'org.reactivestreams:reactive-streams:1.0.4'
89+
}
90+
91+
ext {
92+
springBootVersion = '2.7.18'
93+
}
94+
95+
subprojects {
96+
if (name in [
97+
'cloud-sdk-spring-boot-autoconfigure',
98+
'cloud-sdk-spring-boot-starter'
99+
]) {
100+
// Ensure subprojects use the same group and version as root project
101+
group = rootProject.group
102+
version = rootProject.version
103+
104+
apply {
105+
plugin "java-library"
106+
plugin "io.spring.dependency-management"
107+
plugin "maven-publish"
108+
plugin "signing"
109+
plugin "cl.franciscosolis.sonatype-central-upload"
110+
}
111+
dependencyManagement {
112+
imports {
113+
mavenBom "org.springframework.boot:spring-boot-dependencies:${rootProject.springBootVersion}"
114+
}
115+
}
116+
repositories {
117+
mavenCentral()
118+
}
119+
java {
120+
withSourcesJar()
121+
withJavadocJar()
122+
}
123+
tasks.withType(JavaCompile).configureEach {
124+
options.release = 11
125+
}
126+
127+
// Apply publishing configuration to all subprojects - they'll check for publishingConfig internally
128+
apply from: rootProject.file('publishing.gradle')
129+
}
130+
}
131+
132+
ext {
133+
publishingConfig = [
134+
groupId: group,
135+
artifactId: artifactId,
136+
version: version,
137+
name: "Hathora Java SDK",
138+
description: "SDK enabling Java developers to easily integrate with the Hathora API.",
139+
publicationName: "maven"
140+
]
167141
}
168142

143+
apply from: 'publishing.gradle'
144+
169145
apply from: 'build-extras.gradle'

0 commit comments

Comments
 (0)