intellij-platform-gradle-plugin icon indicating copy to clipboard operation
intellij-platform-gradle-plugin copied to clipboard

Avoid unnecessary task configuration

Open 3flex opened this issue 3 years ago • 0 comments

Pull Request Details

I noticed in a project that uses this plugin that many tasks were created during the configuration phase which seemed unnecessary.

Description

I have applied various techniques to avoid unnecessary task configuration. As written here https://docs.gradle.org/current/userguide/task_configuration_avoidance.html:

The configuration avoidance API avoids configuring tasks if they will not be needed during the course of a build, which can have a significant impact on total configuration time.

Related Issue

#1110

Motivation and Context

Improves Gradle's performance.

How Has This Been Tested

Applying gradle-intellij-plugin using Gradle's composite build feature in the cashapp/sqldelight project which uses this plugin.

Types of changes

  • [ ] Docs change / refactoring / dependency upgrade
  • [x] Bug fix (non-breaking change which fixes an issue)
  • [ ] New feature (non-breaking change which adds functionality)
  • [ ] Breaking change (fix or feature that would cause existing functionality to change)

Checklist

  • [x] I have read the CONTRIBUTING document.
  • [x] My code follows the code style of this project.
  • [ ] My change requires a change to the documentation.
  • [ ] I have updated the documentation accordingly.
  • [x] I have included my change in the CHANGELOG.
  • [ ] I have added tests to cover my changes.
  • [ ] All new and existing tests passed.

3flex avatar Sep 21 '22 08:09 3flex