From 3f4a8a30b0ecc5024ad69e50a7e9755d7fedf54c Mon Sep 17 00:00:00 2001 From: kenji yoshida <6b656e6a69@gmail.com> Date: Mon, 14 Oct 2024 17:10:35 +0900 Subject: [PATCH] avoid deprecated java.net.URL constructor - https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/net/URL.html#%3Cinit%3E(java.lang.String) - https://bugs.openjdk.org/browse/JDK-8295949 - https://github.com/openjdk/jdk/commit/4338f527aa81350e3636dcfbcd2eb17ddaad3914 --- src/main/scala/sbtlicensereport/license/LicenseReport.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/scala/sbtlicensereport/license/LicenseReport.scala b/src/main/scala/sbtlicensereport/license/LicenseReport.scala index ca6e1a3..2b0a675 100644 --- a/src/main/scala/sbtlicensereport/license/LicenseReport.scala +++ b/src/main/scala/sbtlicensereport/license/LicenseReport.scala @@ -180,7 +180,7 @@ object LicenseReport { None else { val licenses = dep.licenses - val homepage = dep.homepage.map(string => new URL(string)) + val homepage = dep.homepage.map(string => new URI(string).toURL) Some( DepLicense( getModuleInfo(dep),