Skip to content

Commit a624e58

Browse files
committed
update preparing
1 parent 3f0d502 commit a624e58

11 files changed

+91
-68
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
.gradle
22
.idea
3+
.intellijPlatform
34
build
45
.DS_Store

.run/Run Plugin.run.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,4 @@
2121
<DebugAllEnabled>false</DebugAllEnabled>
2222
<method v="2" />
2323
</configuration>
24-
</component>
24+
</component>

.run/Run Verifications.run.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
</option>
1212
<option name="taskNames">
1313
<list>
14-
<option value="runPluginVerifier" />
14+
<option value="verifyPlugin" />
1515
</list>
1616
</option>
1717
<option name="vmOptions" value="" />

CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@
44

55
## 2.0.5 - 28.06.2024
66

7+
- Adapt code for PhpStorm 2024.2
8+
9+
## 2.0.5 - 28.06.2024
10+
711
- More human readable ssh errors
812
- Notification about not availability on Windows
913
- Fixed not correct yubikey reset

build.gradle.kts

+61-52
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,32 @@
1-
import org.apache.tools.ant.filters.ReplaceTokens
21
import org.jetbrains.changelog.Changelog
3-
4-
fun properties(key: String) = providers.gradleProperty(key)
2+
import org.jetbrains.changelog.markdownToHTML
3+
import org.jetbrains.intellij.platform.gradle.TestFrameworkType
54

65
plugins {
76
id("java") // Java support
87
alias(libs.plugins.kotlin) // Kotlin support
9-
alias(libs.plugins.gradleIntelliJPlugin) // Gradle IntelliJ Plugin
8+
alias(libs.plugins.intelliJPlatform) // IntelliJ Platform Gradle Plugin
109
alias(libs.plugins.changelog) // Gradle Changelog Plugin
11-
alias(libs.plugins.kotlinSerialization) // Kotlinx serialization
1210
alias(libs.plugins.gradleDetektPlugin) // Gradle Detekt Plugin
1311
alias(libs.plugins.gradleDiktatPlugin) // Gradle Diktat Plugin
1412
}
1513

16-
group = properties("pluginGroup").get()
17-
version = properties("pluginVersion").get()
14+
group = providers.gradleProperty("pluginGroup").get()
15+
version = providers.gradleProperty("pluginVersion").get()
16+
17+
// Set the JVM language level used to build the project.
18+
kotlin {
19+
jvmToolchain(17)
20+
}
1821

1922
// Configure project's dependencies
2023
repositories {
2124
mavenCentral()
22-
}
2325

24-
// Set the JVM language level used to build the project.
25-
kotlin {
26-
jvmToolchain(17)
26+
// IntelliJ Platform Gradle Plugin Repositories Extension - read more: https://plugins.jetbrains.com/docs/intellij/tools-intellij-platform-gradle-plugin-repositories-extension.html
27+
intellijPlatform {
28+
defaultRepositories()
29+
}
2730
}
2831

2932
// Dependencies are managed with Gradle version catalog - read more: https://docs.gradle.org/current/userguide/platforms.html#sub:version-catalog
@@ -33,22 +36,58 @@ dependencies {
3336
implementation(libs.kotlinxSerializationJson)
3437
implementation(libs.markdown)
3538
implementation(libs.sentry)
39+
40+
// IntelliJ Platform Gradle Plugin Dependencies Extension - read more: https://plugins.jetbrains.com/docs/intellij/tools-intellij-platform-gradle-plugin-dependencies-extension.html
41+
intellijPlatform {
42+
create(providers.gradleProperty("platformType"), providers.gradleProperty("platformVersion"))
43+
44+
// Plugin Dependencies. Uses `platformBundledPlugins` property from the gradle.properties file for bundled IntelliJ Platform plugins.
45+
bundledPlugins(providers.gradleProperty("platformBundledPlugins").map { it.split(',') })
46+
47+
// Plugin Dependencies. Uses `platformPlugins` property from the gradle.properties file for plugin from JetBrains Marketplace.
48+
plugins(providers.gradleProperty("platformPlugins").map { it.split(',') })
49+
50+
instrumentationTools()
51+
pluginVerifier()
52+
zipSigner()
53+
}
3654
}
3755

