22 * Copyright © Magento, Inc. All rights reserved.
33 * See COPYING.txt for license details.
44 */
5+ import org.jetbrains.intellij.platform.gradle.TestFrameworkType
56
67plugins {
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
1314repositories {
1415 mavenCentral()
16+
17+ intellijPlatform {
18+ defaultRepositories()
19+ marketplace()
20+ }
1521}
1622
1723group ' com.magento.idea'
1824version ' 5.4.0'
1925
20- apply plugin : ' org.jetbrains.intellij'
26+ apply plugin : ' org.jetbrains.intellij.platform '
2127apply plugin : ' java'
2228apply plugin : ' idea'
2329apply 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
119120test {
0 commit comments