Skip to content

Commit 37d4ba1

Browse files
committed
🔧 Update plugin configuration
1 parent dd12a4f commit 37d4ba1

11 files changed

Lines changed: 68 additions & 65 deletions

File tree

CHANGELOG.md

Lines changed: 43 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@
44

55
## [Unreleased]
66

7+
- ⬆️ Update versions of dependencie
8+
- 🌐Add pt_BR translation (thanks to @P3terHenry)
9+
710
## [2.3.0] - 2025-05-13
811

912
- ⬆️ Update versions of dependencies
@@ -12,99 +15,99 @@
1215

1316
## [2.2.3] - 2025-01-24
1417

15-
- Update to intellij 2025.1
18+
- ⬆️ Update to intellij 2025.1
1619

1720
## [2.2.2] - 2024-10-21
1821

19-
- Update to intellij 2024.3
20-
- Update gradle plugin version (thanks to @DeKaN)
21-
- Add RU translation (thanks to @Greem4)
22+
- ⬆️ Update to intellij 2024.3
23+
- ⬆️ Update gradle plugin version (thanks to @DeKaN)
24+
- 🌐Add RU translation (thanks to @Greem4)
2225

2326
## [2.1.0] - 2024-07-12
2427

25-
- Update to intellij 2024.2
26-
- Correct first display list not loaded
27-
- Update versions of dependencies
28+
- ⬆️ Update to intellij 2024.2
29+
- 🐛Correct first display list not loaded
30+
- ⬆️ Update versions of dependencies
2831

2932
## [2.0.0] - 2024-07-01
3033

31-
- Translate the gitmoji description
32-
- Chinese (thanks to @caiyucong)
33-
- French
34-
- Update project to last intellij plugin
35-
- Translate the plugin in Chinese (thanks to @caiyucong)
36-
- Add a new column in the log table for display the gitmoji icon.
34+
- Translate the gitmoji description
35+
- 🌐Chinese (thanks to @caiyucong)
36+
- 🌐French
37+
- ⬆️ Update project to last intellij plugin
38+
- 🌐Translate the plugin in Chinese (thanks to @caiyucong)
39+
- Add a new column in the log table for display the gitmoji icon.
3740

3841
## [1.14.0] - 2024-02-08
3942

40-
- Update to intellij 2024.1
43+
- ⬆️ Update to intellij 2024.1
4144

4245
## [1.13.0] - 2023-07-26
4346

44-
- Fix the bug of Exception reporting when opening idea 2023.2
45-
- Change Method deprecated in Config
46-
- Update project to last intellij plugin
47+
- 🐛Fix the bug of Exception reporting when opening idea 2023.2
48+
- ♻️Change Method deprecated in Config
49+
- ⬆️ Update project to last intellij plugin
4750

4851
## [1.12.2] - 2023-07-05
4952

50-
- Update to intellij 2023.2
53+
- ⬆️ Update to intellij 2023.2
5154

5255
## [1.12.1] - 2023-02-21
5356

54-
- Update to intellij 2023.1
57+
- ⬆️ Update to intellij 2023.1
5558

5659
## [1.12.0] - 2023-01-11
5760

58-
- Update gitmoji.json
59-
- Change the URL to download the gitmojis data.
61+
- ⬆️ Update gitmoji.json
62+
- Change the URL to download the gitmojis data.
6063

6164
## [1.11.1] - 2022-12-05
6265

63-
- Update to intellij 2022.2
66+
- ⬆️ Update to intellij 2022.2
6467

6568
## [1.11.0]
6669

67-
- Bug fix #34 Error when select the option nothing
68-
- Feature #27 Add new option for insert the gitmoji description in the commit
70+
- 🐛Bug fix #34 Error when select the option nothing
71+
- Feature #27 Add new option for insert the gitmoji description in the commit
6972

7073
## [1.10.0]
7174

72-
- Update to intellij version 2022.1
73-
- Update to last intellij plugin template version
75+
- ⬆️ Update to intellij version 2022.1
76+
- ⬆️ Update to last intellij plugin template version
7477

7578
## [1.9.1]
7679

77-
- Update plugin name problem on windows installation
80+
- ⬆️ Update plugin name problem on windows installation
7881

7982
## [1.9.0]
8083

