|
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 | | -version '5.3.0' |
| 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' |
24 | 30 | apply plugin: 'org.jetbrains.changelog' |
25 | 31 |
|
26 | | -def phpPluginVersion = System.getProperty("phpPluginVersion", "241.14494.158") |
27 | | -def ideaVersion = System.getProperty("ideaVersion", "2024.1") |
| 32 | +def phpPluginVersion = System.getProperty("phpPluginVersion", "242.20224.427") |
| 33 | +def ideaVersion = System.getProperty("ideaVersion", "2024.2") |
28 | 34 | def javaVersion = 17 |
29 | 35 |
|
30 | 36 | java { |
31 | 37 | sourceCompatibility = javaVersion |
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:241.14494.150', |
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> |
57 | 51 | } |
58 | 52 | } |
59 | 53 |
|
@@ -114,6 +108,17 @@ dependencies { |
114 | 108 | testRuntimeOnly('org.junit.vintage:junit-vintage-engine:5.9.0') |
115 | 109 | testRuntimeOnly("org.junit.platform:junit-platform-launcher:1.9.0") |
116 | 110 | 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 | + } |
117 | 122 | } |
118 | 123 |
|
119 | 124 | test { |
|
0 commit comments