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,28 +38,16 @@ 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"
54-
55- patchPluginXml {
56- changeNotes = provider { changelog. getLatest(). toHTML() }
43+ projectName = ' com.magento.idea.magento2plugin'
44+
45+ pluginConfiguration {
46+ id = ' com.magento.idea.magento2plugin'
47+ name = ' Magento PhpStorm'
48+ version = ' 5.4.0'
49+ description = ' This is a PhpStorm IDE plugin for a better Magento 2 development workflow.'
50+ changeNotes = provider { changelog. getLatest(). toHTML() } as Provider<? extends String >
5751 }
5852}
5953
@@ -114,6 +108,17 @@ dependencies {
114108 testRuntimeOnly(' org.junit.vintage:junit-vintage-engine:5.9.0' )
115109 testRuntimeOnly(" org.junit.platform:junit-platform-launcher:1.9.0" )
116110 testRuntimeOnly(" org.junit.jupiter:junit-jupiter-engine:5.9.00" )
111+
112+ intellijPlatform {
113+ intellijIdeaUltimate ' 2024.2.3'
114+ plugin(" com.jetbrains.php" , phpPluginVersion)
115+ plugin(" com.intellij.lang.jsgraphql" , " 242.20224.155" )
116+ bundledPlugin " JavaScript"
117+ instrumentationTools()
118+ bundledPlugin ' com.intellij.java'
119+
120+ testFramework TestFrameworkType.Platform . INSTANCE
121+ }
117122}
118123
119124test {
0 commit comments