-
Notifications
You must be signed in to change notification settings - Fork 427
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Don't expose java.net.URL #3192
Conversation
Why not store the values as |
Is there any special advantage a URI has over a String in this case? |
URI's allow various operations, they also restrict invalid inputs. Finally the implementation will still need to use But perhaps mostly, URI is a more specific type. |
Hey! But I have some news now:
Additional note: to avoid receiving deprecation warnings when running Gradle with JDK 20 better to use sourceLink {
remoteUrl.set(URI("https://github.com/kotlin/dokka/tree/master/src").toURL())
} |
When constructing a
URL
from Gradle, builds will spew warnings such asThis pull request is intended to remove problematic usages of
java.net.URL
, and thus resolve any compile-time warnings related to this.This is a breaking change.
Resolves #2993 and #3120