Skip to content

Commit 7ead7a4

Browse files
committed
Update plugin version and warning message if tag check fails.
1 parent 5264a8a commit 7ead7a4

File tree

2 files changed

+13
-2
lines changed

2 files changed

+13
-2
lines changed

src/ServiceStackIDEA/META-INF/plugin.xml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
11
<idea-plugin version="2">
22
<id>net.servicestack.ideaplugin</id>
33
<name>ServiceStack</name>
4-
<version>1.0.6</version>
4+
<version>1.0.7</version>
55
<vendor email="[email protected]" url="https://servicestack.net/">ServiceStack</vendor>
66

77
<description><![CDATA[
88
Integration with ServiceStack Web Services, includes support for Java Add ServiceStack Reference.
99
]]></description>
1010

1111
<change-notes><![CDATA[
12+
1.0.7 - Client now gets dependency version from ServiceStack.Java tags, falls back to 1.0.13 if it fails. <br />
1213
1.0.6 - Update client and android dependency versions to 1.0.13. <br />
1314
1.0.5 - Update client and android dependency versions to 1.0.12. <br />
1415
1.0.4 - Bug fixes for Maven project support and new versions of net.servicestack:client.<br />

src/ServiceStackIDEA/src/net/servicestack/idea/AddRef.java

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@
33
import com.google.gson.JsonElement;
44
import com.google.gson.JsonParser;
55
import com.intellij.ide.util.PackageChooserDialog;
6+
import com.intellij.notification.Notification;
7+
import com.intellij.notification.NotificationType;
8+
import com.intellij.notification.Notifications;
69
import com.intellij.openapi.module.Module;
710
import com.intellij.openapi.project.Project;
811
import com.intellij.openapi.ui.TextFieldWithBrowseButton;
@@ -218,8 +221,15 @@ private void processOK() {
218221

219222
} catch (MalformedURLException e) {
220223
e.printStackTrace();
221-
} catch (IOException e) {
224+
} catch (Exception e) {
222225
e.printStackTrace();
226+
Notification notification = new Notification(
227+
"ServiceStackIDEA",
228+
"Warning Add ServiceStack Reference",
229+
"Unable to get latest version of required dependencies, falling back to known available version.\n" +
230+
"Please check the JCenter/Maven Central for the latest published versions of the ServiceStack java clients and update your dependencies.",
231+
NotificationType.WARNING);
232+
Notifications.Bus.notify(notification);
223233
}
224234

225235

0 commit comments

Comments
 (0)