Skip to content

Commit bc70b52

Browse files
committed
Updated intellijPlatform plugin to fix tests
1 parent 3a8b981 commit bc70b52

File tree

1 file changed

+21
-20
lines changed

1 file changed

+21
-20
lines changed

build.gradle

Lines changed: 21 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -2,22 +2,28 @@
22
* Copyright © Magento, Inc. All rights reserved.
33
* See COPYING.txt for license details.
44
*/
5+
import org.jetbrains.intellij.platform.gradle.TestFrameworkType
56

67
plugins {
7-
id 'org.jetbrains.intellij' version '1.17.3'
8+
id "org.jetbrains.intellij.platform" version "2.1.0"
89
id 'checkstyle'
910
id 'pmd'
1011
id 'org.jetbrains.changelog' version '2.2.0'
1112
}
1213

1314
repositories {
1415
mavenCentral()
16+
17+
intellijPlatform {
18+
defaultRepositories()
19+
marketplace()
20+
}
1521
}
1622

1723
group 'com.magento.idea'
1824
version '5.4.0'
1925

20-
apply plugin: 'org.jetbrains.intellij'
26+
apply plugin: 'org.jetbrains.intellij.platform'
2127
apply plugin: 'java'
2228
apply plugin: 'idea'
2329
apply plugin: 'groovy'
@@ -32,25 +38,9 @@ java {
3238
targetCompatibility = javaVersion
3339
}
3440

35-
intellij {
41+
intellijPlatform {
3642
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'
5444

5545
patchPluginXml {
5646
changeNotes = provider { changelog.getLatest().toHTML() }
@@ -114,6 +104,17 @@ dependencies {
114104
testRuntimeOnly('org.junit.vintage:junit-vintage-engine:5.9.0')
115105
testRuntimeOnly("org.junit.platform:junit-platform-launcher:1.9.0")
116106
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+
}
117118
}
118119

119120
test {

0 commit comments

Comments
 (0)