Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import org.jetbrains.changelog.Changelog
import org.jetbrains.changelog.markdownToHTML
import org.jetbrains.intellij.platform.gradle.IntelliJPlatformType
import org.jetbrains.intellij.platform.gradle.TestFrameworkType

plugins {
Expand Down Expand Up @@ -96,7 +97,11 @@ intellijPlatform {

pluginVerification {
ides {
recommended()
// Use specific IDE versions that exist instead of recommended()
// which may select non-existent future versions
ide(IntelliJPlatformType.IntellijIdeaCommunity, "2024.1.7")
ide(IntelliJPlatformType.IntellijIdeaCommunity, "2024.2.4")
ide(IntelliJPlatformType.IntellijIdeaCommunity, "2024.3.1")
Comment on lines +102 to +104

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

To improve maintainability and avoid repetition, consider defining the versions in a list and iterating over it. This makes it easier to manage the list of versions in the future and adheres to the DRY (Don't Repeat Yourself) principle, as you only need to change the IDE type in one place if necessary.

            listOf(
                "2024.1.7",
                "2024.2.4",
                "2024.3.1"
            ).forEach { version ->
                ide(IntelliJPlatformType.IntellijIdeaCommunity, version)
            }

}
}
}
Expand Down
Loading