-
Notifications
You must be signed in to change notification settings - Fork 15
Bump target IDEA version to 2024.2 #104
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Will this not break support for older IntelliJ versions? |
The compatible version range should be Valkyrie/idea-plugin/build.gradle.kts Lines 66 to 69 in 5af1a42
|
I verified the distribution on 2024.1.4 and 2024.2, both work well. |
https://github.com/ComposeGears/Valkyrie/actions/runs/10283050259/job/28456063748?pr=104
|
6da6766
to
0ff4ff5
Compare
May hold this PR until we are ready to drop 2024.1 supports. |
@Goooler I'm going to bump target IDEA version to 2024.2, will update your PR 🙂 |
0803379
to
01dc8bc
Compare
4266e2f
to
b4e21f9
Compare
WalkthroughThis pull request updates and refines the project’s configuration. The Java version in GitHub workflows and Gradle scripts is raised from 17 to 21. Several build files have been modified to simplify dependency management by removing deprecated configurations and explicitly excluding transitive KotlinX dependencies. Additionally, test files have been updated to replace the EDT helper method (using Changes
Sequence Diagram(s)sequenceDiagram
participant TestRunner
participant EDT
TestRunner->>EDT: runInEdtAndGet { Execute test code }
EDT-->>TestRunner: Return test result
Poem
Tip ⚡🧪 Multi-step agentic review comment chat (experimental)
✨ Finishing Touches
🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
@coderabbitai review |
✅ Actions performedReview triggered.
|
4b2ee7c
to
b4e21f9
Compare
@Goooler could you please take a look? 🙂 |
43e9ee4
to
9b9597f
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 0
🧹 Nitpick comments (1)
idea-plugin/build.gradle.kts (1)
23-50
: Consolidate Dependency Exclusions for Kotlinx.
Multiple dependency blocks now exclude the"org.jetbrains.kotlinx"
group, which is effective for preventing unwanted transitive dependencies. To improve maintainability and reduce repetition, consider refactoring these repeated exclusions into a common configuration or helper method.
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (10)
.github/workflows/release.yml
(1 hunks)build.gradle.kts
(1 hunks)cli/build.gradle.kts
(1 hunks)components/extensions/build.gradle.kts
(1 hunks)components/ir-compose/build.gradle.kts
(1 hunks)components/ir/build.gradle.kts
(1 hunks)components/parser/ktfile/build.gradle.kts
(1 hunks)components/parser/svgxml/build.gradle.kts
(1 hunks)gradle/libs.versions.toml
(1 hunks)idea-plugin/build.gradle.kts
(3 hunks)
🚧 Files skipped from review as they are similar to previous changes (7)
- components/parser/svgxml/build.gradle.kts
- components/ir/build.gradle.kts
- components/extensions/build.gradle.kts
- .github/workflows/release.yml
- components/parser/ktfile/build.gradle.kts
- components/ir-compose/build.gradle.kts
- gradle/libs.versions.toml
⏰ Context from checks skipped due to timeout of 90000ms (2)
- GitHub Check: build (windows-latest)
- GitHub Check: build (ubuntu-latest)
🔇 Additional comments (4)
cli/build.gradle.kts (1)
17-20
: Set Java Compatibility to Java 21.
You've correctly added ajava
block withsourceCompatibility
andtargetCompatibility
set toJavaVersion.VERSION_21
. This change ensures the CLI module is compiled using Java 21, aligning with the updated IntelliJ IDEA 2024.2 requirements.build.gradle.kts (1)
45-47
: Update IntelliJ Platform Dependency Configuration.
The update tointellijIdeaCommunity("2024.2")
and the change tobundledPlugin("org.jetbrains.kotlin")
clearly specify the target IDEA version and core plugin dependency. This makes the configuration more explicit and ensures compatibility with IDEA 2024.2.idea-plugin/build.gradle.kts (2)
67-70
: Align IntelliJ Platform Configuration.
The update ofsinceBuild
to"242"
correctly reflects the new minimum build requirement for IntelliJ IDEA 2024.2. Please verify that this change is in line with your team's strategy regarding support for older versions (e.g., 2024.1), as noted in the PR objectives.
82-87
: Ensure Java 21 is Set for the IDEA Plugin.
The Java block now sets bothsourceCompatibility
andtargetCompatibility
toJavaVersion.VERSION_21
, ensuring that the IDEA plugin is built with the correct Java version required by IntelliJ IDEA 2024.2. This change is consistent with other modules and the overall upgrade effort.
9b9597f
to
c2afc53
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code Review
The pull request updates the target IDEA version to 2024.2 and makes necessary adjustments to the build configurations. The changes include updating the IntelliJ platform dependency, setting the Java source and target compatibility to version 21, and excluding conflicting libraries. Overall, the changes seem reasonable and necessary for maintaining compatibility with the latest IDEA version.
Summary of Findings
- Java Version Consistency: The Java version is updated in
cli/build.gradle.kts
andidea-plugin/build.gradle.kts
, but it's important to ensure that all modules consistently use Java 21 to avoid potential compatibility issues. - Compose Material Dependency: The change from
compose.material3
tocompose.material
incomponents/parser/ktfile/build.gradle.kts
should be verified to ensure it doesn't introduce any breaking changes or regressions in the UI components. - Test Framework Updates: The updates in
KtFileToImageVectorParserTest.kt
andIconPackPsiParserTest.kt
replaceinvokeAndWaitIfNeeded
withrunInEdtAndGet
. It's crucial to ensure that these changes don't affect the test execution or introduce any unexpected behavior.
Merge Readiness
The pull request appears to be on the right track for updating the IDEA version. However, the points raised in the findings summary should be carefully considered and addressed before merging. I am unable to approve this pull request, and recommend that others review and approve this code before merging. Specifically, the change in Compose Material dependency and the test framework updates should be verified to ensure no regressions are introduced. Once these concerns are addressed, the pull request should be ready for merging.
...c/test/kotlin/io/github/composegears/valkyrie/parser/ktfile/KtFileToImageVectorParserTest.kt
Show resolved
Hide resolved
...c/test/kotlin/io/github/composegears/valkyrie/parser/ktfile/KtFileToImageVectorParserTest.kt
Show resolved
Hide resolved
...c/test/kotlin/io/github/composegears/valkyrie/parser/ktfile/KtFileToImageVectorParserTest.kt
Show resolved
Hide resolved
c2afc53
to
37f879d
Compare
37f879d
to
8d63afd
Compare
@Goooler finalized pr |
* Use Java 21 and bump min IDEA requirement * Update tests * Migrate to IDEA 2024.2 (242), exclude 3rd party library coroutines * Update configuration --------- Co-authored-by: Yahor Urbanovich <yahor_urbanovich@epam.com>
Summary by CodeRabbit