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.1.0-alpha.47"
".": "0.1.0-alpha.48"
}
13 changes: 13 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,18 @@
# Changelog

## 0.1.0-alpha.48 (2026-01-22)

Full Changelog: [v0.1.0-alpha.47...v0.1.0-alpha.48](https://github.com/OneBusAway/java-sdk/compare/v0.1.0-alpha.47...v0.1.0-alpha.48)

### Features

* **client:** send `X-Stainless-Kotlin-Version` header ([acd3860](https://github.com/OneBusAway/java-sdk/commit/acd3860b3b99dffd71f1e9a8f2e554f0b984aaca))


### Chores

* **internal:** update maven repo doc to include authentication ([647f6b5](https://github.com/OneBusAway/java-sdk/commit/647f6b54a992e0e9f131420c3c7ca9168a85b33b))

## 0.1.0-alpha.47 (2026-01-17)

Full Changelog: [v0.1.0-alpha.46...v0.1.0-alpha.47](https://github.com/OneBusAway/java-sdk/compare/v0.1.0-alpha.46...v0.1.0-alpha.47)
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/org.onebusaway/onebusaway-sdk-java)](https://central.sonatype.com/artifact/org.onebusaway/onebusaway-sdk-java/0.1.0-alpha.47)
[![javadoc](https://javadoc.io/badge2/org.onebusaway/onebusaway-sdk-java/0.1.0-alpha.47/javadoc.svg)](https://javadoc.io/doc/org.onebusaway/onebusaway-sdk-java/0.1.0-alpha.47)
[![Maven Central](https://img.shields.io/maven-central/v/org.onebusaway/onebusaway-sdk-java)](https://central.sonatype.com/artifact/org.onebusaway/onebusaway-sdk-java/0.1.0-alpha.48)
[![javadoc](https://javadoc.io/badge2/org.onebusaway/onebusaway-sdk-java/0.1.0-alpha.48/javadoc.svg)](https://javadoc.io/doc/org.onebusaway/onebusaway-sdk-java/0.1.0-alpha.48)

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

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

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

The REST API documentation can be found on [developer.onebusaway.org](https://developer.onebusaway.org). Javadocs are available on [javadoc.io](https://javadoc.io/doc/org.onebusaway/onebusaway-sdk-java/0.1.0-alpha.47).
The REST API documentation can be found on [developer.onebusaway.org](https://developer.onebusaway.org). Javadocs are available on [javadoc.io](https://javadoc.io/doc/org.onebusaway/onebusaway-sdk-java/0.1.0-alpha.48).

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

Expand All @@ -26,7 +26,7 @@ The REST API documentation can be found on [developer.onebusaway.org](https://de
### Gradle

```kotlin
implementation("org.onebusaway:onebusaway-sdk-java:0.1.0-alpha.47")
implementation("org.onebusaway:onebusaway-sdk-java:0.1.0-alpha.48")
```

### Maven
Expand All @@ -35,7 +35,7 @@ implementation("org.onebusaway:onebusaway-sdk-java:0.1.0-alpha.47")
<dependency>
<groupId>org.onebusaway</groupId>
<artifactId>onebusaway-sdk-java</artifactId>
<version>0.1.0-alpha.47</version>
<version>0.1.0-alpha.48</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 = "org.onebusaway"
version = "0.1.0-alpha.47" // x-release-please-version
version = "0.1.0-alpha.48" // x-release-please-version
}

subprojects {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -402,6 +402,7 @@ private constructor(
headers.put("X-Stainless-Package-Version", getPackageVersion())
headers.put("X-Stainless-Runtime", "JRE")
headers.put("X-Stainless-Runtime-Version", getJavaVersion())
headers.put("X-Stainless-Kotlin-Version", KotlinVersion.CURRENT.toString())
apiKey.let {
if (!it.isEmpty()) {
queryParams.put("key", it)
Expand Down
64 changes: 59 additions & 5 deletions scripts/upload-artifacts
Original file line number Diff line number Diff line change
Expand Up @@ -96,23 +96,77 @@ generate_instructions() {
<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>
<h2>Project configuration</h2>

<p>The details depend on whether you're using Maven or Gradle as your build tool.</p>

<h3>Maven</h3>

<p>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>

<h3>Gradle</h3>
<p>Add the following to your <code>build.gradle</code> file:</p>
<pre>repositories {
maven {
url "https://pkg.stainless.com/s/${PROJECT}/${SHA}/mvn"
}
}</pre>

<details>
<summary><h3 style="display:inline-block">Configuring authentication (if required)<h3></summary>

<p>Some accounts may require authentication to access the repository. If so, use the
following instructions, replacing <code>YOUR_STAINLESS_API_TOKEN</code> with your actual token.</p>

<h3>Maven with authentication</h3>

<p>First, ensure you have the following in your Maven <code>settings.xml</code> for repo authentication:</p>
<pre>&lt;servers&gt;
&lt;server&gt;
&lt;id&gt;stainless-sdk-repo&lt;/id&gt;
&lt;configuration&gt;
&lt;httpHeaders&gt;
&lt;property&gt;
&lt;name&gt;Authorization&lt;/name&gt;
&lt;value&gt;Bearer YOUR_STAINLESS_API_TOKEN&lt;/value&gt;
&lt;/property&gt;
&lt;/httpHeaders&gt;
&lt;/configuration&gt;
&lt;/server&gt;
&lt;/servers&gt;</pre>

<p>Then, 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>
<h3>Gradle with authentication</h3>
<p>Add the following to your <code>build.gradle</code> file:</p>
<pre>repositories {
maven {
url 'https://pkg.stainless.com/s/${PROJECT}/${SHA}/mvn'
url "https://pkg.stainless.com/s/${PROJECT}/${SHA}/mvn"
credentials(HttpHeaderCredentials) {
name = "Authorization"
value = "Bearer YOUR_STAINLESS_API_TOKEN"
}
authentication {
header(HttpHeaderAuthentication)
}
}
}</pre>
</details>

<p>Once you've added the repository, you can include dependencies from it as usual. See your
<h2>Using the repository</h2>
<p>Once you've configured the repository, you can include dependencies from it as usual. See your
<a href="${GITHUB_SERVER_URL}/${GITHUB_REPOSITORY}/blob/${GITHUB_SHA}/README.md">project README</a>
for more details.</p>
</body>
Expand Down