diff --git a/.github/workflows/publish-sonatype.yml b/.github/workflows/publish-sonatype.yml
new file mode 100644
index 0000000..2357f84
--- /dev/null
+++ b/.github/workflows/publish-sonatype.yml
@@ -0,0 +1,41 @@
+# This workflow is triggered when a GitHub release is created.
+# It can also be run manually to re-publish to Sonatype in case it failed for some reason.
+# You can run this workflow by navigating to https://www.github.com/ScrapeGraphAI/scrapegraphai-java/actions/workflows/publish-sonatype.yml
+name: Publish Sonatype
+on:
+ workflow_dispatch:
+
+ release:
+ types: [published]
+
+jobs:
+ publish:
+ name: publish
+ runs-on: ubuntu-latest
+
+ steps:
+ - uses: actions/checkout@v4
+
+ - name: Set up Java
+ uses: actions/setup-java@v4
+ with:
+ distribution: temurin
+ java-version: |
+ 8
+ 17
+ cache: gradle
+
+ - name: Set up Gradle
+ uses: gradle/gradle-build-action@v2
+
+ - name: Publish to Sonatype
+ run: |-
+ export -- GPG_SIGNING_KEY_ID
+ printenv -- GPG_SIGNING_KEY | gpg --batch --passphrase-fd 3 --import 3<<< "$GPG_SIGNING_PASSWORD"
+ GPG_SIGNING_KEY_ID="$(gpg --with-colons --list-keys | awk -F : -- '/^pub:/ { getline; print "0x" substr($10, length($10) - 7) }')"
+ ./gradlew publish --no-configuration-cache
+ env:
+ SONATYPE_USERNAME: ${{ secrets.SCRAPEGRAPHAI_SONATYPE_USERNAME || secrets.SONATYPE_USERNAME }}
+ SONATYPE_PASSWORD: ${{ secrets.SCRAPEGRAPHAI_SONATYPE_PASSWORD || secrets.SONATYPE_PASSWORD }}
+ GPG_SIGNING_KEY: ${{ secrets.SCRAPEGRAPHAI_SONATYPE_GPG_SIGNING_KEY || secrets.GPG_SIGNING_KEY }}
+ GPG_SIGNING_PASSWORD: ${{ secrets.SCRAPEGRAPHAI_SONATYPE_GPG_SIGNING_PASSWORD || secrets.GPG_SIGNING_PASSWORD }}
\ No newline at end of file
diff --git a/.github/workflows/release-doctor.yml b/.github/workflows/release-doctor.yml
new file mode 100644
index 0000000..5e3da4a
--- /dev/null
+++ b/.github/workflows/release-doctor.yml
@@ -0,0 +1,24 @@
+name: Release Doctor
+on:
+ pull_request:
+ branches:
+ - main
+ workflow_dispatch:
+
+jobs:
+ release_doctor:
+ name: release doctor
+ runs-on: ubuntu-latest
+ 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')
+
+ steps:
+ - uses: actions/checkout@v4
+
+ - name: Check release environment
+ run: |
+ bash ./bin/check-release-environment
+ env:
+ SONATYPE_USERNAME: ${{ secrets.SCRAPEGRAPHAI_SONATYPE_USERNAME || secrets.SONATYPE_USERNAME }}
+ SONATYPE_PASSWORD: ${{ secrets.SCRAPEGRAPHAI_SONATYPE_PASSWORD || secrets.SONATYPE_PASSWORD }}
+ GPG_SIGNING_KEY: ${{ secrets.SCRAPEGRAPHAI_SONATYPE_GPG_SIGNING_KEY || secrets.GPG_SIGNING_KEY }}
+ GPG_SIGNING_PASSWORD: ${{ secrets.SCRAPEGRAPHAI_SONATYPE_GPG_SIGNING_PASSWORD || secrets.GPG_SIGNING_PASSWORD }}
diff --git a/.release-please-manifest.json b/.release-please-manifest.json
new file mode 100644
index 0000000..c7159c1
--- /dev/null
+++ b/.release-please-manifest.json
@@ -0,0 +1,3 @@
+{
+ ".": "0.0.2"
+}
\ No newline at end of file
diff --git a/.stats.yml b/.stats.yml
index 636c6f9..561b1cc 100644
--- a/.stats.yml
+++ b/.stats.yml
@@ -1,4 +1,4 @@
configured_endpoints: 15
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/scrapegraphai%2Fscrapegraphai-969ebada41127057e4cda129b2e7206224743b5c7fd33aa8ae062ff71b775ac9.yml
openapi_spec_hash: 2b2c2c684e6f6885398efca5f2b1f854
-config_hash: 30d69c79e34a1ea6a0405573ce30d927
+config_hash: 6889576ba0fdc14f2c71cea09a60a0f6
diff --git a/CHANGELOG.md b/CHANGELOG.md
new file mode 100644
index 0000000..aaf888d
--- /dev/null
+++ b/CHANGELOG.md
@@ -0,0 +1,10 @@
+# Changelog
+
+## 0.0.2 (2025-08-12)
+
+Full Changelog: [v0.0.1...v0.0.2](https://github.com/ScrapeGraphAI/scrapegraphai-java/compare/v0.0.1...v0.0.2)
+
+### Chores
+
+* configure new SDK language ([3a763d6](https://github.com/ScrapeGraphAI/scrapegraphai-java/commit/3a763d63f42987df76be6e3c4c7d497998aff96c))
+* update SDK settings ([ee35917](https://github.com/ScrapeGraphAI/scrapegraphai-java/commit/ee359171216d97c03cc2ff7dc038db1931eb5f68))
diff --git a/README.md b/README.md
index 2ae3cf9..dd56c02 100644
--- a/README.md
+++ b/README.md
@@ -1,20 +1,30 @@
# Scrapegraphai Java API Library
-[](https://central.sonatype.com/artifact/com.scrapegraphai.api/scrapegraphai-java/0.0.1)
-[](https://javadoc.io/doc/com.scrapegraphai.api/scrapegraphai-java/0.0.1)
+
+
+[](https://central.sonatype.com/artifact/com.scrapegraphai.api/scrapegraphai-java/0.0.2)
+[](https://javadoc.io/doc/com.scrapegraphai.api/scrapegraphai-java/0.0.2)
+
+
The Scrapegraphai Java SDK provides convenient access to the [Scrapegraphai REST API](https://scrapegraphai.com) from applications written in Java.
It is generated with [Stainless](https://www.stainless.com/).
-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).
+
+
+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).
+
+
## Installation
+
+
### Gradle
```kotlin
-implementation("com.scrapegraphai.api:scrapegraphai-java:0.0.1")
+implementation("com.scrapegraphai.api:scrapegraphai-java:0.0.2")
```
### Maven
@@ -23,10 +33,12 @@ implementation("com.scrapegraphai.api:scrapegraphai-java:0.0.1")
com.scrapegraphai.api
scrapegraphai-java
- 0.0.1
+ 0.0.2
```
+
+
## Requirements
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
We take backwards-compatibility seriously and work hard to ensure you can rely on a smooth upgrade experience.
-We are keen for your feedback; please open an [issue](https://www.github.com/stainless-sdks/scrapegraphai-java/issues) with questions, bugs, or suggestions.
+We are keen for your feedback; please open an [issue](https://www.github.com/ScrapeGraphAI/scrapegraphai-java/issues) with questions, bugs, or suggestions.
diff --git a/bin/check-release-environment b/bin/check-release-environment
new file mode 100644
index 0000000..3a6a7b4
--- /dev/null
+++ b/bin/check-release-environment
@@ -0,0 +1,33 @@
+#!/usr/bin/env bash
+
+errors=()
+
+if [ -z "${SONATYPE_USERNAME}" ]; then
+ errors+=("The SONATYPE_USERNAME secret has not been set. Please set it in either this repository's secrets or your organization secrets")
+fi
+
+if [ -z "${SONATYPE_PASSWORD}" ]; then
+ errors+=("The SONATYPE_PASSWORD secret has not been set. Please set it in either this repository's secrets or your organization secrets")
+fi
+
+if [ -z "${GPG_SIGNING_KEY}" ]; then
+ errors+=("The GPG_SIGNING_KEY secret has not been set. Please set it in either this repository's secrets or your organization secrets")
+fi
+
+if [ -z "${GPG_SIGNING_PASSWORD}" ]; then
+ errors+=("The GPG_SIGNING_PASSWORD secret has not been set. Please set it in either this repository's secrets or your organization secrets")
+fi
+
+lenErrors=${#errors[@]}
+
+if [[ lenErrors -gt 0 ]]; then
+ echo -e "Found the following errors in the release environment:\n"
+
+ for error in "${errors[@]}"; do
+ echo -e "- $error\n"
+ done
+
+ exit 1
+fi
+
+echo "The environment is ready to push releases!"
diff --git a/build.gradle.kts b/build.gradle.kts
index 8607a16..365828f 100644
--- a/build.gradle.kts
+++ b/build.gradle.kts
@@ -9,7 +9,7 @@ repositories {
allprojects {
group = "com.scrapegraphai.api"
- version = "0.0.1"
+ version = "0.0.2" // x-release-please-version
}
subprojects {
diff --git a/buildSrc/src/main/kotlin/scrapegraphai.publish.gradle.kts b/buildSrc/src/main/kotlin/scrapegraphai.publish.gradle.kts
index 7369982..47355ed 100644
--- a/buildSrc/src/main/kotlin/scrapegraphai.publish.gradle.kts
+++ b/buildSrc/src/main/kotlin/scrapegraphai.publish.gradle.kts
@@ -26,9 +26,9 @@ configure {
}
scm {
- connection.set("scm:git:git://github.com/stainless-sdks/scrapegraphai-java.git")
- developerConnection.set("scm:git:git://github.com/stainless-sdks/scrapegraphai-java.git")
- url.set("https://github.com/stainless-sdks/scrapegraphai-java")
+ connection.set("scm:git:git://github.com/ScrapeGraphAI/scrapegraphai-java.git")
+ developerConnection.set("scm:git:git://github.com/ScrapeGraphAI/scrapegraphai-java.git")
+ url.set("https://github.com/ScrapeGraphAI/scrapegraphai-java")
}
versionMapping {
diff --git a/release-please-config.json b/release-please-config.json
new file mode 100644
index 0000000..8f98719
--- /dev/null
+++ b/release-please-config.json
@@ -0,0 +1,67 @@
+{
+ "packages": {
+ ".": {}
+ },
+ "$schema": "https://raw.githubusercontent.com/stainless-api/release-please/main/schemas/config.json",
+ "include-v-in-tag": true,
+ "include-component-in-tag": false,
+ "versioning": "prerelease",
+ "prerelease": true,
+ "bump-minor-pre-major": true,
+ "bump-patch-for-minor-pre-major": false,
+ "pull-request-header": "Automated Release PR",
+ "pull-request-title-pattern": "release: ${version}",
+ "changelog-sections": [
+ {
+ "type": "feat",
+ "section": "Features"
+ },
+ {
+ "type": "fix",
+ "section": "Bug Fixes"
+ },
+ {
+ "type": "perf",
+ "section": "Performance Improvements"
+ },
+ {
+ "type": "revert",
+ "section": "Reverts"
+ },
+ {
+ "type": "chore",
+ "section": "Chores"
+ },
+ {
+ "type": "docs",
+ "section": "Documentation"
+ },
+ {
+ "type": "style",
+ "section": "Styles"
+ },
+ {
+ "type": "refactor",
+ "section": "Refactors"
+ },
+ {
+ "type": "test",
+ "section": "Tests",
+ "hidden": true
+ },
+ {
+ "type": "build",
+ "section": "Build System"
+ },
+ {
+ "type": "ci",
+ "section": "Continuous Integration",
+ "hidden": true
+ }
+ ],
+ "release-type": "simple",
+ "extra-files": [
+ "README.md",
+ "build.gradle.kts"
+ ]
+}
\ No newline at end of file
diff --git a/scrapegraphai-java-core/src/main/kotlin/com/scrapegraphai/api/core/Check.kt b/scrapegraphai-java-core/src/main/kotlin/com/scrapegraphai/api/core/Check.kt
index 17d5f91..ef786b0 100644
--- a/scrapegraphai-java-core/src/main/kotlin/com/scrapegraphai/api/core/Check.kt
+++ b/scrapegraphai-java-core/src/main/kotlin/com/scrapegraphai/api/core/Check.kt
@@ -77,7 +77,7 @@ This can happen if you are either:
Double-check that you are depending on compatible Jackson versions.
-See https://www.github.com/stainless-sdks/scrapegraphai-java#jackson for more information.
+See https://www.github.com/ScrapeGraphAI/scrapegraphai-java#jackson for more information.
"""
.trimIndent()
}