Skip to content

Commit c1c0698

Browse files
Updating configuration to support publishing
1 parent aa00153 commit c1c0698

File tree

5 files changed

+42
-28
lines changed

5 files changed

+42
-28
lines changed

.github/workflows/sdk_generation.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,4 +26,8 @@ jobs:
2626
set_version: ${{ github.event.inputs.set_version }}
2727
secrets:
2828
github_access_token: ${{ secrets.GITHUB_TOKEN }}
29+
java_gpg_passphrase: ${{ secrets.JAVA_GPG_PASSPHRASE }}
30+
java_gpg_secret_key: ${{ secrets.JAVA_GPG_SECRET_KEY }}
31+
ossrh_password: ${{ secrets.OSSRH_PASSWORD }}
32+
ossrh_username: ${{ secrets.OSSRH_USERNAME }}
2933
speakeasy_api_key: ${{ secrets.SPEAKEASY_API_KEY }}

.github/workflows/sdk_publish.yaml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Publish
2+
permissions:
3+
checks: write
4+
contents: write
5+
pull-requests: write
6+
statuses: write
7+
id-token: write
8+
"on":
9+
push:
10+
branches:
11+
- main
12+
paths:
13+
- .speakeasy/gen.lock
14+
workflow_dispatch: {}
15+
jobs:
16+
publish:
17+
uses: speakeasy-api/sdk-generation-action/.github/workflows/sdk-publish.yaml@v15
18+
with:
19+
target: glean
20+
secrets:
21+
github_access_token: ${{ secrets.GITHUB_TOKEN }}
22+
java_gpg_passphrase: ${{ secrets.JAVA_GPG_PASSPHRASE }}
23+
java_gpg_secret_key: ${{ secrets.JAVA_GPG_SECRET_KEY }}
24+
ossrh_password: ${{ secrets.OSSRH_PASSWORD }}
25+
ossrh_username: ${{ secrets.OSSRH_USERNAME }}
26+
speakeasy_api_key: ${{ secrets.SPEAKEASY_API_KEY }}

.speakeasy/gen.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ java:
2222
clientServerStatusCodesAsErrors: true
2323
companyEmail: info@glean.com
2424
companyName: Glean
25-
companyURL: www.glean.com
25+
companyURL: https://www.glean.com
2626
defaultErrorName: APIException
2727
flattenGlobalSecurity: true
2828
githubURL: github.com/gleanwork/api-client-java
@@ -42,5 +42,5 @@ java:
4242
url: https://mit-license.org/
4343
maxMethodParams: 4
4444
outputModelSuffix: output
45-
projectName: openapi
45+
projectName: api-client
4646
templateVersion: v2

.speakeasy/workflow.yaml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,15 @@ targets:
99
glean:
1010
target: java
1111
source: Glean API
12+
publish:
13+
java:
14+
ossrhUsername: $ossrh_username
15+
ossrhPassword: $ossrh_password
16+
gpgSecretKey: $java_gpg_secret_key
17+
gpgPassPhrase: $java_gpg_passphrase
1218
codeSamples:
1319
registry:
1420
location: registry.speakeasyapi.dev/glean-el2/sdk/glean-api-specs-java-code-samples
1521
labelOverride:
16-
fixedValue: Java (SDK)
22+
fixedValue: Java (Client)
1723
blocking: false

README.md

Lines changed: 3 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,7 @@
1-
# openapi
1+
# api-client-java
22

3-
Developer-friendly & type-safe Java SDK specifically catered to leverage *openapi* API.
4-
5-
<div align="left">
6-
<a href="https://www.speakeasy.com/?utm_source=openapi&utm_campaign=java"><img src="https://custom-icon-badges.demolab.com/badge/-Built%20By%20Speakeasy-212015?style=for-the-badge&logoColor=FBE331&logo=speakeasy&labelColor=545454" /></a>
7-
<a href="https://mit-license.org/">
8-
<img src="https://img.shields.io/badge/License-MIT-blue.svg" style="width: 100px; height: 28px;" />
9-
</a>
10-
</div>
11-
12-
13-
<br /><br />
14-
> [!IMPORTANT]
15-
> This SDK is not yet ready for production use. To complete setup please follow the steps outlined in your [workspace](https://app.speakeasy.com/org/glean-el2/sdk). Delete this section before > publishing to a package manager.
16-
17-
<!-- Start Summary [summary] -->
18-
## Summary
19-
20-
Glean API: # Introduction
21-
In addition to the data sources that Glean has built-in support for, Glean also provides a REST API that enables customers to put arbitrary content in the search index. This is useful, for example, for doing permissions-aware search over content in internal tools that reside on-prem as well as for searching over applications that Glean does not currently support first class. In addition these APIs allow the customer to push organization data (people info, organization structure etc) into Glean.
22-
23-
# Usage guidelines
24-
This API is evolving fast. Glean will provide advance notice of any planned backwards incompatible changes along
25-
with a 6-month sunset period for anything that requires developers to adopt the new versions.
26-
<!-- End Summary [summary] -->
3+
The Glean Java SDK provides convenient access to the Glean REST API for Java 8+. It includes POJOs for all API models, fluent builders for requests, and supports both synchronous and asynchronous execution using standard HTTP clients.
4+
<!-- No Summary [summary] -->
275

286
<!-- Start Table of Contents [toc] -->
297
## Table of Contents

0 commit comments

Comments
 (0)