diff --git a/.github/workflows/build-kdoc.yml b/.github/workflows/build-kdoc.yml index 22264f97..9b1dc3c8 100644 --- a/.github/workflows/build-kdoc.yml +++ b/.github/workflows/build-kdoc.yml @@ -22,7 +22,7 @@ jobs: - uses: gradle/actions/setup-gradle@v3 - name: Build KDoc - run: ./gradlew --no-daemon dokkaHtml + run: ./gradlew --no-daemon dokkaGenerate - uses: actions/upload-pages-artifact@v3 with: diff --git a/build.gradle.kts b/build.gradle.kts index 84dd8f42..edb293b5 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -1,5 +1,15 @@ -import java.net.URL +/* + * Copyright © All Contributors. See LICENSE and AUTHORS in the root directory for details. + * + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at https://mozilla.org/MPL/2.0/. + * + * SPDX-License-Identifier: MPL-2.0 + */ + import org.jetbrains.dokka.gradle.DokkaTask +import java.net.URI repositories { mavenCentral() @@ -36,7 +46,7 @@ tasks.withType().configureEach { moduleName.set("dav4jvm") sourceLink { localDirectory.set(file("src/main/kotlin")) - remoteUrl.set(URL("https://github.com/bitfireAT/dav4jvm/tree/main/src/main/kotlin/")) + remoteUrl.set(URI("https://github.com/bitfireAT/dav4jvm/tree/main/src/main/kotlin/").toURL()) remoteLineSuffix.set("#L") } } diff --git a/gradle.properties b/gradle.properties new file mode 100644 index 00000000..12180a6c --- /dev/null +++ b/gradle.properties @@ -0,0 +1,2 @@ +# Dokka +org.jetbrains.dokka.experimental.gradle.pluginMode=V2Enabled diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml index 0d790552..a788fa49 100644 --- a/gradle/libs.versions.toml +++ b/gradle/libs.versions.toml @@ -1,5 +1,5 @@ [versions] -dokka = "1.9.20" +dokka = "2.0.0" junit4 = "4.13.2" kotlin = "2.2.0" okhttpVersion = "4.12.0"