Skip to content

Commit 399d0c1

Browse files
authored
Merge pull request #2 from Benzinga/speakeasy-sdk-regen-1732887610
chore: 🐝 Update SDK - Generate 0.2.1
2 parents d7b1f81 + 0de0079 commit 399d0c1

File tree

9 files changed

+142
-102
lines changed

9 files changed

+142
-102
lines changed

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,10 @@ management:
55
docVersion: 1.0.0
66
speakeasyVersion: 1.448.2
77
generationVersion: 2.467.4
8-
releaseVersion: 0.2.0
9-
configChecksum: a7cf3f7938f2e60f90e1e40d9f27a3c8
8+
releaseVersion: 0.2.1
9+
configChecksum: 7c9b67f42958906ffe36c0f7486d8019
1010
repoURL: https://github.com/Benzinga/bz-java-client.git
11+
published: true
1112
features:
1213
java:
1314
acceptHeaders: 2.81.2

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ generation:
1313
oAuth2ClientCredentialsEnabled: false
1414
oAuth2PasswordEnabled: false
1515
java:
16-
version: 0.2.0
16+
version: 0.2.1
1717
additionalDependencies: []
1818
additionalPlugins: []
1919
artifactID: BZClient

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,12 @@ workflow:
2828
bzclient:
2929
target: java
3030
source: Benzinga APIs
31+
publish:
32+
java:
33+
ossrhUsername: $ossrh_username
34+
ossrhPassword: $ossrh_password
35+
gpgSecretKey: $java_gpg_secret_key
36+
gpgPassPhrase: $java_gpg_passphrase
3137
codeSamples:
3238
registry:
3339
location: registry.speakeasyapi.dev/benzinga/benzinga/benzinga-ap-is-java-code-samples

β€ŽREADME.mdβ€Ž

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,15 +48,15 @@ The samples below show how a published SDK artifact is used:
4848

4949
Gradle:
5050
```groovy
51-
implementation 'org.benzinga:BZClient:0.2.0'
51+
implementation 'org.benzinga:BZClient:0.2.1'
5252
```
5353

5454
Maven:
5555
```xml
5656
<dependency>
5757
<groupId>org.benzinga</groupId>
5858
<artifactId>BZClient</artifactId>
59-
<version>0.2.0</version>
59+
<version>0.2.1</version>
6060
</dependency>
6161
```
6262

β€ŽRELEASES.mdβ€Ž

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,14 @@ Based on:
66
- OpenAPI Doc
77
- Speakeasy CLI 1.448.2 (2.467.4) https://github.com/speakeasy-api/speakeasy
88
### Generated
9-
- [java v0.2.0] .
9+
- [java v0.2.0] .
10+
11+
## 2024-11-29 13:40:07
12+
### Changes
13+
Based on:
14+
- OpenAPI Doc
15+
- Speakeasy CLI 1.448.2 (2.467.4) https://github.com/speakeasy-api/speakeasy
16+
### Generated
17+
- [java v0.2.1] .
18+
### Releases
19+
- [Maven Central v0.2.1] https://central.sonatype.com/artifact/org.benzinga/BZClient/0.2.1 - .

β€Žbuild.gradleβ€Ž

Lines changed: 25 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ plugins {
1414
id 'java-library'
1515
id 'maven-publish'
1616
id 'signing'
17+
id 'cl.franciscosolis.sonatype-central-upload' version '1.0.3'
1718
}
1819

