File tree Expand file tree Collapse file tree 7 files changed +66
-8
lines changed Expand file tree Collapse file tree 7 files changed +66
-8
lines changed Original file line number Diff line number Diff line change 1
1
{
2
- "." : " 0.1.0-alpha.66 "
2
+ "." : " 0.1.0-alpha.67 "
3
3
}
Original file line number Diff line number Diff line change 1
1
# Changelog
2
2
3
+ ## 0.1.0-alpha.67 (2025-05-15)
4
+
5
+ Full Changelog: [ v0.1.0-alpha.66...v0.1.0-alpha.67] ( https://github.com/OneBusAway/kotlin-sdk/compare/v0.1.0-alpha.66...v0.1.0-alpha.67 )
6
+
7
+ ### Features
8
+
9
+ * generate and publish docs ([ #274 ] ( https://github.com/OneBusAway/kotlin-sdk/issues/274 ) ) ([ 4aecdbd] ( https://github.com/OneBusAway/kotlin-sdk/commit/4aecdbdb54266d24cae48500180c6e1903712645 ) )
10
+
11
+
12
+ ### Chores
13
+
14
+ * ** internal:** update java toolchain ([ ed72b2f] ( https://github.com/OneBusAway/kotlin-sdk/commit/ed72b2f4944d7ce9ce611d7e0b1830f8761f55bf ) )
15
+
3
16
## 0.1.0-alpha.66 (2025-03-07)
4
17
5
18
Full Changelog: [ v0.1.0-alpha.65...v0.1.0-alpha.66] ( https://github.com/OneBusAway/kotlin-sdk/compare/v0.1.0-alpha.65...v0.1.0-alpha.66 )
Original file line number Diff line number Diff line change 2
2
3
3
<!-- x-release-please-start-version -->
4
4
5
- [ ![ Maven Central] ( https://img.shields.io/maven-central/v/org.onebusaway/onebusaway-sdk-kotlin )] ( https://central.sonatype.com/artifact/org.onebusaway/onebusaway-sdk-kotlin/0.1.0-alpha.66 )
5
+ [ ![ Maven Central] ( https://img.shields.io/maven-central/v/org.onebusaway/onebusaway-sdk-kotlin )] ( https://central.sonatype.com/artifact/org.onebusaway/onebusaway-sdk-kotlin/0.1.0-alpha.67 )
6
+ [ ![ javadoc] ( https://javadoc.io/badge2/org.onebusaway/onebusaway-sdk-kotlin/0.1.0-alpha.67/javadoc.svg )] ( https://javadoc.io/doc/org.onebusaway/onebusaway-sdk-kotlin/0.1.0-alpha.67 )
6
7
7
8
<!-- x-release-please-end -->
8
9
@@ -12,7 +13,7 @@ The Onebusaway SDK Kotlin SDK is similar to the Onebusaway SDK Java SDK but with
12
13
13
14
It is generated with [ Stainless] ( https://www.stainless.com/ ) .
14
15
15
- The REST API documentation can be found on [ developer.onebusaway.org] ( https://developer.onebusaway.org ) .
16
+ The REST API documentation can be found on [ developer.onebusaway.org] ( https://developer.onebusaway.org ) . KDocs are also available on [ javadoc.io ] ( https://javadoc.io/doc/org.onebusaway/onebusaway-sdk-kotlin/0.1.0-alpha.65 ) .
16
17
17
18
## Installation
18
19
@@ -21,7 +22,7 @@ The REST API documentation can be found on [developer.onebusaway.org](https://de
21
22
### Gradle
22
23
23
24
``` kotlin
24
- implementation(" org.onebusaway:onebusaway-sdk-kotlin:0.1.0-alpha.66 " )
25
+ implementation(" org.onebusaway:onebusaway-sdk-kotlin:0.1.0-alpha.67 " )
25
26
```
26
27
27
28
### Maven
@@ -30,7 +31,7 @@ implementation("org.onebusaway:onebusaway-sdk-kotlin:0.1.0-alpha.66")
30
31
<dependency >
31
32
<groupId >org.onebusaway</groupId >
32
33
<artifactId >onebusaway-sdk-kotlin</artifactId >
33
- <version >0.1.0-alpha.66 </version >
34
+ <version >0.1.0-alpha.67 </version >
34
35
</dependency >
35
36
```
36
37
Original file line number Diff line number Diff line change 1
1
plugins {
2
- id(" io.github.gradle-nexus.publish-plugin" ) version " 1.1.0"
2
+ id(" org.jetbrains.dokka" ) version " 2.0.0"
3
+ }
4
+
5
+ repositories {
6
+ mavenCentral()
3
7
}
4
8
5
9
allprojects {
6
10
group = " org.onebusaway"
7
- version = " 0.1.0-alpha.66" // x-release-please-version
11
+ version = " 0.1.0-alpha.67" // x-release-please-version
12
+ }
13
+
14
+ subprojects {
15
+ apply (plugin = " org.jetbrains.dokka" )
16
+ }
17
+
18
+ // Avoid race conditions between `dokkaHtmlCollector` and `dokkaJavadocJar` tasks
19
+ tasks.named(" dokkaHtmlCollector" ).configure {
20
+ subprojects.flatMap { it.tasks }
21
+ .filter { it.project.name != " onebusaway-sdk-kotlin" && it.name == " dokkaJavadocJar" }
22
+ .forEach { mustRunAfter(it) }
8
23
}
Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ configure<SpotlessExtension> {
21
21
22
22
java {
23
23
toolchain {
24
- languageVersion.set(JavaLanguageVersion .of(17 ))
24
+ languageVersion.set(JavaLanguageVersion .of(21 ))
25
25
}
26
26
}
27
27
Original file line number Diff line number Diff line change
1
+ import com.vanniktech.maven.publish.JavadocJar
2
+ import com.vanniktech.maven.publish.KotlinJvm
1
3
import com.vanniktech.maven.publish.MavenPublishBaseExtension
2
4
import com.vanniktech.maven.publish.SonatypeHost
3
5
@@ -19,6 +21,12 @@ configure<MavenPublishBaseExtension> {
19
21
publishToMavenCentral(SonatypeHost .CENTRAL_PORTAL )
20
22
21
23
coordinates(project.group.toString(), project.name, project.version.toString())
24
+ configure(
25
+ KotlinJvm (
26
+ javadocJar = JavadocJar .Dokka (" dokkaHtml" ),
27
+ sourcesJar = true ,
28
+ )
29
+ )
22
30
23
31
pom {
24
32
name.set(" OneBusAway" )
Original file line number Diff line number Diff line change @@ -6,3 +6,24 @@ plugins {
6
6
dependencies {
7
7
api(project(" :onebusaway-sdk-kotlin-client-okhttp" ))
8
8
}
9
+
10
+ // Redefine `dokkaHtml` to:
11
+ // - Depend on the root project's task for merging the docs of all the projects
12
+ // - Forward that task's output to this task's output
13
+ tasks.named(" dokkaHtml" ).configure {
14
+ actions.clear()
15
+
16
+ val dokkaHtmlCollector = rootProject.tasks[" dokkaHtmlCollector" ]
17
+ dependsOn(dokkaHtmlCollector)
18
+
19
+ val outputDirectory = project.layout.buildDirectory.dir(" dokka/html" )
20
+ doLast {
21
+ copy {
22
+ from(dokkaHtmlCollector.outputs.files)
23
+ into(outputDirectory)
24
+ duplicatesStrategy = DuplicatesStrategy .INCLUDE
25
+ }
26
+ }
27
+
28
+ outputs.dir(outputDirectory)
29
+ }
You can’t perform that action at this time.
0 commit comments