Skip to content

Commit 2d30fab

Browse files
authored
Merge pull request #2 from brand-dot-dev/release-please--branches--main--changes--next
release: 0.1.0-alpha.1
2 parents f60f36e + 7c7a52b commit 2d30fab

98 files changed

Lines changed: 654 additions & 465 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
# This workflow is triggered when a GitHub release is created.
2+
# It can also be run manually to re-publish to Sonatype in case it failed for some reason.
3+
# You can run this workflow by navigating to https://www.github.com/brand-dot-dev/java-sdk/actions/workflows/publish-sonatype.yml
4+
name: Publish Sonatype
5+
on:
6+
workflow_dispatch:
7+
8+
release:
9+
types: [published]
10+
11+
jobs:
12+
publish:
13+
name: publish
14+
runs-on: ubuntu-latest
15+
16+
steps:
17+
- uses: actions/checkout@v4
18+
19+
- name: Set up Java
20+
uses: actions/setup-java@v3
21+
with:
22+
distribution: temurin
23+
java-version: |
24+
8
25+
17
26+
cache: gradle
27+
28+
- name: Set up Gradle
29+
uses: gradle/gradle-build-action@v2
30+
31+
- name: Publish to Sonatype
32+
run: |-
33+
export -- GPG_SIGNING_KEY_ID
34+
printenv -- GPG_SIGNING_KEY | gpg --batch --passphrase-fd 3 --import 3<<< "$GPG_SIGNING_PASSWORD"
35+
GPG_SIGNING_KEY_ID="$(gpg --with-colons --list-keys | awk -F : -- '/^pub:/ { getline; print "0x" substr($10, length($10) - 7) }')"
36+
./gradlew publish --no-configuration-cache
37+
env:
38+
SONATYPE_USERNAME: ${{ secrets.BRAND_DEV_SONATYPE_USERNAME || secrets.SONATYPE_USERNAME }}
39+
SONATYPE_PASSWORD: ${{ secrets.BRAND_DEV_SONATYPE_PASSWORD || secrets.SONATYPE_PASSWORD }}
40+
GPG_SIGNING_KEY: ${{ secrets.BRAND_DEV_SONATYPE_GPG_SIGNING_KEY || secrets.GPG_SIGNING_KEY }}
41+
GPG_SIGNING_PASSWORD: ${{ secrets.BRAND_DEV_SONATYPE_GPG_SIGNING_PASSWORD || secrets.GPG_SIGNING_PASSWORD }}
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Release Doctor
2+
on:
3+
pull_request:
4+
branches:
5+
- main
6+
workflow_dispatch:
7+
8+
jobs:
9+
release_doctor:
10+
name: release doctor
11+
runs-on: ubuntu-latest
12+
if: github.repository == 'brand-dot-dev/java-sdk' && (github.event_name == 'push' || github.event_name == 'workflow_dispatch' || startsWith(github.head_ref, 'release-please') || github.head_ref == 'next')
13+
14+
steps:
15+
- uses: actions/checkout@v4
16+
17+
- name: Check release environment
18+
run: |
19+
bash ./bin/check-release-environment
20+
env:
21+
SONATYPE_USERNAME: ${{ secrets.BRAND_DEV_SONATYPE_USERNAME || secrets.SONATYPE_USERNAME }}
22+
SONATYPE_PASSWORD: ${{ secrets.BRAND_DEV_SONATYPE_PASSWORD || secrets.SONATYPE_PASSWORD }}
23+
GPG_SIGNING_KEY: ${{ secrets.BRAND_DEV_SONATYPE_GPG_SIGNING_KEY || secrets.GPG_SIGNING_KEY }}
24+
GPG_SIGNING_PASSWORD: ${{ secrets.BRAND_DEV_SONATYPE_GPG_SIGNING_PASSWORD || secrets.GPG_SIGNING_PASSWORD }}

.release-please-manifest.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
".": "0.1.0-alpha.1"
3+
}

