From 6eaf821775bf49ff94f3ea472f8ebc5a6ac0e0d1 Mon Sep 17 00:00:00 2001 From: Darren Reid Date: Tue, 17 Sep 2024 10:25:26 +1000 Subject: [PATCH] Upgrade to build again with more recent versions of intellij plugin gradle tool. --- CHANGELOG.md | 2 ++ gradle.properties | 2 +- src/main/java/net/servicestack/idea/common/Analytics.java | 3 ++- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index e82ba25..2d2535b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,8 @@ # ServiceStackIDEA Changelog ## [Unreleased] +- Fix issues from verifier +## [1.4.0] - Add support for PHPStorm and Add ServiceStack Reference - Resolve some issues with IntelliJ context menus ## [1.3.4] diff --git a/gradle.properties b/gradle.properties index 60496fd..e7f0b85 100644 --- a/gradle.properties +++ b/gradle.properties @@ -3,7 +3,7 @@ pluginGroup = ServiceStackIDEA pluginName = ServiceStack -pluginVersion = 1.4.0 +pluginVersion = 1.4.1 # See https://plugins.jetbrains.com/docs/intellij/build-number-ranges.html # for insight into build numbers and IntelliJ Platform versions. diff --git a/src/main/java/net/servicestack/idea/common/Analytics.java b/src/main/java/net/servicestack/idea/common/Analytics.java index 7885aad..56f70ef 100644 --- a/src/main/java/net/servicestack/idea/common/Analytics.java +++ b/src/main/java/net/servicestack/idea/common/Analytics.java @@ -5,6 +5,7 @@ import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; +import java.net.URI; import java.net.URL; import java.net.URLConnection; @@ -34,7 +35,7 @@ public static void SubmitAnonymousUsage(final String url) { final BufferedReader[] responseReader = {null}; Thread thread = new Thread(() -> { try { - serviceUrl[0] = new URL(url); + serviceUrl[0] = URI.create(url).toURL(); responseConnection[0] = serviceUrl[0].openConnection(); responseReader[0] = new BufferedReader(new InputStreamReader(responseConnection[0].getInputStream())); responseReader[0].close();