@@ -3,7 +3,8 @@ import com.hierynomus.gradle.license.tasks.LicenseFormat
33import org.jetbrains.intellij.platform.gradle.TestFrameworkType
44
55plugins {
6- id(" org.jetbrains.intellij.platform" ) version " 2.10.5"
6+ id(' java' )
7+ id(" org.jetbrains.intellij.platform" ) version " 2.15.0"
78 id(" com.github.hierynomus.license" ) version " 0.16.1"
89}
910
@@ -36,7 +37,7 @@ intellijPlatform {
3637 projectName = ' MapStruct-Intellij-Plugin'
3738 pluginConfiguration {
3839 ideaVersion {
39- sinceBuild = " 242 "
40+ sinceBuild = " 251 "
4041 untilBuild = provider { null } as Provider<? extends String >
4142 }
4243 }
@@ -95,21 +96,15 @@ def versionToUse = System.getenv().getOrDefault( 'IDEA_VERSION', ideaVersion )
9596def useIdeaInstaller = ! versionToUse. containsIgnoreCase( " EAP" )
9697dependencies {
9798 intellijPlatform {
98- // When versionToUse is 2025.3 or later then there is only a single distribution of IntelliJ
99- // This comparison can be removed if the oldest supported version of idea is 2025.3 (253) or later
100- if ((' 2025.3' <=> versionToUse) <= 0 ){
101- intellijIdea(versionToUse) {
102- useInstaller = useIdeaInstaller
103- }
104- } else {
105- ideaType == ' IC' ? intellijIdeaCommunity(versionToUse, useIdeaInstaller) : intellijIdeaUltimate(versionToUse, useIdeaInstaller)
99+ intellijIdea(versionToUse) {
100+ useInstaller = useIdeaInstaller
106101 }
107102
108103 bundledPlugin( ' com.intellij.java' )
109104 bundledPlugin( ' org.jetbrains.kotlin' )
110105
111106 testFramework( TestFrameworkType.Platform . INSTANCE )
112- testFramework( TestFrameworkType.Bundled . INSTANCE )
107+ testFramework( TestFrameworkType.Plugin.Java . INSTANCE )
113108 }
114109 implementation(' org.mapstruct:mapstruct:1.5.3.Final' )
115110 testImplementation(platform(' org.junit:junit-bom:5.11.0' ))
0 commit comments