.stats.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 5
22
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/brand-dev%2Fbrand.dev-4ae7054043638dcc01d21118e45decf37b9b4c45901f56f754242c53488e9e1b.yml
33
openapi_spec_hash: 36398495174caed44730dadeab373cba
4-
config_hash: 8fae1c2fda5d342e67cdb6d0a5dfd9c1
4+
config_hash: 29e06b6f848056056c40f0d89eacc2d6

CHANGELOG.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# Changelog
2+
3+
## 0.1.0-alpha.1 (2025-05-29)
4+
5+
Full Changelog: [v0.0.1-alpha.0...v0.1.0-alpha.1](https://github.com/brand-dot-dev/java-sdk/compare/v0.0.1-alpha.0...v0.1.0-alpha.1)
6+
7+
### Features
8+
9+
* **api:** manual updates ([afcf5f3](https://github.com/brand-dot-dev/java-sdk/commit/afcf5f3eab36a8a47f145ad5ae9a9d0cc1c937fe))
10+
11+
12+
### Bug Fixes
13+
14+
* **client:** remove `@MustBeClosed` for future returning methods ([a484885](https://github.com/brand-dot-dev/java-sdk/commit/a48488575e6565bc755e5fc0501cee78734b944f))
15+
16+
17+
### Chores
18+
19+
* configure new SDK language ([f60f36e](https://github.com/brand-dot-dev/java-sdk/commit/f60f36e5aa9b4cd2a28d3ddb7433e1cb963a759a))
20+
* update SDK settings ([98a8ca6](https://github.com/brand-dot-dev/java-sdk/commit/98a8ca6965242ad9057d62df2f597d05f04e286c))

README.md

Lines changed: 86 additions & 74 deletions
Large diffs are not rendered by default.

bin/check-release-environment

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
#!/usr/bin/env bash
2+
3+
errors=()
4+
5+
if [ -z "${SONATYPE_USERNAME}" ]; then
6+
errors+=("The BRAND_DEV_SONATYPE_USERNAME secret has not been set. Please set it in either this repository's secrets or your organization secrets")
7+
fi
8+
9+
if [ -z "${SONATYPE_PASSWORD}" ]; then
10+
errors+=("The BRAND_DEV_SONATYPE_PASSWORD secret has not been set. Please set it in either this repository's secrets or your organization secrets")
11+
fi
12+
13+
if [ -z "${GPG_SIGNING_KEY}" ]; then
14+
errors+=("The BRAND_DEV_SONATYPE_GPG_SIGNING_KEY secret has not been set. Please set it in either this repository's secrets or your organization secrets")
15+
fi
16+
17+
if [ -z "${GPG_SIGNING_PASSWORD}" ]; then
18+
errors+=("The BRAND_DEV_SONATYPE_GPG_SIGNING_PASSWORD secret has not been set. Please set it in either this repository's secrets or your organization secrets")
19+
fi
20+
21+
lenErrors=${#errors[@]}
22+
23+
if [[ lenErrors -gt 0 ]]; then
24+
echo -e "Found the following errors in the release environment:\n"
25+
26+
for error in "${errors[@]}"; do
27+
echo -e "- $error\n"
28+
done
29+
30+
exit 1
31+
fi
32+
33+
echo "The environment is ready to push releases!"

brand-dev-java-client-okhttp/src/main/kotlin/com/configure_me_branddev/api/client/okhttp/BrandDevOkHttpClient.kt renamed to brand-dev-java-client-okhttp/src/main/kotlin/com/branddev/api/client/okhttp/BrandDevOkHttpClient.kt

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
// File generated from our OpenAPI spec by Stainless.
22

3-
package com.configure_me_branddev.api.client.okhttp
4-
5-
import com.configure_me_branddev.api.client.BrandDevClient
6-
import com.configure_me_branddev.api.client.BrandDevClientImpl
7-
import com.configure_me_branddev.api.core.ClientOptions
8-
import com.configure_me_branddev.api.core.Timeout
9-
import com.configure_me_branddev.api.core.http.Headers
10-
import com.configure_me_branddev.api.core.http.QueryParams
3+
package com.branddev.api.client.okhttp
4+
5+
import com.branddev.api.client.BrandDevClient
6+
import com.branddev.api.client.BrandDevClientImpl
7+
import com.branddev.api.core.ClientOptions
8+
import com.branddev.api.core.Timeout
9+
import com.branddev.api.core.http.Headers
10+
import com.branddev.api.core.http.QueryParams
1111
import com.fasterxml.jackson.databind.json.JsonMapper
1212
import java.net.Proxy
1313
import java.time.Clock

brand-dev-java-client-okhttp/src/main/kotlin/com/configure_me_branddev/api/client/okhttp/BrandDevOkHttpClientAsync.kt renamed to brand-dev-java-client-okhttp/src/main/kotlin/com/branddev/api/client/okhttp/BrandDevOkHttpClientAsync.kt

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
// File generated from our OpenAPI spec by Stainless.
22

3-
package com.configure_me_branddev.api.client.okhttp
4-
5-
import com.configure_me_branddev.api.client.BrandDevClientAsync
6-
import com.configure_me_branddev.api.client.BrandDevClientAsyncImpl
7-
import com.configure_me_branddev.api.core.ClientOptions
8-
import com.configure_me_branddev.api.core.Timeout
9-
import com.configure_me_branddev.api.core.http.Headers
10-
import com.configure_me_branddev.api.core.http.QueryParams
3+
package com.branddev.api.client.okhttp
4+
5+
import com.branddev.api.client.BrandDevClientAsync
6+
import com.branddev.api.client.BrandDevClientAsyncImpl
7+
import com.branddev.api.core.ClientOptions
8+
import com.branddev.api.core.Timeout
9+
import com.branddev.api.core.http.Headers
10+
import com.branddev.api.core.http.QueryParams
1111
import com.fasterxml.jackson.databind.json.JsonMapper
1212
import java.net.Proxy
1313
import java.time.Clock

brand-dev-java-client-okhttp/src/main/kotlin/com/configure_me_branddev/api/client/okhttp/OkHttpClient.kt renamed to brand-dev-java-client-okhttp/src/main/kotlin/com/branddev/api/client/okhttp/OkHttpClient.kt

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
1-
package com.configure_me_branddev.api.client.okhttp
2-
3-
import com.configure_me_branddev.api.core.RequestOptions
4-
import com.configure_me_branddev.api.core.Timeout
5-
import com.configure_me_branddev.api.core.checkRequired
6-
import com.configure_me_branddev.api.core.http.Headers
7-
import com.configure_me_branddev.api.core.http.HttpClient
8-
import com.configure_me_branddev.api.core.http.HttpMethod
9-
import com.configure_me_branddev.api.core.http.HttpRequest
10-
import com.configure_me_branddev.api.core.http.HttpRequestBody
11-
import com.configure_me_branddev.api.core.http.HttpResponse
12-
import com.configure_me_branddev.api.errors.BrandDevIoException
1+
package com.branddev.api.client.okhttp
2+
3+
import com.branddev.api.core.RequestOptions
4+
import com.branddev.api.core.Timeout
5+
import com.branddev.api.core.checkRequired
6+
import com.branddev.api.core.http.Headers
7+
import com.branddev.api.core.http.HttpClient
8+
import com.branddev.api.core.http.HttpMethod
9+
import com.branddev.api.core.http.HttpRequest
10+
import com.branddev.api.core.http.HttpRequestBody
11+
import com.branddev.api.core.http.HttpResponse
12+
import com.branddev.api.errors.BrandDevIoException
1313
import java.io.IOException
1414
import java.io.InputStream
1515
import java.net.Proxy

0 commit comments

Comments
 (0)