Skip to content

Commit 84c4175

Browse files
HidaniovldFDanil42Russia
authored
version 1.1.10 for PhpStorm 2025.1 (#63)
Co-authored-by: Vladislav Feofilaktov <vladislavF7@gmail.com> Co-authored-by: Danil Ovchinnikov <danil42worker@gmail.com>
1 parent 192e441 commit 84c4175

20 files changed

+107
-60
lines changed

.github/workflows/build.yml

Lines changed: 38 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
name: Build
2-
32
on:
3+
# Trigger the workflow on pushes to only the 'master' branch (this avoids duplicate checks being run e.g., for dependabot pull requests)
44
push:
55
branches: [ master ]
6+
# Trigger the workflow on any pull request
67
pull_request:
78

89
concurrency:
@@ -11,30 +12,32 @@ concurrency:
1112

1213
jobs:
1314

14-
# Prepare environment and build the plugin
15+
# Prepare the environment and build the plugin
1516
build:
1617
name: Build
1718
runs-on: ubuntu-latest
1819
outputs:
1920
version: ${{ steps.properties.outputs.version }}
2021
changelog: ${{ steps.properties.outputs.changelog }}
21-
pluginVerifierHomeDir: ${{ steps.properties.outputs.pluginVerifierHomeDir }}
2222
steps:
2323

24+
# Free GitHub Actions Environment Disk Space
25+
- name: Maximize Build Space
26+
uses: jlumbroso/free-disk-space@v1.3.1
27+
with:
28+
tool-cache: false
29+
large-packages: false
30+
2431
# Check out the current repository
2532
- name: Fetch Sources
2633
uses: actions/checkout@v4
2734

28-
# Validate wrapper
29-
- name: Gradle Wrapper Validation
30-
uses: gradle/actions/wrapper-validation@v3
31-
32-
# Set up Java environment for the next steps
35+
# Set up the Java environment for the next steps
3336
- name: Setup Java
3437
uses: actions/setup-java@v4
3538
with:
3639
distribution: zulu
37-
java-version: 17
40+
java-version: 21
3841

3942
# Setup Gradle
4043
- name: Setup Gradle
@@ -50,8 +53,6 @@ jobs:
5053
CHANGELOG="$(./gradlew getChangelog --unreleased --no-header --console=plain -q)"
5154
5255
echo "version=$VERSION" >> $GITHUB_OUTPUT
53-
echo "pluginVerifierHomeDir=~/.pluginVerifier" >> $GITHUB_OUTPUT
54-
5556
echo "changelog<<EOF" >> $GITHUB_OUTPUT
5657
echo "$CHANGELOG" >> $GITHUB_OUTPUT
5758
echo "EOF" >> $GITHUB_OUTPUT
@@ -60,7 +61,7 @@ jobs:
6061
- name: Build plugin
6162
run: ./gradlew buildPlugin
6263

63-
# Run tests
64+
# Run tests and upload a code coverage report
6465
test:
6566
name: Test (${{ matrix.os }})
6667
needs: [ build ]
@@ -73,20 +74,30 @@ jobs:
7374
- macos-latest
7475
steps:
7576

77+
# Free GitHub Actions Environment Disk Space
78+
- name: Maximize Build Space
79+
uses: jlumbroso/free-disk-space@v1.3.1
80+
if: runner.os == 'Linux'
81+
with:
82+
tool-cache: false
83+
large-packages: false
84+
7685
# Check out the current repository
7786
- name: Fetch Sources
7887
uses: actions/checkout@v4
7988

80-
# Set up Java environment for the next steps
89+
# Set up the Java environment for the next steps
8190
- name: Setup Java
8291
uses: actions/setup-java@v4
8392
with:
8493
distribution: zulu
85-
java-version: 17
94+
java-version: 21
8695

8796
# Setup Gradle
8897
- name: Setup Gradle
8998
uses: gradle/actions/setup-gradle@v4
99+
with:
100+
cache-read-only: true
90101

91102
# Run tests
92103
- name: Run Tests
@@ -97,7 +108,7 @@ jobs:
97108
if: ${{ failure() }}
98109
uses: actions/upload-artifact@v4
99110
with:
100-
name: tests-result
111+
name: tests-result-${{ matrix.os }}
101112
path: ${{ github.workspace }}/build/reports/tests
102113

103114
# Run plugin structure verification along with IntelliJ Plugin Verifier
@@ -107,24 +118,33 @@ jobs:
107118
runs-on: ubuntu-latest
108119
steps:
109120

121+
# Free GitHub Actions Environment Disk Space
122+
- name: Maximize Build Space
123+
uses: jlumbroso/free-disk-space@v1.3.1
124+
with:
125+
tool-cache: false
126+
large-packages: false
127+
110128
# Check out the current repository
111129
- name: Fetch Sources
112130
uses: actions/checkout@v4
113131

114-
# Set up Java environment for the next steps
132+
# Set up the Java environment for the next steps
115133
- name: Setup Java
116134
uses: actions/setup-java@v4
117135
with:
118136
distribution: zulu
119-
java-version: 17
137+
java-version: 21
120138

121139
# Setup Gradle
122140
- name: Setup Gradle
123141
uses: gradle/actions/setup-gradle@v4
142+
with:
143+
cache-read-only: true
124144

125145
# Run Verify Plugin task and IntelliJ Plugin Verifier tool
126146
- name: Run Plugin Verification tasks
127-
run: ./gradlew verifyPlugin -Dplugin.verifier.home.dir=${{ needs.build.outputs.pluginVerifierHomeDir }}
147+
run: ./gradlew verifyPlugin
128148

129149
# Collect Plugin Verifier Result
130150
- name: Collect Plugin Verifier Result

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,4 @@
55
.qodana
66
build
77
src/test/fixtures/gen/
8+
.kotlin

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
## [Unreleased]
44

5+
## 1.1.10 - 04.08.2025
6+
7+
- Adapt code for PhpStorm 2025.1
8+
59
## 1.1.9 - 31.07.2025
610

711
- Fix `UninitializedPropertyAccessException` in some cases

build.gradle.kts

Lines changed: 21 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,15 @@ plugins {
66
alias(libs.plugins.kotlin) // Kotlin support
77
alias(libs.plugins.intelliJPlatform) // IntelliJ Platform Gradle Plugin
88
alias(libs.plugins.changelog) // Gradle Changelog Plugin
9+
alias(libs.plugins.kover) // Gradle Kover Plugin
910
}
1011

1112
group = providers.gradleProperty("pluginGroup").get()
1213
version = providers.gradleProperty("pluginVersion").get()
1314

1415
// Set the JVM language level used to build the project.
1516
kotlin {
16-
jvmToolchain(17)
17+
jvmToolchain(21)
1718
}
1819

1920
// Configure project's dependencies
@@ -29,6 +30,7 @@ repositories {
2930
// Dependencies are managed with Gradle version catalog - read more: https://docs.gradle.org/current/userguide/platforms.html#sub:version-catalog
3031
dependencies {
3132
testImplementation(libs.junit)
33+
testImplementation(libs.opentest4j)
3234

3335
// IntelliJ Platform Gradle Plugin Dependencies Extension - read more: https://plugins.jetbrains.com/docs/intellij/tools-intellij-platform-gradle-plugin-dependencies-extension.html
3436
intellijPlatform {
@@ -40,16 +42,14 @@ dependencies {
4042
// Plugin Dependencies. Uses `platformPlugins` property from the gradle.properties file for plugin from JetBrains Marketplace.
4143
plugins(providers.gradleProperty("platformPlugins").map { it.split(',') })
4244

43-
instrumentationTools()
44-
pluginVerifier()
45-
zipSigner()
4645
testFramework(TestFrameworkType.Platform)
4746
}
4847
}
4948

5049
// Configure IntelliJ Platform Gradle Plugin - read more: https://plugins.jetbrains.com/docs/intellij/tools-intellij-platform-gradle-plugin-extension.html
5150
intellijPlatform {
5251
pluginConfiguration {
52+
name = providers.gradleProperty("pluginName")
5353
version = providers.gradleProperty("pluginVersion")
5454

5555
val changelog = project.changelog // local variable for configuration cache compatibility
@@ -92,6 +92,23 @@ changelog {
9292
repositoryUrl = providers.gradleProperty("pluginRepositoryUrl")
9393
}
9494

95+
// Configure Gradle Kover Plugin - read more: https://github.com/Kotlin/kotlinx-kover#configuration
96+
kover {
97+
reports {
98+
total {
99+
xml {
100+
onCheck = true
101+
}
102+
}
103+
}
104+
105+
currentProject {
106+
instrumentation {
107+
excludedClasses.add("org.apache.velocity.*")
108+
}
109+
}
110+
}
111+
95112
tasks {
96113
test {
97114
delete("src/test/fixtures/gen")

gradle.properties

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,25 +5,24 @@ pluginName = modulite
55
pluginRepositoryUrl = https://github.com/VKCOM/modulite
66

77
# SemVer format -> https://semver.org
8-
pluginVersion = 1.1.9
8+
pluginVersion = 1.1.10
99

1010
# Supported build number ranges and IntelliJ Platform versions -> https://plugins.jetbrains.com/docs/intellij/build-number-ranges.html
11-
pluginSinceBuild = 243
12-
pluginUntilBuild = 243.*
11+
pluginSinceBuild = 251
12+
pluginUntilBuild = 251.*
1313

1414
# IntelliJ Platform Properties -> https://plugins.jetbrains.com/docs/intellij/tools-gradle-intellij-plugin.html#configuration-intellij-extension
15-
platformType = IU
16-
platformVersion = 2024.3
15+
platformType = PS
16+
platformVersion = 2025.1
1717

1818
# Plugin Dependencies -> https://plugins.jetbrains.com/docs/intellij/plugin-dependencies.html
1919
# Example: platformPlugins = com.jetbrains.php:203.4449.22, org.intellij.scala:2023.3.27@EAP
20-
# PHP Plugin - https://plugins.jetbrains.com/plugin/6610-php/versions
21-
platformPlugins = com.jetbrains.php:243.21565.211
20+
platformPlugins =
2221
# Example: platformBundledPlugins = com.intellij.java
23-
platformBundledPlugins = com.intellij.java, org.jetbrains.plugins.yaml
22+
platformBundledPlugins = com.jetbrains.php, org.jetbrains.plugins.yaml, Git4Idea
2423

2524
# Gradle Releases -> https://github.com/gradle/gradle/releases
26-
gradleVersion = 8.10.2
25+
gradleVersion = 8.14.3
2726

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

gradle/libs.versions.toml

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

56
# plugins
6-
changelog = "2.2.1"
7-
intelliJPlatform = "2.0.1" # TODO: update this in next update: https://youtrack.jetbrains.com/issue/MP-7019
8-
kotlin = "1.9.25"
7+
changelog = "2.3.0"
8+
intelliJPlatform = "2.7.0"
9+
kotlin = "2.2.0"
10+
kover = "0.9.1"
911

1012
[libraries]
1113
junit = { group = "junit", name = "junit", version.ref = "junit" }
14+
opentest4j = { group = "org.opentest4j", name = "opentest4j", version.ref = "opentest4j" }
1215

1316
[plugins]
1417
changelog = { id = "org.jetbrains.changelog", version.ref = "changelog" }
1518
intelliJPlatform = { id = "org.jetbrains.intellij.platform", version.ref = "intelliJPlatform" }
1619
kotlin = { id = "org.jetbrains.kotlin.jvm", version.ref = "kotlin" }
20+
kover = { id = "org.jetbrains.kotlinx.kover", version.ref = "kover" }

gradle/wrapper/gradle-wrapper.jar

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

gradlew

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

gradlew.bat

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

0 commit comments

Comments
 (0)