Skip to content

Commit adc85a4

Browse files
⬆️ Bump org.jetbrains.dokka from 1.9.20 to 2.1.0 (#42)
* ⬆️ Bump org.jetbrains.dokka from 1.9.20 to 2.1.0 Bumps [org.jetbrains.dokka](https://github.com/Kotlin/dokka) from 1.9.20 to 2.1.0. - [Release notes](https://github.com/Kotlin/dokka/releases) - [Commits](Kotlin/dokka@v1.9.20...v2.1.0) --- updated-dependencies: - dependency-name: org.jetbrains.dokka dependency-version: 2.1.0 dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> * ⬆️ update Dokka tasks for improved documentation generation * 👷 update Dokka command for HTML generation in CI workflow --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Klemen Tusar <techouse@gmail.com>
1 parent dbc8e12 commit adc85a4

File tree

4 files changed

+8
-6
lines changed

4 files changed

+8
-6
lines changed

.github/workflows/docs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
- name: Set up Gradle caching
2828
uses: gradle/actions/setup-gradle@v5
2929
- name: Build Dokka HTML (qs-kotlin)
30-
run: ./gradlew :qs-kotlin:dokkaHtml --stacktrace
30+
run: ./gradlew :qs-kotlin:dokkaGenerateHtml --stacktrace
3131
- name: Deploy to GitHub Pages
3232
uses: peaceiris/actions-gh-pages@v4
3333
with:

build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ subprojects {
1919
}
2020
}
2121

22-
tasks.register("docs") { dependsOn("dokkaHtmlMultiModule") }
22+
tasks.register("docs") { dependsOn("dokkaGenerate") }
2323

2424
nexusPublishing {
2525
repositories {

gradle/libs.versions.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[versions]
22
kotlin = "2.2.21"
33
agp = "8.13.0"
4-
dokka = "1.9.20"
4+
dokka = "2.1.0"
55
nexusPublish = "2.0.0"
66
kotest = "6.0.4"
77
junit = "6.0.0"

qs-kotlin/build.gradle.kts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -83,13 +83,15 @@ val prepareDokkaReadme by
8383
}
8484
}
8585

86-
tasks.dokkaHtml {
87-
dependsOn(prepareDokkaReadme)
88-
dokkaSourceSets.configureEach {
86+
dokka {
87+
moduleName.set("qs-kotlin")
88+
dokkaSourceSets.named("main") {
8989
includes.from(layout.buildDirectory.file("dokka-includes/Module.md"))
9090
}
9191
}
9292

93+
tasks.named("dokkaGeneratePublicationHtml") { dependsOn(prepareDokkaReadme) }
94+
9395
publishing {
9496
publications {
9597
create<MavenPublication>("mavenJava") {

0 commit comments

Comments
 (0)