From df608253c65eb7928f2095f4a1647516424c44c5 Mon Sep 17 00:00:00 2001 From: David Fally <62691352+wavedeck@users.noreply.github.com> Date: Sun, 15 Sep 2024 00:13:56 +0200 Subject: [PATCH] fix URL deprecation warning fixes the constructor deprecation of `java.net.URL` that first appeared in java 20 by replacing it with `java.net.URI.toURL()` --- stub/build.gradle.kts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/stub/build.gradle.kts b/stub/build.gradle.kts index 1e288cc6..48175372 100644 --- a/stub/build.gradle.kts +++ b/stub/build.gradle.kts @@ -1,6 +1,6 @@ import com.google.protobuf.gradle.* import org.jetbrains.dokka.gradle.DokkaTask -import java.net.URL +import java.net.URI plugins { alias(libs.plugins.dokka) @@ -80,7 +80,7 @@ tasks.withType().configureEach { named("main") { sourceLink { localDirectory.set(file("src/main/java")) - remoteUrl.set(URL("https://github.com/grpc/grpc-kotlin/blob/master/stub/src/main/java")) + remoteUrl.set(URI("https://github.com/grpc/grpc-kotlin/blob/master/stub/src/main/java").toURL()) remoteLineSuffix.set("#L") }