Skip to content

Commit df60825

Browse files
authored
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()`
1 parent a969a91 commit df60825

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

stub/build.gradle.kts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import com.google.protobuf.gradle.*
22
import org.jetbrains.dokka.gradle.DokkaTask
3-
import java.net.URL
3+
import java.net.URI
44

55
plugins {
66
alias(libs.plugins.dokka)
@@ -80,7 +80,7 @@ tasks.withType<DokkaTask>().configureEach {
8080
named("main") {
8181
sourceLink {
8282
localDirectory.set(file("src/main/java"))
83-
remoteUrl.set(URL("https://github.com/grpc/grpc-kotlin/blob/master/stub/src/main/java"))
83+
remoteUrl.set(URI("https://github.com/grpc/grpc-kotlin/blob/master/stub/src/main/java").toURL())
8484
remoteLineSuffix.set("#L")
8585
}
8686

0 commit comments

Comments
 (0)