Skip to content

Commit 1c1f3ac

Browse files
Merge pull request #104 from OneBusAway/release-please--branches--main--changes--next
release: 0.1.0-alpha.48
2 parents c5193a9 + 77a63b1 commit 1c1f3ac

File tree

6 files changed

+80
-12
lines changed

6 files changed

+80
-12
lines changed

.release-please-manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
".": "0.1.0-alpha.47"
2+
".": "0.1.0-alpha.48"
33
}

CHANGELOG.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,18 @@
11
# Changelog
22

3+
## 0.1.0-alpha.48 (2026-01-22)
4+
5+
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)
6+
7+
### Features
8+
9+
* **client:** send `X-Stainless-Kotlin-Version` header ([acd3860](https://github.com/OneBusAway/java-sdk/commit/acd3860b3b99dffd71f1e9a8f2e554f0b984aaca))
10+
11+
12+
### Chores
13+
14+
* **internal:** update maven repo doc to include authentication ([647f6b5](https://github.com/OneBusAway/java-sdk/commit/647f6b54a992e0e9f131420c3c7ca9168a85b33b))
15+
316
## 0.1.0-alpha.47 (2026-01-17)
417

518
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)

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22

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

5-
[![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)
6-
[![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)
5+
[![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)
6+
[![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)
77

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

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

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

18-
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).
18+
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).
1919

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

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

2828
```kotlin
29-
implementation("org.onebusaway:onebusaway-sdk-java:0.1.0-alpha.47")
29+
implementation("org.onebusaway:onebusaway-sdk-java:0.1.0-alpha.48")
3030
```
3131

3232
### Maven
@@ -35,7 +35,7 @@ implementation("org.onebusaway:onebusaway-sdk-java:0.1.0-alpha.47")
3535
<dependency>
3636
<groupId>org.onebusaway</groupId>
3737
<artifactId>onebusaway-sdk-java</artifactId>
38-
<version>0.1.0-alpha.47</version>
38+
<version>0.1.0-alpha.48</version>
3939
</dependency>
4040
```
4141

build.gradle.kts

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

99
allprojects {
1010
group = "org.onebusaway"
11-
version = "0.1.0-alpha.47" // x-release-please-version
11+
version = "0.1.0-alpha.48" // x-release-please-version
1212
}
1313

1414
subprojects {

onebusaway-sdk-java-core/src/main/kotlin/org/onebusaway/core/ClientOptions.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -402,6 +402,7 @@ private constructor(
402402
headers.put("X-Stainless-Package-Version", getPackageVersion())
403403
headers.put("X-Stainless-Runtime", "JRE")
404404
headers.put("X-Stainless-Runtime-Version", getJavaVersion())
405+
headers.put("X-Stainless-Kotlin-Version", KotlinVersion.CURRENT.toString())
405406
apiKey.let {
406407
if (!it.isEmpty()) {
407408
queryParams.put("key", it)

scripts/upload-artifacts

Lines changed: 59 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -96,23 +96,77 @@ generate_instructions() {
9696
<h1>Stainless SDK Maven Repository</h1>
9797
<p>This is the Maven repository for your Stainless Java SDK build.</p>
9898
99-
<h1>Directions</h1>
100-
<p>To use the uploaded Maven repository, add the following to your project's <code>pom.xml</code>:</p>
99+
<h2>Project configuration</h2>
100+
101+
<p>The details depend on whether you're using Maven or Gradle as your build tool.</p>
102+
103+
<h3>Maven</h3>
104+
105+
<p>Add the following to your project's <code>pom.xml</code>:</p>
106+
<pre>&lt;repositories&gt;
107+
&lt;repository&gt;
108+
&lt;id&gt;stainless-sdk-repo&lt;/id&gt;
109+
&lt;url&gt;https://pkg.stainless.com/s/${PROJECT}/${SHA}/mvn&lt;/url&gt;
110+
&lt;/repository&gt;
111+
&lt;/repositories&gt;</pre>
112+
113+
<h3>Gradle</h3>
114+
<p>Add the following to your <code>build.gradle</code> file:</p>
115+
<pre>repositories {
116+
maven {
117+
url "https://pkg.stainless.com/s/${PROJECT}/${SHA}/mvn"
118+
}
119+
}</pre>
120+
121+
<details>
122+
<summary><h3 style="display:inline-block">Configuring authentication (if required)<h3></summary>
123+
124+
<p>Some accounts may require authentication to access the repository. If so, use the
125+
following instructions, replacing <code>YOUR_STAINLESS_API_TOKEN</code> with your actual token.</p>
126+
127+
<h3>Maven with authentication</h3>
128+
129+
<p>First, ensure you have the following in your Maven <code>settings.xml</code> for repo authentication:</p>
130+
<pre>&lt;servers&gt;
131+
&lt;server&gt;
132+
&lt;id&gt;stainless-sdk-repo&lt;/id&gt;
133+
&lt;configuration&gt;
134+
&lt;httpHeaders&gt;
135+
&lt;property&gt;
136+
&lt;name&gt;Authorization&lt;/name&gt;
137+
&lt;value&gt;Bearer YOUR_STAINLESS_API_TOKEN&lt;/value&gt;
138+
&lt;/property&gt;
139+
&lt;/httpHeaders&gt;
140+
&lt;/configuration&gt;
141+
&lt;/server&gt;
142+
&lt;/servers&gt;</pre>
143+
144+
<p>Then, add the following to your project's <code>pom.xml</code>:</p>
101145
<pre>&lt;repositories&gt;
102146
&lt;repository&gt;
103147
&lt;id&gt;stainless-sdk-repo&lt;/id&gt;
104148
&lt;url&gt;https://pkg.stainless.com/s/${PROJECT}/${SHA}/mvn&lt;/url&gt;
105149
&lt;/repository&gt;
106150
&lt;/repositories&gt;</pre>
107151
108-
<p>If you're using Gradle, add the following to your <code>build.gradle</code> file:</p>
152+
<h3>Gradle with authentication</h3>
153+
<p>Add the following to your <code>build.gradle</code> file:</p>
109154
<pre>repositories {
110155
maven {
111-
url 'https://pkg.stainless.com/s/${PROJECT}/${SHA}/mvn'
156+
url "https://pkg.stainless.com/s/${PROJECT}/${SHA}/mvn"
157+
credentials(HttpHeaderCredentials) {
158+
name = "Authorization"
159+
value = "Bearer YOUR_STAINLESS_API_TOKEN"
160+
}
161+
authentication {
162+
header(HttpHeaderAuthentication)
163+
}
112164
}
113165
}</pre>
166+
</details>
114167
115-
<p>Once you've added the repository, you can include dependencies from it as usual. See your
168+
<h2>Using the repository</h2>
169+
<p>Once you've configured the repository, you can include dependencies from it as usual. See your
116170
<a href="${GITHUB_SERVER_URL}/${GITHUB_REPOSITORY}/blob/${GITHUB_SHA}/README.md">project README</a>
117171
for more details.</p>
118172
</body>

0 commit comments

Comments
 (0)