81-
- Update plugin to intellij version 2021.3 thanks to @HwanChang
82-
- Update projet to last intellij plugin
84+
- ⬆️ Update plugin to intellij version 2021.3 thanks to @HwanChang
85+
- ⬆️ Update projet to last intellij plugin
8386

8487
## [1.8.1]
8588

86-
- Fix NPE in the plugin</li>
87-
- Update fallback gitmoji.json</li>
89+
- 🐛Fix NPE in the plugin</li>
90+
- ⬆️ Update fallback gitmoji.json</li>
8891

8992
## [1.8.0]
9093

91-
- Option for insert emoji in place of the cursor instead of the begin
94+
- Option for insert emoji in place of the cursor instead of the begin
9295

9396
## [1.7.0]
9497

95-
- Option for choose the character after the emoji (space, :, -, _, (, [ ) thanks to @rubenvitt
96-
- Option to display list with emoji or icon (Bug in IntelliJ Windows who not display emoji on list)
97-
- Icon is now accessible when the IDE index
98+
- Option for choose the character after the emoji (space, :, -, _, (, [ ) thanks to @rubenvitt
99+
- Option to display list with emoji or icon (Bug in IntelliJ Windows who not display emoji on list)
100+
- Icon is now accessible when the IDE index
98101

99102
## [1.6.0]
100103

101-
- Rename, change description and add an icon
102-
- Display directly the emoji instead of an image
103-
- Load the list of gitmoji from the repo of gitmoji (fallback to a local list if error)
104+
- Rename, change description and add an icon
105+
- Display directly the emoji instead of an image
106+
- Load the list of gitmoji from the repo of gitmoji (fallback to a local list if error)
104107

105108
## [1.5.0]
106109

107-
- Add shortcut for open the window : ctrl alt g (or cmd alt g)
110+
- Add shortcut for open the window : ctrl alt g (or cmd alt g)
108111
- Add new gitmoji : wastebasket
109112

110113
## [1.4.2]
@@ -113,7 +116,7 @@
113116

114117
## [1.4.0]
115118

116-
- Add an option to switch to the unicode character instead of the :code: style (<a href="https://github.com/patou/gitmoji-intellij-plugin/issues/1">#1</a>)
119+
- Add an option to switch to the unicode character instead of the :code: style (<a href="https://github.com/patou/gitmoji-intellij-plugin/issues/1">#1</a>)
117120

118121
## [1.3.0]
119122

build.gradle.kts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ version = providers.gradleProperty("pluginVersion").get()
1616

1717
// Set the JVM language level used to build the project.
1818
kotlin {
19-
jvmToolchain(17)
19+
jvmToolchain(21)
2020
}
2121

2222
// Configure project's dependencies
@@ -36,8 +36,9 @@ dependencies {
3636
implementation("com.squareup.okhttp3:okhttp:4.12.0")
3737
implementation("org.yaml:snakeyaml:2.4")
3838
testImplementation(libs.junit)
39+
testImplementation(libs.opentest4j)
3940

40-
// IntelliJ Platform Gradle Plugin Dependencies Extension - read more: https://plugins.jetbrains.com/docs/intellij/tools-intellij-platform-gradle-plugin-dependencies-extension.html
41+
// IntelliJ Platform Gradle Plugin Dependencies Extension -· read more: https://plugins.jetbrains.com/docs/intellij/tools-intellij-platform-gradle-plugin-dependencies-extension.html
4142
intellijPlatform {
4243
create(providers.gradleProperty("platformType"), providers.gradleProperty("platformVersion"))
4344

@@ -54,6 +55,7 @@ dependencies {
5455
// Configure IntelliJ Platform Gradle Plugin - read more: https://plugins.jetbrains.com/docs/intellij/tools-intellij-platform-gradle-plugin-extension.html
5556
intellijPlatform {
5657
pluginConfiguration {
58+
name = providers.gradleProperty("pluginName")
5759
version = providers.gradleProperty("pluginVersion")
5860

5961
// Extract the <!-- Plugin description --> section from README.md and provide for the plugin's manifest

gradle.properties

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,16 @@ pluginGroup = com.github.patou
55
pluginName = gitmoji-intellij-plugin
66
pluginRepositoryUrl = https://github.com/patou/gitmoji-intellij-plugin
77
# SemVer format -> https://semver.org
8-
pluginVersion = 2.3.0
8+
pluginVersion = 2.4.0
99

1010
# See https://plugins.jetbrains.com/docs/intellij/build-number-ranges.html
1111
# for insight into build numbers and IntelliJ Platform versions.
12-
pluginSinceBuild = 233
12+
pluginSinceBuild = 242
1313
pluginUntilBuild =
1414

1515
# IntelliJ Platform Properties -> https://github.com/JetBrains/gradle-intellij-plugin#intellij-platform-properties
1616
platformType = IC
17-
platformVersion = 2024.1.7
17+
platformVersion = 2024.2.5
1818

1919
# Plugin Dependencies -> https://plugins.jetbrains.com/docs/intellij/plugin-dependencies.html
2020
# Note: Bundled plugins are now defined separately from plugins of other sources (like JetBrains Marketplace).
@@ -23,10 +23,10 @@ platformPlugins =
2323
platformBundledPlugins =
2424

2525
# Java language level used to compile sources and to generate the files for - Java 11 is required since 2020.3
26-
javaVersion = 17
26+
javaVersion = 21
2727

2828
# Gradle Releases -> https://github.com/gradle/gradle/releases
29-
gradleVersion = 8.11.1
29+
gradleVersion = 8.13
3030

3131
# Opt-out flag for bundling Kotlin standard library -> https://jb.gg/intellij-platform-kotlin-stdlib
3232
kotlin.stdlib.default.dependency = false

gradle/libs.versions.toml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,18 @@
11
[versions]
22
# libraries
33
junit = "4.13.2"
4+
opentest4j = "1.3.0"
45

56
# plugins
67
changelog = "2.2.1"
7-
intelliJPlatform = "2.6.0"
8+
intelliJPlatform = "2.5.0"
89
kotlin = "2.1.21"
910
kover = "0.9.1"
10-
qodana = "2025.1.1"
11+
qodana = "2024.3.4"
1112

1213
[libraries]
1314
junit = { group = "junit", name = "junit", version.ref = "junit" }
15+
opentest4j = { group = "org.opentest4j", name = "opentest4j", version.ref = "opentest4j" }
1416

1517
[plugins]
1618
changelog = { id = "org.jetbrains.changelog", version.ref = "changelog" }

gradle/wrapper/gradle-wrapper.jar

122 Bytes
Binary file not shown.

gradle/wrapper/gradle-wrapper.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-8.11.1-bin.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.13-bin.zip
44
networkTimeout=10000
55
validateDistributionUrl=true
66
zipStoreBase=GRADLE_USER_HOME

gradlew

Lines changed: 2 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

qodana.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
# Qodana configuration:
22
# https://www.jetbrains.com/help/qodana/qodana-yaml.html
33

4-
version: 1.0
5-
linter: jetbrains/qodana-jvm-community:latest
6-
projectJDK: 17
4+
version: "1.0"
5+
linter: jetbrains/qodana-jvm-community:2024.3
6+
projectJDK: "21"
77
profile:
88
name: qodana.recommended
99
exclude:

settings.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
rootProject.name = "gitmoji-intellij-plugin"
22

33
plugins {
4-
id("org.gradle.toolchains.foojay-resolver-convention") version "1.0.0"
4+
id("org.gradle.toolchains.foojay-resolver-convention") version "0.8.0"
55
}

src/main/kotlin/com/github/patou/gitmoji/GitCommitAction.kt

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -133,14 +133,10 @@ class GitCommitAction : AnAction() {
133133
.setAutoPackHeightOnFiltering(false)
134134
.createPopup()
135135
.apply {
136-
setDataProvider { dataId ->
137-
when (dataId) {
138-
// default list action does not work as "CopyAction" is invoked first, but with other copy provider
139-
PlatformDataKeys.COPY_PROVIDER.name -> object : TextCopyProvider() {
140-
override fun getTextLinesToCopy() =
141-
listOfNotNull(selectedMessage?.code).nullize()
142-
}
143-
else -> null
136+
setUiDataProvider { sink ->
137+
sink[COPY_PROVIDER] = object : TextCopyProvider() {
138+
override fun getActionUpdateThread(): ActionUpdateThread = ActionUpdateThread.EDT
139+
override fun getTextLinesToCopy() = listOfNotNull(selectedMessage).nullize()
144140
}
145141
}
146142
}

0 commit comments

Comments
 (0)