Skip to content

Commit f457961

Browse files
committed
use lastest "org.jetbrains.intellij.platform" features and migrate to "compatiblePlugins" for installing plugins
1 parent 00390d9 commit f457961

File tree

2 files changed

+22
-7
lines changed

2 files changed

+22
-7
lines changed

build.gradle.kts

Lines changed: 22 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,18 @@ dependencies {
2929
val type = providers.gradleProperty("platformType")
3030
create(type, version) {
3131
useInstaller = false
32+
useCache = true
3233
}
3334

34-
bundledPlugins(properties("platformBundledPlugins").split(',').map(String::trim).filter(String::isNotEmpty))
35-
plugins(properties("platformPlugins").split(',').map(String::trim).filter(String::isNotEmpty))
35+
bundledPlugins("com.intellij.java", "com.jetbrains.plugins.webDeployment", "org.jetbrains.plugins.yaml", "JavaScript")
36+
37+
compatiblePlugins(
38+
"com.jetbrains.php",
39+
"com.jetbrains.twig",
40+
"com.jetbrains.php.dql",
41+
"de.espend.idea.php.annotation",
42+
"de.espend.idea.php.toolbox"
43+
)
3644

3745
testFramework(TestFrameworkType.Platform)
3846
testFramework(TestFrameworkType.Plugin.Java)
@@ -46,11 +54,23 @@ dependencies {
4654

4755
// Configure Gradle IntelliJ Plugin - read more: https://github.com/JetBrains/gradle-intellij-plugin
4856
intellijPlatform {
57+
val version = providers.gradleProperty("platformVersion")
58+
val type = providers.gradleProperty("platformType")
59+
4960
pluginConfiguration {
5061
name = properties("pluginName")
5162
}
5263
instrumentCode = false
5364
buildSearchableOptions = false
65+
66+
pluginVerification {
67+
ides {
68+
create(type, version) {
69+
useInstaller = false
70+
useCache = true
71+
}
72+
}
73+
}
5474
}
5575

5676
// Configure Gradle Changelog Plugin - read more: https://github.com/JetBrains/gradle-changelog-plugin

gradle.properties

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,6 @@ pluginUntilBuild = 299.*
1717
platformType = IU
1818
platformVersion = 2025.2.5
1919

20-
# Plugin Dependencies -> https://plugins.jetbrains.com/docs/intellij/plugin-dependencies.html
21-
# Example: platformPlugins = com.intellij.java, com.jetbrains.php:203.4449.22
22-
platformPlugins = com.jetbrains.php:252.28238.9,de.espend.idea.php.annotation:12.0.0,de.espend.idea.php.toolbox:6.1.0,com.jetbrains.twig:252.28238.10,com.jetbrains.php.dql:252.23892.360
23-
platformBundledPlugins = com.intellij.java,com.jetbrains.plugins.webDeployment,org.jetbrains.plugins.yaml,JavaScript
24-
2520
# Java language level used to compile sources and to generate the files for - Java 11 is required since 2020.3
2621
javaVersion = 21
2722

0 commit comments

Comments
 (0)