Skip to content

Commit b9445fb

Browse files
authored
Upgrade Dokka to 2.0.0 (#77)
Signed-off-by: Arnau Mora <[email protected]>
1 parent acbfbac commit b9445fb

File tree

4 files changed

+16
-4
lines changed

4 files changed

+16
-4
lines changed

.github/workflows/build-kdoc.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
- uses: gradle/actions/setup-gradle@v3
2323

2424
- name: Build KDoc
25-
run: ./gradlew --no-daemon dokkaHtml
25+
run: ./gradlew --no-daemon dokkaGenerate
2626

2727
- uses: actions/upload-pages-artifact@v3
2828
with:

build.gradle.kts

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,15 @@
1-
import java.net.URL
1+
/*
2+
* Copyright © All Contributors. See LICENSE and AUTHORS in the root directory for details.
3+
*
4+
* This Source Code Form is subject to the terms of the Mozilla Public
5+
* License, v. 2.0. If a copy of the MPL was not distributed with this
6+
* file, You can obtain one at https://mozilla.org/MPL/2.0/.
7+
*
8+
* SPDX-License-Identifier: MPL-2.0
9+
*/
10+
211
import org.jetbrains.dokka.gradle.DokkaTask
12+
import java.net.URI
313

414
repositories {
515
mavenCentral()
@@ -36,7 +46,7 @@ tasks.withType<DokkaTask>().configureEach {
3646
moduleName.set("dav4jvm")
3747
sourceLink {
3848
localDirectory.set(file("src/main/kotlin"))
39-
remoteUrl.set(URL("https://github.com/bitfireAT/dav4jvm/tree/main/src/main/kotlin/"))
49+
remoteUrl.set(URI("https://github.com/bitfireAT/dav4jvm/tree/main/src/main/kotlin/").toURL())
4050
remoteLineSuffix.set("#L")
4151
}
4252
}

gradle.properties

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# Dokka
2+
org.jetbrains.dokka.experimental.gradle.pluginMode=V2Enabled

gradle/libs.versions.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[versions]
2-
dokka = "1.9.20"
2+
dokka = "2.0.0"
33
junit4 = "4.13.2"
44
kotlin = "2.2.0"
55
okhttpVersion = "4.12.0"

0 commit comments

Comments
 (0)