From 4dd608bbf6123c496d709e4605e5e78981653105 Mon Sep 17 00:00:00 2001 From: Urs Joss Date: Fri, 24 May 2024 13:56:41 +0200 Subject: [PATCH] refactor: Use URI instead of deprecated constructor URL (#255) --- build.gradle.kts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/build.gradle.kts b/build.gradle.kts index 2ef5c4d1..9220dd86 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -1,7 +1,7 @@ import org.jetbrains.dokka.gradle.DokkaTask import org.jetbrains.dokka.gradle.DokkaTaskPartial import org.jetbrains.kotlin.gradle.tasks.KotlinCompile -import java.net.URL +import java.net.URI buildscript { repositories { @@ -64,7 +64,7 @@ tasks { configureEach { sourceLink { localDirectory.set(file("$projectDir/$kotlinSrcSet")) - remoteUrl.set(URL(projectRelativeSourceLink())) + remoteUrl.set(URI.create(projectRelativeSourceLink()).toURL()) remoteLineSuffix.set("#L") } }