We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c185254 commit e10d0f7Copy full SHA for e10d0f7
opamp-client/build.gradle.kts
@@ -1,6 +1,6 @@
1
import java.io.FileOutputStream
2
import java.io.InputStream
3
-import java.net.URL
+import java.net.URI
4
5
plugins {
6
id("otel.java-conventions")
@@ -62,7 +62,7 @@ abstract class DownloadAndExtractOpampProtos @Inject constructor(
62
63
@TaskAction
64
fun execute() {
65
- val url = URL(zipUrl.get())
+ val url = URI.create(zipUrl.get()).toURL()
66
downloadedZipFile.get().asFile.parentFile.mkdirs()
67
68
url.openStream().use { input: InputStream ->
0 commit comments