From 70738af713118db885f0a0edf6bf96cf566a2c3f 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 1/3] 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 17e3b298..2053fe60 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) @@ -79,7 +79,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") } From a17fdb0a09c294c19ebad7b93e171b1b848654a9 Mon Sep 17 00:00:00 2001 From: David Fally <62691352+wavedeck@users.noreply.github.com> Date: Mon, 25 Aug 2025 16:14:42 +0200 Subject: [PATCH 2/3] fix(lint): shorten line length of dokka remote source url --- stub/build.gradle.kts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/stub/build.gradle.kts b/stub/build.gradle.kts index 2053fe60..0736a9bc 100644 --- a/stub/build.gradle.kts +++ b/stub/build.gradle.kts @@ -75,11 +75,16 @@ tasks.create("javadocJar") { } tasks.withType().configureEach { + + val remoteSourceUrl = URI( + "https://github.com/grpc/grpc-kotlin/blob/master/stub/src/main/java" + ).toURL() + dokkaSourceSets { named("main") { sourceLink { localDirectory.set(file("src/main/java")) - remoteUrl.set(URI("https://github.com/grpc/grpc-kotlin/blob/master/stub/src/main/java").toURL()) + remoteUrl.set(remoteSourceUrl) remoteLineSuffix.set("#L") } From 24d1fad3d5ae21070ecc8bb5bb4d16502d2c369b Mon Sep 17 00:00:00 2001 From: David Fally <62691352+wavedeck@users.noreply.github.com> Date: Mon, 25 Aug 2025 16:19:29 +0200 Subject: [PATCH 3/3] fix(lint): removed empty line 78 in build.gradle.kts --- stub/build.gradle.kts | 1 - 1 file changed, 1 deletion(-) diff --git a/stub/build.gradle.kts b/stub/build.gradle.kts index 0736a9bc..e39d533b 100644 --- a/stub/build.gradle.kts +++ b/stub/build.gradle.kts @@ -75,7 +75,6 @@ tasks.create("javadocJar") { } tasks.withType().configureEach { - val remoteSourceUrl = URI( "https://github.com/grpc/grpc-kotlin/blob/master/stub/src/main/java" ).toURL()