2
2
* Copyright © Magento, Inc. All rights reserved.
3
3
* See COPYING.txt for license details.
4
4
*/
5
+ import org.jetbrains.intellij.platform.gradle.TestFrameworkType
5
6
6
7
plugins {
7
- id ' org.jetbrains.intellij' version ' 1.17.3 '
8
+ id " org.jetbrains.intellij.platform " version " 2.1.0 "
8
9
id ' checkstyle'
9
10
id ' pmd'
10
11
id ' org.jetbrains.changelog' version ' 2.2.0'
11
12
}
12
13
13
14
repositories {
14
15
mavenCentral()
16
+
17
+ intellijPlatform {
18
+ defaultRepositories()
19
+ marketplace()
20
+ }
15
21
}
16
22
17
23
group ' com.magento.idea'
18
24
version ' 5.4.0'
19
25
20
- apply plugin : ' org.jetbrains.intellij'
26
+ apply plugin : ' org.jetbrains.intellij.platform '
21
27
apply plugin : ' java'
22
28
apply plugin : ' idea'
23
29
apply plugin : ' groovy'
@@ -32,25 +38,9 @@ java {
32
38
targetCompatibility = javaVersion
33
39
}
34
40
35
- intellij {
41
+ intellijPlatform {
36
42
version = ideaVersion
37
- type = ' IU'
38
- pluginName = ' com.magento.idea.magento2plugin'
39
- plugins = [
40
- " com.jetbrains.php:$phpPluginVersion " ,
41
- ' yaml' ,
42
- ' java-i18n' ,
43
- ' properties' ,
44
- ' com.intellij.css' ,
45
- ' JavaScript' ,
46
- ' com.intellij.lang.jsgraphql:242.20224.155' ,
47
- ' platform-images' ,
48
- ' copyright'
49
- ]
50
- updateSinceUntilBuild = false
51
- sameSinceUntilBuild = false
52
- downloadSources = ! Boolean . valueOf(System . getenv(' CI' ))
53
- sandboxDir = " ${ project.rootDir} /.idea-sandbox"
43
+ projectName = ' com.magento.idea.magento2plugin'
54
44
55
45
patchPluginXml {
56
46
changeNotes = provider { changelog. getLatest(). toHTML() }
@@ -114,6 +104,17 @@ dependencies {
114
104
testRuntimeOnly(' org.junit.vintage:junit-vintage-engine:5.9.0' )
115
105
testRuntimeOnly(" org.junit.platform:junit-platform-launcher:1.9.0" )
116
106
testRuntimeOnly(" org.junit.jupiter:junit-jupiter-engine:5.9.00" )
107
+
108
+ intellijPlatform {
109
+ intellijIdeaUltimate ' 2024.2.3'
110
+ plugin(" com.jetbrains.php" , phpPluginVersion)
111
+ plugin(" com.intellij.lang.jsgraphql" , " 242.20224.155" )
112
+ bundledPlugin " JavaScript"
113
+ instrumentationTools()
114
+ bundledPlugin ' com.intellij.java'
115
+
116
+ testFramework TestFrameworkType.Platform . INSTANCE
117
+ }
117
118
}
118
119
119
120
test {
0 commit comments