Skip to content

Commit

Permalink
Create sourceLink URL with non-deprecated URI constructor (#938)
Browse files Browse the repository at this point in the history
Fixes failing Gradle import of the project since -Werror is set and the URL constructor is deprecated.
  • Loading branch information
SebastianAigner authored Apr 18, 2024
1 parent 7fbcc24 commit 2518603
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions buildSrc/src/main/kotlin/Documentation.kt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import org.gradle.kotlin.dsl.assign
import org.jetbrains.dokka.gradle.AbstractDokkaLeafTask
import java.net.URL
import java.net.URI

fun AbstractDokkaLeafTask.applyKordDokkaOptions() {

Expand All @@ -16,7 +16,7 @@ fun AbstractDokkaLeafTask.applyKordDokkaOptions() {

sourceLink {
localDirectory = project.projectDir
remoteUrl = URL("https://github.com/kordlib/kord/blob/${project.commitHash}/${project.name}")
remoteUrl = URI("https://github.com/kordlib/kord/blob/${project.commitHash}/${project.name}").toURL()
remoteLineSuffix = "#L"
}

Expand Down

0 comments on commit 2518603

Please sign in to comment.