Skip to content

Commit

Permalink
chore: Added 2022.3 Build Support (#463)
Browse files Browse the repository at this point in the history
* Rename .java to .kt

* chore: Added 2022.3 Build Support.

* Our Waifu are immutable.

* updated changelog [skip ci]
  • Loading branch information
Unthrottled authored Oct 30, 2022
1 parent 6a193d8 commit c9e3414
Show file tree
Hide file tree
Showing 9 changed files with 24 additions and 38 deletions.
7 changes: 6 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

- [WMP-462](https://github.com/waifu-motivator/waifu-motivator-plugin/issues/462) 2022.3 build support
- [WMP-262](https://github.com/waifu-motivator/waifu-motivator-plugin/issues/262) Migrate user displayed string literals to message bundle.
- [WMP-464](https://github.com/waifu-motivator/waifu-motivator-plugin/issues/464) Fix deprecations and scheduled removal API
- [WMP-461](https://github.com/waifu-motivator/waifu-motivator-plugin/issues/461) chore: Migrate strings literals into message bundle

## [2.3.0] - 2022-08-11
### Added
- [WMP-433](https://github.com/waifu-motivator/waifu-motivator-plugin/issues/433) 2022.2 build support
Expand Down Expand Up @@ -187,4 +192,4 @@ The Anime Meme (AMII) plugin includes the following changes:

## [0.1.0] - 2019-12-03
### Added
- Initial EAP Release for IDEA >= 2019.2.3
- Initial EAP Release for IDEA >= 2019.2.3
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,6 @@ If want to run it on your local machine for development, please see the followin
* JDK 11+
* IntelliJ IDEA
* Plugin DevKit
* Lombok Plugin

### Running
Execute the `intellij/runIde` task from Gradle.
Expand Down
1 change: 0 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ plugins {
id "org.jetbrains.intellij" version "1.9.0"
id "org.jetbrains.changelog" version "1.3.1"
id "org.jlleitschuh.gradle.ktlint" version "11.0.0"
id "io.franzbecker.gradle-lombok" version "5.0.0"
id "org.kordamp.gradle.markdown" version "2.2.0"
}

Expand Down
4 changes: 2 additions & 2 deletions gradle.properties
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@

pluginGroup = zd-zero
pluginName = waifu-motivator-plugin
pluginVersion = 2.3.0
pluginVersion = 2.4.0
#
sinceBuildVersion = 221
untilBuildVersion = 222.*
untilBuildVersion = 223.*

# Plugin Verifier integration -> https://github.com/JetBrains/gradle-intellij-plugin#plugin-verifier-dsl
# See https://plugins.jetbrains.com/docs/intellij/build-number-ranges.html#intellij-platform-based-products-of-recent-ide-versions
Expand Down
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-7.0.2-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-7.5.1-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
package zd.zero.waifu.motivator.plugin.alert.dialog

class WaifuOfTheDay(
val name: String,
val anime: String,
val description: String,
val image: String,
val sourceUrl: String,
val animeUrl: String,
)
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package zd.zero.waifu.motivator.plugin.alert.dialog;

import com.fasterxml.jackson.databind.ObjectMapper;
import com.google.gson.Gson;
import com.intellij.CommonBundle;
import com.intellij.ide.BrowserUtil;
import com.intellij.ide.GeneralSettings;
Expand Down Expand Up @@ -35,6 +35,7 @@
import java.awt.event.ActionEvent;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.net.URL;
import java.util.Arrays;
import java.util.Random;
Expand Down Expand Up @@ -129,8 +130,8 @@ private WaifuOfTheDay[] getWaifuOfTheDay() throws IOException {
throw new IOException( "Cannot find the waifu content." );
}

ObjectMapper mapper = new ObjectMapper();
waifuOfTheDays = mapper.readValue( resource, WaifuOfTheDay[].class );
Gson gson = new Gson();
waifuOfTheDays = gson.fromJson( new InputStreamReader( resource ), WaifuOfTheDay[].class );
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ val UPDATE_MESSAGE: String =
What's New?
<br>
<ul>
<li>Add support for the 2022.2 build</li>
<li>Add support for the 2022.3 build</li>
</ul>
<br>
Please see the changelog for more details.
Expand Down

0 comments on commit c9e3414

Please sign in to comment.