Skip to content

Commit

Permalink
1. Fix #30 No compatible with v2021.3
Browse files Browse the repository at this point in the history
2. Bump version 0.1.14 for Intellij v2021.3
  • Loading branch information
jumperchen committed Dec 1, 2021
1 parent 708b8f7 commit 3f02514
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 10 deletions.
12 changes: 5 additions & 7 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,26 +1,24 @@
plugins {
id 'org.jetbrains.intellij' version '1.1.4'
id 'org.jetbrains.intellij' version '1.3.0'
id 'java'
}

group 'org.zkoss.zkidea'
version '0.1.13'
version '0.1.14'

repositories {
mavenCentral()
maven { url 'https://www.jetbrains.com/intellij-repository/releases' }

maven {
url 'https://dl.bintray.com/jetbrains/intellij-plugin-service'
}

maven { url "https://cache-redirector.jetbrains.com/intellij-dependencies" }
}

dependencies {
'org.jsoup:jsoup:1.13.1'
}

intellij {
version = '2021.2'
version = '2021.3'
plugins = ['maven', 'com.intellij.java']
}
patchPluginXml {
Expand Down
6 changes: 3 additions & 3 deletions src/main/java/org/zkoss/zkidea/newsNotification/ZKNews.java
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
import java.io.IOException;

public class ZKNews implements StartupActivity {
public static final String ZK_WEBSITE_URL = "http://www.zkoss.org";
public static final String ZK_WEBSITE_URL = "http://www.zkoss.org?ide=in";

@Override
public void runActivity(@NotNull Project project) {
Expand All @@ -43,12 +43,12 @@ private void newsNotificationPopup(Project project) throws IOException {
File zkNewsFile = new File(ZKPathManager.getPluginTempPath() + File.separator + "zkNews.txt");
if (!zkNewsFile.exists())
zkNewsFile.createNewFile();
String news = newsLoader(ZK_WEBSITE_URL);
String news = newsLoader(ZK_WEBSITE_URL + "&fetch=true");
String newsCache = FileUtil.loadFile(zkNewsFile);
if(!news.equals(newsCache)) {
FileUtil.writeToFile(zkNewsFile, news);
NotificationGroupManager.getInstance().getNotificationGroup("news notification")
.createNotification(news + " Visit <a href=\"" + ZK_WEBSITE_URL + "\">zkoss.org</a> for detail.", NotificationType.INFORMATION)
.createNotification(news + " Visit <a href=\"" + ZK_WEBSITE_URL + "&read=more#news-sec\">zkoss.org</a> for detail.", NotificationType.INFORMATION)
.setListener(new NotificationListener.UrlOpeningListener(true))
.notify(project);
}
Expand Down
5 changes: 5 additions & 0 deletions src/main/resources/META-INF/plugin.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,11 @@
]]></description>

<change-notes><![CDATA[
<p>0.1.14</p>
<ul>
<li> [bug] #30 No compatible with v2021.3 </li>
</ul>
<br>
<p>0.1.13</p>
<ul>
<li> fix deprecated API usage </li>
Expand Down

0 comments on commit 3f02514

Please sign in to comment.