Skip to content

Commit 00e247f

Browse files
authored
Add idea 2026.1 to GitHub workflow and bump minimum supported version to 2025.1 (#260)
1 parent df75f8f commit 00e247f

4 files changed

Lines changed: 10 additions & 17 deletions

File tree

.github/workflows/main.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,10 @@ jobs:
88
fail-fast: false
99
matrix:
1010
version:
11-
- { jdk: 21, idea: 2024.2 }
12-
- { jdk: 21, idea: 2024.3 }
1311
- { jdk: 21, idea: 2025.1 }
1412
- { jdk: 21, idea: 2025.2 }
1513
- { jdk: 21, idea: 2025.3 }
14+
- { jdk: 21, idea: 2026.1 }
1615
- { jdk: 21, idea: LATEST-EAP-SNAPSHOT }
1716
name: 'IDEA ${{ matrix.version.idea }}'
1817
env:
@@ -33,7 +32,7 @@ jobs:
3332
- name: 'Generate coverage report'
3433
run: ./gradlew --warning-mode=all jacocoTestReport
3534
- name: 'Upload coverage to Codecov'
36-
if: github.repository == 'mapstruct/mapstruct-idea' && matrix.version.idea == '2024.2'
35+
if: github.repository == 'mapstruct/mapstruct-idea' && matrix.version.idea == '2025.1'
3736
uses: codecov/codecov-action@v5
3837
with:
3938
fail_ci_if_error: true

build.gradle

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@ import com.hierynomus.gradle.license.tasks.LicenseFormat
33
import org.jetbrains.intellij.platform.gradle.TestFrameworkType
44

55
plugins {
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 )
9596
def useIdeaInstaller = !versionToUse.containsIgnoreCase( "EAP" )
9697
dependencies {
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'))

gradle.properties

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,7 @@
22
# https://www.jetbrains.com/intellij-repository/releases
33
# https://www.jetbrains.com/intellij-repository/snapshots
44

5-
ideaVersion = 2024.2
6-
ideaType = IC
5+
ideaVersion = 2025.1
76
sources = true
87
runGenerators = true
98
org.gradle.jvmargs=-Xmx1024m

src/main/resources/META-INF/plugin.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
<vendor url="https://www.mapstruct.org">MapStruct</vendor>
2525

2626
<!-- please see https://www.jetbrains.org/intellij/sdk/docs/basics/getting_started/build_number_ranges.html for description -->
27-
<idea-version since-build="242"/>
27+
<idea-version since-build="251"/>
2828

2929
<!-- please see https://www.jetbrains.org/intellij/sdk/docs/basics/getting_started/plugin_compatibility.html
3030
on how to target different products -->

0 commit comments

Comments
 (0)