1920
compileJava.options.encoding = "UTF-8"
@@ -40,6 +41,7 @@ model {
4041

4142
jar {
4243
dependsOn(":generatePomFileForMavenPublication")
44+
archiveBaseName = "BZClient"
4345

4446
into("META-INF/maven/org.benzinga/BZClient") {
4547
from("$buildDir/pom.xml")
@@ -61,7 +63,7 @@ tasks.withType(Javadoc) {
6163
}
6264

6365
group = "org.benzinga"
64-
version = "0.2.0"
66+
version = "0.2.1"
6567

6668
sourcesJar {
6769
archiveBaseName = "BZClient"
@@ -70,6 +72,27 @@ sourcesJar {
7072
javadocJar {
7173
archiveBaseName = "BZClient"
7274
}
75+
sonatypeCentralUpload {
76+
// This is your Sonatype generated username
77+
username = System.getenv("SONATYPE_USERNAME")
78+
// This is your sonatype generated password
79+
password = System.getenv("SONATYPE_PASSWORD")
80+
81+
// This is a list of files to upload. Ideally you would point to your jar file, source and javadoc jar (required by central)
82+
archives = files(
83+
"$buildDir/libs/BZClient-${version}.jar",
84+
"$buildDir/libs/BZClient-${version}-sources.jar",
85+
"$buildDir/libs/BZClient-${version}-javadoc.jar"
86+
)
87+
88+
// This is the pom file to upload. This is required by central
89+
pom = file("$buildDir/pom.xml")
90+
91+
// This is your PGP private key. This is required to sign your files
92+
signingKey = System.getenv("SONATYPE_SIGNING_KEY")
93+
// This is your PGP private key passphrase to decrypt your private key
94+
signingKeyPassphrase = System.getenv("SIGNING_KEY_PASSPHRASE")
95+
}
7396

7497

7598
publishing {
@@ -78,7 +101,7 @@ publishing {
78101
maven(MavenPublication) {
79102
groupId = 'org.benzinga'
80103
artifactId = 'BZClient'
81-
version = '0.2.0'
104+
version = '0.2.1'
82105

83106
from components.java
84107

β€Žgradlew.batβ€Ž

Lines changed: 92 additions & 92 deletions
Original file line numberDiff line numberDiff line change
@@ -1,92 +1,92 @@
1-
@rem
2-
@rem Copyright 2015 the original author or authors.
3-
@rem
4-
@rem Licensed under the Apache License, Version 2.0 (the "License");
5-
@rem you may not use this file except in compliance with the License.
6-
@rem You may obtain a copy of the License at
7-
@rem
8-
@rem https://www.apache.org/licenses/LICENSE-2.0
9-
@rem
10-
@rem Unless required by applicable law or agreed to in writing, software
11-
@rem distributed under the License is distributed on an "AS IS" BASIS,
12-
@rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13-
@rem See the License for the specific language governing permissions and
14-
@rem limitations under the License.
15-
@rem
16-
17-
@if "%DEBUG%"=="" @echo off
18-
@rem ##########################################################################
19-
@rem
20-
@rem Gradle startup script for Windows
21-
@rem
22-
@rem ##########################################################################
23-
24-
@rem Set local scope for the variables with windows NT shell
25-
if "%OS%"=="Windows_NT" setlocal
26-
27-
set DIRNAME=%~dp0
28-
if "%DIRNAME%"=="" set DIRNAME=.
29-
@rem This is normally unused
30-
set APP_BASE_NAME=%~n0
31-
set APP_HOME=%DIRNAME%
32-
33-
@rem Resolve any "." and ".." in APP_HOME to make it shorter.
34-
for %%i in ("%APP_HOME%") do set APP_HOME=%%~fi
35-
36-
@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
37-
set DEFAULT_JVM_OPTS="-Xmx64m" "-Xms64m"
38-
39-
@rem Find java.exe
40-
if defined JAVA_HOME goto findJavaFromJavaHome
41-
42-
set JAVA_EXE=java.exe
43-
%JAVA_EXE% -version >NUL 2>&1
44-
if %ERRORLEVEL% equ 0 goto execute
45-
46-
echo.
47-
echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
48-
echo.
49-
echo Please set the JAVA_HOME variable in your environment to match the
50-
echo location of your Java installation.
51-
52-
goto fail
53-
54-
:findJavaFromJavaHome
55-
set JAVA_HOME=%JAVA_HOME:"=%
56-
set JAVA_EXE=%JAVA_HOME%/bin/java.exe
57-
58-
if exist "%JAVA_EXE%" goto execute
59-
60-
echo.
61-
echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
62-
echo.
63-
echo Please set the JAVA_HOME variable in your environment to match the
64-
echo location of your Java installation.
65-
66-
goto fail
67-
68-
:execute
69-
@rem Setup the command line
70-
71-
set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
72-
73-
74-
@rem Execute Gradle
75-
"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %*
76-
77-
:end
78-
@rem End local scope for the variables with windows NT shell
79-
if %ERRORLEVEL% equ 0 goto mainEnd
80-
81-
:fail
82-
rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
83-
rem the _cmd.exe /c_ return code!
84-
set EXIT_CODE=%ERRORLEVEL%
85-
if %EXIT_CODE% equ 0 set EXIT_CODE=1
86-
if not ""=="%GRADLE_EXIT_CONSOLE%" exit %EXIT_CODE%
87-
exit /b %EXIT_CODE%
88-
89-
:mainEnd
90-
if "%OS%"=="Windows_NT" endlocal
91-
92-
:omega
1+
@rem
2+
@rem Copyright 2015 the original author or authors.
3+
@rem
4+
@rem Licensed under the Apache License, Version 2.0 (the "License");
5+
@rem you may not use this file except in compliance with the License.
6+
@rem You may obtain a copy of the License at
7+
@rem
8+
@rem https://www.apache.org/licenses/LICENSE-2.0
9+
@rem
10+
@rem Unless required by applicable law or agreed to in writing, software
11+
@rem distributed under the License is distributed on an "AS IS" BASIS,
12+
@rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
@rem See the License for the specific language governing permissions and
14+
@rem limitations under the License.
15+
@rem
16+
17+
@if "%DEBUG%"=="" @echo off
18+
@rem ##########################################################################
19+
@rem
20+
@rem Gradle startup script for Windows
21+
@rem
22+
@rem ##########################################################################
23+
24+
@rem Set local scope for the variables with windows NT shell
25+
if "%OS%"=="Windows_NT" setlocal
26+
27+
set DIRNAME=%~dp0
28+
if "%DIRNAME%"=="" set DIRNAME=.
29+
@rem This is normally unused
30+
set APP_BASE_NAME=%~n0
31+
set APP_HOME=%DIRNAME%
32+
33+
@rem Resolve any "." and ".." in APP_HOME to make it shorter.
34+
for %%i in ("%APP_HOME%") do set APP_HOME=%%~fi
35+
36+
@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
37+
set DEFAULT_JVM_OPTS="-Xmx64m" "-Xms64m"
38+
39+
@rem Find java.exe
40+
if defined JAVA_HOME goto findJavaFromJavaHome
41+
42+
set JAVA_EXE=java.exe
43+
%JAVA_EXE% -version >NUL 2>&1
44+
if %ERRORLEVEL% equ 0 goto execute
45+
46+
echo.
47+
echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
48+
echo.
49+
echo Please set the JAVA_HOME variable in your environment to match the
50+
echo location of your Java installation.
51+
52+
goto fail
53+
54+
:findJavaFromJavaHome
55+
set JAVA_HOME=%JAVA_HOME:"=%
56+
set JAVA_EXE=%JAVA_HOME%/bin/java.exe
57+
58+
if exist "%JAVA_EXE%" goto execute
59+
60+
echo.
61+
echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
62+
echo.
63+
echo Please set the JAVA_HOME variable in your environment to match the
64+
echo location of your Java installation.
65+
66+
goto fail
67+
68+
:execute
69+
@rem Setup the command line
70+
71+
set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
72+
73+
74+
@rem Execute Gradle
75+
"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %*
76+
77+
:end
78+
@rem End local scope for the variables with windows NT shell
79+
if %ERRORLEVEL% equ 0 goto mainEnd
80+
81+
:fail
82+
rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
83+
rem the _cmd.exe /c_ return code!
84+
set EXIT_CODE=%ERRORLEVEL%
85+
if %EXIT_CODE% equ 0 set EXIT_CODE=1
86+
if not ""=="%GRADLE_EXIT_CONSOLE%" exit %EXIT_CODE%
87+
exit /b %EXIT_CODE%
88+
89+
:mainEnd
90+
if "%OS%"=="Windows_NT" endlocal
91+
92+
:omega

β€Žsettings.gradleβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@
77
* in the user manual at https://docs.gradle.org/7.5.1/userguide/multi_project_builds.html
88
*/
99

10-
rootProject.name = 'openapi'
10+
rootProject.name = 'BZClient'

β€Žsrc/main/java/org/benzinga/BZClient/SDKConfiguration.javaβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ public Optional<SecuritySource> securitySource() {
2323
public int serverIdx = 0;
2424
private static final String LANGUAGE = "java";
2525
public static final String OPENAPI_DOC_VERSION = "1.0.0";
26-
public static final String SDK_VERSION = "0.2.0";
26+
public static final String SDK_VERSION = "0.2.1";
2727
public static final String GEN_VERSION = "2.467.4";
2828
private static final String BASE_PACKAGE = "org.benzinga.BZClient";
2929
public static final String USER_AGENT =

0 commit comments

Comments
Β (0)