38-
// Configure Gradle IntelliJ Plugin - read more: https://plugins.jetbrains.com/docs/intellij/tools-gradle-intellij-plugin.html
39-
intellij {
40-
pluginName = properties("pluginName")
41-
version = properties("platformVersion")
42-
type = properties("platformType")
56+
// Configure IntelliJ Platform Gradle Plugin - read more: https://plugins.jetbrains.com/docs/intellij/tools-intellij-platform-gradle-plugin-extension.html
57+
intellijPlatform {
58+
pluginConfiguration {
59+
version = providers.gradleProperty("pluginVersion")
60+
61+
val changelog = project.changelog // local variable for configuration cache compatibility
62+
// Get the latest available change notes from the changelog file
63+
changeNotes = providers.gradleProperty("pluginVersion").map { pluginVersion ->
64+
with(changelog) {
65+
renderItem(
66+
(getOrNull(pluginVersion) ?: getUnreleased())
67+
.withHeader(false)
68+
.withEmptySections(false),
69+
Changelog.OutputType.HTML,
70+
)
71+
}
72+
}
73+
74+
ideaVersion {
75+
sinceBuild = providers.gradleProperty("pluginSinceBuild")
76+
untilBuild = providers.gradleProperty("pluginUntilBuild")
77+
}
78+
}
4379

44-
// Plugin Dependencies. Uses `platformPlugins` property from the gradle.properties file.
45-
plugins = properties("platformPlugins").map { it.split(',').map(String::trim).filter(String::isNotEmpty) }
80+
pluginVerification {
81+
ides {
82+
recommended()
83+
}
84+
}
4685
}
4786

4887
// Configure Gradle Changelog Plugin - read more: https://github.com/JetBrains/gradle-changelog-plugin
4988
changelog {
5089
groups.empty()
51-
repositoryUrl = properties("pluginRepositoryUrl")
90+
repositoryUrl = providers.gradleProperty("pluginRepositoryUrl")
5291
}
5392

5493
// Configure detekt plugin.
@@ -59,42 +98,12 @@ detekt {
5998
}
6099

61100
tasks {
62-
processResources {
63-
val tokens = mapOf(
64-
"sentry_dsn" to (System.getenv("SENTRY_DSN") ?: ""),
65-
)
66-
67-
filesMatching("plugin_config.json") {
68-
filteringCharset = "UTF-8"
69-
filter<ReplaceTokens>("tokens" to tokens)
70-
}
71-
}
72-
73101
wrapper {
74-
gradleVersion = properties("gradleVersion").get()
75-
}
76-
77-
patchPluginXml {
78-
version = properties("pluginVersion")
79-
sinceBuild = properties("pluginSinceBuild")
80-
untilBuild = properties("pluginUntilBuild")
81-
82-
val changelog = project.changelog // local variable for configuration cache compatibility
83-
// Get the latest available change notes from the changelog file
84-
changeNotes = properties("pluginVersion").map { pluginVersion ->
85-
with(changelog) {
86-
renderItem(
87-
(getOrNull(pluginVersion) ?: getUnreleased())
88-
.withHeader(false)
89-
.withEmptySections(false),
90-
Changelog.OutputType.HTML,
91-
)
92-
}
93-
}
102+
gradleVersion = providers.gradleProperty("gradleVersion").get()
94103
}
95104

96-
runIde {
97-
maxHeapSize = "8g"
105+
publishPlugin {
106+
dependsOn(patchChangelog)
98107
}
99108

100109
detekt.configure {

gradle.properties

+10-8
Original file line numberDiff line numberDiff line change
@@ -3,26 +3,28 @@
33
pluginGroup = com.vk
44
pluginName = admstorm
55
pluginRepositoryUrl = https://github.com/VKCOM/admstorm
6-
76
# SemVer format -> https://semver.org
8-
pluginVersion = 2.0.5
7+
pluginVersion = 2.0.6
98

109
# Supported build number ranges and IntelliJ Platform versions -> https://plugins.jetbrains.com/docs/intellij/build-number-ranges.html
11-
pluginSinceBuild = 241
12-
pluginUntilBuild = 241.*
10+
pluginSinceBuild = 242
11+
pluginUntilBuild = 242.*
1312

1413
# IntelliJ Platform Properties -> https://plugins.jetbrains.com/docs/intellij/tools-gradle-intellij-plugin.html#configuration-intellij-extension
1514
platformType = IU
16-
platformVersion = 2024.1
15+
platformVersion = 2024.2
1716

1817
# Plugin Dependencies -> https://plugins.jetbrains.com/docs/intellij/plugin-dependencies.html
19-
# Example: platformPlugins = com.intellij.java, com.jetbrains.php:203.4449.22
18+
# Example: platformPlugins = com.jetbrains.php:203.4449.22, org.intellij.scala:2023.3.27@EAP
2019
# PHP Plugin - https://plugins.jetbrains.com/plugin/6610-php/versions
2120
# Terminal Plugin - https://plugins.jetbrains.com/plugin/13123-terminal/versions
22-
platformPlugins = com.jetbrains.php:241.14494.240, Git4Idea, org.jetbrains.plugins.terminal:241.14494.150, org.jetbrains.plugins.remote-run
21+
platformPlugins = com.jetbrains.php:242.20224.427, org.jetbrains.plugins.terminal:242.20224.237
22+
23+
# Example: platformBundledPlugins = com.intellij.java
24+
platformBundledPlugins = com.intellij.java, Git4Idea, org.jetbrains.plugins.remote-run
2325

2426
# Gradle Releases -> https://github.com/gradle/gradle/releases
25-
gradleVersion = 8.6
27+
gradleVersion = 8.9
2628

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

gradle/libs.versions.toml

+5-3
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,11 @@ kotlinxSerializationJson = "1.3.3"
66
detektFormatting = "1.23.1"
77

88
# plugins
9-
kotlin = "1.9.23"
10-
changelog = "2.2.0"
9+
kotlin = "1.9.25"
10+
changelog = "2.2.1"
11+
intelliJPlatform = "2.0.1"
1112
gradleIntelliJPlugin = "1.17.2"
12-
kotlinSerialization = "1.6.21"
13+
kotlinSerialization = "1.7.2"
1314
gradleDiktatPlugin = "1.2.5"
1415
gradleDetektPlugin = "1.23.1"
1516

@@ -26,3 +27,4 @@ gradleIntelliJPlugin = { id = "org.jetbrains.intellij", version.ref = "gradleInt
2627
kotlinSerialization = { id = "org.jetbrains.kotlin.plugin.serialization", version.ref = "kotlinSerialization" }
2728
gradleDiktatPlugin = { id = "org.cqfn.diktat.diktat-gradle-plugin", version.ref = "gradleDiktatPlugin" }
2829
gradleDetektPlugin = { id = "io.gitlab.arturbosch.detekt", version.ref = "gradleDetektPlugin" }
30+
intelliJPlatform = { id = "org.jetbrains.intellij.platform", version.ref = "intelliJPlatform" }

gradle/wrapper/gradle-wrapper.jar

42 Bytes
Binary file not shown.

gradle/wrapper/gradle-wrapper.properties

+1-1
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.6-bin.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.9-bin.zip
44
networkTimeout=10000
55
validateDistributionUrl=true
66
zipStoreBase=GRADLE_USER_HOME

gradlew

+5-2
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@
1515
# See the License for the specific language governing permissions and
1616
# limitations under the License.
1717
#
18+
# SPDX-License-Identifier: Apache-2.0
19+
#
1820

1921
##############################################################################
2022
#
@@ -55,7 +57,7 @@
5557
# Darwin, MinGW, and NonStop.
5658
#
5759
# (3) This script is generated from the Groovy template
58-
# https://github.com/gradle/gradle/blob/HEAD/subprojects/plugins/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt
60+
# https://github.com/gradle/gradle/blob/HEAD/platforms/jvm/plugins-application/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt
5961
# within the Gradle project.
6062
#
6163
# You can find Gradle at https://github.com/gradle/gradle/.
@@ -84,7 +86,8 @@ done
8486
# shellcheck disable=SC2034
8587
APP_BASE_NAME=${0##*/}
8688
# Discard cd standard output in case $CDPATH is set (https://github.com/gradle/gradle/issues/25036)
87-
APP_HOME=$( cd "${APP_HOME:-./}" > /dev/null && pwd -P ) || exit
89+
APP_HOME=$( cd -P "${APP_HOME:-./}" > /dev/null && printf '%s
90+
' "$PWD" ) || exit
8891

8992
# Use the maximum available, or set MAX_FD != -1 to use that value.
9093
MAX_FD=maximum

gradlew.bat

+2
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@
1313
@rem See the License for the specific language governing permissions and
1414
@rem limitations under the License.
1515
@rem
16+
@rem SPDX-License-Identifier: Apache-2.0
17+
@rem
1618

1719
@if "%DEBUG%"=="" @echo off
1820
@rem ##########################################################################

0 commit comments

Comments
 (0)