Skip to content
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

Updated Gradle Intellij plugin to version 2 [WIP] #2473

Conversation

vitaliyboykocontributor
Copy link
Contributor

Summary
This pull request upgrades the Gradle IntelliJ Plugin to version 2, introducing significant improvements and updates for better compatibility, usability, and adherence to modern standards.

Key Changes
Removal of Paid Ultimate Version Requirements:

The project no longer requires the paid Ultimate edition of IntelliJ IDEA. It can now run seamlessly in the Community edition.

Adoption of Latest Best Practices:

Updated to align with the latest best practices introduced in the official IntelliJ Plugin Template repository.
Enhanced PHPStorm Compatibility:

Enabled code emulation directly within PHPStorm, eliminating the dependency on IntelliJ IDEA for this functionality.
Modernization and Maintenance:

Ensures the project remains up-to-date with the latest plugin versions and development standards.

This commit introduces a new `ruleset.xml` file for PMD, specifying custom rules and exclusions tailored for Magento's codebase. It ensures consistency in code quality by excluding irrelevant checks and focusing on important patterns. This configuration is critical for integrating automated code analysis into the project.
This commit introduces a `.phpstorm.meta.php` file to improve developer experience with dependency injection autocomplete in Magento. It maps common classes, arguments, and expected values, enhancing code completion and reducing errors during development.
The file was renamed in the same directory to align with naming conventions and improve readability. This change does not alter functionality but helps maintain a more organized structure.
Adjusted file paths for various XML test data files to ensure consistency and proper organization. This includes updates to completion, reference, generation, and inspection test cases across multiple domains.
Replaced `fillDefaultProperties` method with direct property merging for cleaner code and removed unused imports. Updated Gradle dependencies to JUnit 5.10.0 and excluded specific test paths while enabling `useJUnitPlatform()` for improved test management.
Applied the `staticChecks.gradle` script to enforce static code analysis during the build process. This integration helps maintain code quality and consistency across the project.
Moved static check configurations (Checkstyle and PMD) from the `staticChecks.gradle` script into `build.gradle.kts`. This centralizes Gradle setup into one file and leverages Kotlin DSL for better type safety and maintainability.
Upgraded Gradle IntelliJ plugin to version 2, enabling support for IntelliJ IDEA Community edition and eliminating the need for the Ultimate edition. Also refined the publishing token environment variable for better clarity and consistency.
@VitaliyBoyko VitaliyBoyko merged commit 6131779 into magento:5.4.0-develop Feb 8, 2025
4 of 5 checks passed
@VitaliyBoyko VitaliyBoyko deleted the upgrade-gradle-to-version-2 branch February 8, 2025 19:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants