Skip to content

Commit 3cc0761

Browse files
authored
Merge pull request #1 from ScrapeGraphAI/release-please--branches--main--changes--next
release: 0.0.2
2 parents 32b662b + d1f1e2f commit 3cc0761

File tree

11 files changed

+202
-12
lines changed

11 files changed

+202
-12
lines changed
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/ScrapeGraphAI/scrapegraphai-java/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@v4
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.SCRAPEGRAPHAI_SONATYPE_USERNAME || secrets.SONATYPE_USERNAME }}
39+
SONATYPE_PASSWORD: ${{ secrets.SCRAPEGRAPHAI_SONATYPE_PASSWORD || secrets.SONATYPE_PASSWORD }}
40+
GPG_SIGNING_KEY: ${{ secrets.SCRAPEGRAPHAI_SONATYPE_GPG_SIGNING_KEY || secrets.GPG_SIGNING_KEY }}
41+
GPG_SIGNING_PASSWORD: ${{ secrets.SCRAPEGRAPHAI_SONATYPE_GPG_SIGNING_PASSWORD || secrets.GPG_SIGNING_PASSWORD }}

.github/workflows/release-doctor.yml

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 == 'ScrapeGraphAI/scrapegraphai-java' && (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.SCRAPEGRAPHAI_SONATYPE_USERNAME || secrets.SONATYPE_USERNAME }}
22+
SONATYPE_PASSWORD: ${{ secrets.SCRAPEGRAPHAI_SONATYPE_PASSWORD || secrets.SONATYPE_PASSWORD }}
23+
GPG_SIGNING_KEY: ${{ secrets.SCRAPEGRAPHAI_SONATYPE_GPG_SIGNING_KEY || secrets.GPG_SIGNING_KEY }}
24+
GPG_SIGNING_PASSWORD: ${{ secrets.SCRAPEGRAPHAI_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.0.2"
3+
}

.stats.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 15
22
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/scrapegraphai%2Fscrapegraphai-969ebada41127057e4cda129b2e7206224743b5c7fd33aa8ae062ff71b775ac9.yml
33
openapi_spec_hash: 2b2c2c684e6f6885398efca5f2b1f854
4-
config_hash: 30d69c79e34a1ea6a0405573ce30d927
4+
config_hash: 6889576ba0fdc14f2c71cea09a60a0f6

CHANGELOG.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# Changelog
2+
3+
## 0.0.2 (2025-08-12)
4+
5+
Full Changelog: [v0.0.1...v0.0.2](https://github.com/ScrapeGraphAI/scrapegraphai-java/compare/v0.0.1...v0.0.2)
6+
7+
### Chores
8+
9+
* configure new SDK language ([3a763d6](https://github.com/ScrapeGraphAI/scrapegraphai-java/commit/3a763d63f42987df76be6e3c4c7d497998aff96c))
10+
* update SDK settings ([ee35917](https://github.com/ScrapeGraphAI/scrapegraphai-java/commit/ee359171216d97c03cc2ff7dc038db1931eb5f68))

README.md

Lines changed: 18 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,30 @@
11
# Scrapegraphai Java API Library
22

3-
[![Maven Central](https://img.shields.io/maven-central/v/com.scrapegraphai.api/scrapegraphai-java)](https://central.sonatype.com/artifact/com.scrapegraphai.api/scrapegraphai-java/0.0.1)
4-
[![javadoc](https://javadoc.io/badge2/com.scrapegraphai.api/scrapegraphai-java/0.0.1/javadoc.svg)](https://javadoc.io/doc/com.scrapegraphai.api/scrapegraphai-java/0.0.1)
3+
<!-- x-release-please-start-version -->
4+
5+
[![Maven Central](https://img.shields.io/maven-central/v/com.scrapegraphai.api/scrapegraphai-java)](https://central.sonatype.com/artifact/com.scrapegraphai.api/scrapegraphai-java/0.0.2)
6+
[![javadoc](https://javadoc.io/badge2/com.scrapegraphai.api/scrapegraphai-java/0.0.2/javadoc.svg)](https://javadoc.io/doc/com.scrapegraphai.api/scrapegraphai-java/0.0.2)
7+
8+
<!-- x-release-please-end -->
59

610
The Scrapegraphai Java SDK provides convenient access to the [Scrapegraphai REST API](https://scrapegraphai.com) from applications written in Java.
711

812
It is generated with [Stainless](https://www.stainless.com/).
913

10-
The REST API documentation can be found on [scrapegraphai.com](https://scrapegraphai.com). Javadocs are available on [javadoc.io](https://javadoc.io/doc/com.scrapegraphai.api/scrapegraphai-java/0.0.1).
14+
<!-- x-release-please-start-version -->
15+
16+
The REST API documentation can be found on [scrapegraphai.com](https://scrapegraphai.com). Javadocs are available on [javadoc.io](https://javadoc.io/doc/com.scrapegraphai.api/scrapegraphai-java/0.0.2).
17+
18+
<!-- x-release-please-end -->
1119

1220
## Installation
1321

22+
<!-- x-release-please-start-version -->
23+
1424
### Gradle
1525

1626
```kotlin
17-
implementation("com.scrapegraphai.api:scrapegraphai-java:0.0.1")
27+
implementation("com.scrapegraphai.api:scrapegraphai-java:0.0.2")
1828
```
1929

2030
### Maven
@@ -23,10 +33,12 @@ implementation("com.scrapegraphai.api:scrapegraphai-java:0.0.1")
2333
<dependency>
2434
<groupId>com.scrapegraphai.api</groupId>
2535
<artifactId>scrapegraphai-java</artifactId>
26-
<version>0.0.1</version>
36+
<version>0.0.2</version>
2737
</dependency>
2838
```
2939

40+
<!-- x-release-please-end -->
41+
3042
## Requirements
3143

3244
This library requires Java 8 or later.
@@ -631,4 +643,4 @@ This package generally follows [SemVer](https://semver.org/spec/v2.0.0.html) con
631643

632644
We take backwards-compatibility seriously and work hard to ensure you can rely on a smooth upgrade experience.
633645

634-
We are keen for your feedback; please open an [issue](https://www.github.com/stainless-sdks/scrapegraphai-java/issues) with questions, bugs, or suggestions.
646+
We are keen for your feedback; please open an [issue](https://www.github.com/ScrapeGraphAI/scrapegraphai-java/issues) with questions, bugs, or suggestions.

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 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 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 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 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!"

build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ repositories {
99

1010
allprojects {
1111
group = "com.scrapegraphai.api"
12-
version = "0.0.1"
12+
version = "0.0.2" // x-release-please-version
1313
}
1414

1515
subprojects {

buildSrc/src/main/kotlin/scrapegraphai.publish.gradle.kts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,9 @@ configure<PublishingExtension> {
2626
}
2727

2828
scm {
29-
connection.set("scm:git:git://github.com/stainless-sdks/scrapegraphai-java.git")
30-
developerConnection.set("scm:git:git://github.com/stainless-sdks/scrapegraphai-java.git")
31-
url.set("https://github.com/stainless-sdks/scrapegraphai-java")
29+
connection.set("scm:git:git://github.com/ScrapeGraphAI/scrapegraphai-java.git")
30+
developerConnection.set("scm:git:git://github.com/ScrapeGraphAI/scrapegraphai-java.git")
31+
url.set("https://github.com/ScrapeGraphAI/scrapegraphai-java")
3232
}
3333

3434
versionMapping {

release-please-config.json

Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
{
2+
"packages": {
3+
".": {}
4+
},
5+
"$schema": "https://raw.githubusercontent.com/stainless-api/release-please/main/schemas/config.json",
6+
"include-v-in-tag": true,
7+
"include-component-in-tag": false,
8+
"versioning": "prerelease",
9+
"prerelease": true,
10+
"bump-minor-pre-major": true,
11+
"bump-patch-for-minor-pre-major": false,
12+
"pull-request-header": "Automated Release PR",
13+
"pull-request-title-pattern": "release: ${version}",
14+
"changelog-sections": [
15+
{
16+
"type": "feat",
17+
"section": "Features"
18+
},
19+
{
20+
"type": "fix",
21+
"section": "Bug Fixes"
22+
},
23+
{
24+
"type": "perf",
25+
"section": "Performance Improvements"
26+
},
27+
{
28+
"type": "revert",
29+
"section": "Reverts"
30+
},
31+
{
32+
"type": "chore",
33+
"section": "Chores"
34+
},
35+
{
36+
"type": "docs",
37+
"section": "Documentation"
38+
},
39+
{
40+
"type": "style",
41+
"section": "Styles"
42+
},
43+
{
44+
"type": "refactor",
45+
"section": "Refactors"
46+
},
47+
{
48+
"type": "test",
49+
"section": "Tests",
50+
"hidden": true
51+
},
52+
{
53+
"type": "build",
54+
"section": "Build System"
55+
},
56+
{
57+
"type": "ci",
58+
"section": "Continuous Integration",
59+
"hidden": true
60+
}
61+
],
62+
"release-type": "simple",
63+
"extra-files": [
64+
"README.md",
65+
"build.gradle.kts"
66+
]
67+
}

0 commit comments

Comments
 (0)