Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
".": "0.3.2"
".": "0.3.3"
}
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# Changelog

## 0.3.3 (2026-01-16)

Full Changelog: [v0.3.2...v0.3.3](https://github.com/openlayer-ai/openlayer-java/compare/v0.3.2...v0.3.3)

### Chores

* **internal:** clean up maven repo artifact script and add html documentation to repo root ([9ea4d75](https://github.com/openlayer-ai/openlayer-java/commit/9ea4d75f3d2eeb073573f8ba009db50116697acb))

## 0.3.2 (2026-01-13)

Full Changelog: [v0.3.1...v0.3.2](https://github.com/openlayer-ai/openlayer-java/compare/v0.3.1...v0.3.2)
Expand Down
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

<!-- x-release-please-start-version -->

[![Maven Central](https://img.shields.io/maven-central/v/com.openlayer.api/openlayer-java)](https://central.sonatype.com/artifact/com.openlayer.api/openlayer-java/0.3.2)
[![javadoc](https://javadoc.io/badge2/com.openlayer.api/openlayer-java/0.3.2/javadoc.svg)](https://javadoc.io/doc/com.openlayer.api/openlayer-java/0.3.2)
[![Maven Central](https://img.shields.io/maven-central/v/com.openlayer.api/openlayer-java)](https://central.sonatype.com/artifact/com.openlayer.api/openlayer-java/0.3.3)
[![javadoc](https://javadoc.io/badge2/com.openlayer.api/openlayer-java/0.3.3/javadoc.svg)](https://javadoc.io/doc/com.openlayer.api/openlayer-java/0.3.3)

<!-- x-release-please-end -->

Expand All @@ -13,7 +13,7 @@ It is generated with [Stainless](https://www.stainless.com/).

<!-- x-release-please-start-version -->

The REST API documentation can be found on [openlayer.com](https://openlayer.com/docs/api-reference/rest/overview). Javadocs are available on [javadoc.io](https://javadoc.io/doc/com.openlayer.api/openlayer-java/0.3.2).
The REST API documentation can be found on [openlayer.com](https://openlayer.com/docs/api-reference/rest/overview). Javadocs are available on [javadoc.io](https://javadoc.io/doc/com.openlayer.api/openlayer-java/0.3.3).

<!-- x-release-please-end -->

Expand All @@ -24,7 +24,7 @@ The REST API documentation can be found on [openlayer.com](https://openlayer.com
### Gradle

```kotlin
implementation("com.openlayer.api:openlayer-java:0.3.2")
implementation("com.openlayer.api:openlayer-java:0.3.3")
```

### Maven
Expand All @@ -33,7 +33,7 @@ implementation("com.openlayer.api:openlayer-java:0.3.2")
<dependency>
<groupId>com.openlayer.api</groupId>
<artifactId>openlayer-java</artifactId>
<version>0.3.2</version>
<version>0.3.3</version>
</dependency>
```

Expand Down
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ repositories {

allprojects {
group = "com.openlayer.api"
version = "0.3.2" // x-release-please-version
version = "0.3.3" // x-release-please-version
}

subprojects {
Expand Down
44 changes: 41 additions & 3 deletions scripts/upload-artifacts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ GREEN='\033[32m'
RED='\033[31m'
NC='\033[0m' # No Color

MAVEN_REPO_PATH="./build/local-maven-repo"

log_error() {
local msg="$1"
local headers="$2"
Expand All @@ -24,7 +26,7 @@ upload_file() {

if [ -f "$file_name" ]; then
echo -e "${GREEN}Processing file: $file_name${NC}"
pkg_file_name="mvn${file_name#./build/local-maven-repo}"
pkg_file_name="mvn${file_name#"${MAVEN_REPO_PATH}"}"

# Get signed URL for uploading artifact file
signed_url_response=$(curl -X POST -G "$URL" \
Expand All @@ -47,6 +49,7 @@ upload_file() {
md5|sha1|sha256|sha512) content_type="text/plain" ;;
module) content_type="application/json" ;;
pom|xml) content_type="application/xml" ;;
html) content_type="text/html" ;;
*) content_type="application/octet-stream" ;;
esac

Expand Down Expand Up @@ -81,16 +84,51 @@ walk_tree() {
done
}

generate_instructions() {
cat << EOF > "$MAVEN_REPO_PATH/index.html"
<!DOCTYPE html>
<html>
<head>
<title>Maven Repo</title>
</head>
<body>
<h1>Stainless SDK Maven Repository</h1>
<p>This is the Maven repository for your Stainless Java SDK build.</p>

<h1>Directions</h1>
<p>To use the uploaded Maven repository, add the following to your project's <code>pom.xml</code>:</p>
<pre>&lt;repositories&gt;
&lt;repository&gt;
&lt;id&gt;stainless-sdk-repo&lt;/id&gt;
&lt;url&gt;https://pkg.stainless.com/s/${PROJECT}/${SHA}/mvn&lt;/url&gt;
&lt;/repository&gt;
&lt;/repositories&gt;</pre>

<p>If you're using Gradle, add the following to your <code>build.gradle</code> file:</p>
<pre>repositories {
maven {
url 'https://pkg.stainless.com/s/${PROJECT}/${SHA}/mvn'
}
}</pre>
</body>
</html>
EOF
upload_file "${MAVEN_REPO_PATH}/index.html"

echo "Configure maven or gradle to use the repo located at 'https://pkg.stainless.com/s/${PROJECT}/${SHA}/mvn'"
echo "For more details, see the directions in https://pkg.stainless.com/s/${PROJECT}/${SHA}/mvn/index.html"
}

cd "$(dirname "$0")/.."

echo "::group::Creating local Maven content"
./gradlew publishMavenPublicationToLocalFileSystemRepository -PpublishLocal
echo "::endgroup::"

echo "::group::Uploading to pkg.stainless.com"
walk_tree "./build/local-maven-repo"
walk_tree "$MAVEN_REPO_PATH"
echo "::endgroup::"

echo "::group::Generating instructions"
echo "Configure maven or gradle to use the repo located at 'https://pkg.stainless.com/s/${PROJECT}/${SHA}/mvn'"
generate_instructions
echo "::endgroup::"