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

Reduce eager POM task creation #6041

Merged
merged 1 commit into from
Apr 25, 2023
Merged

Reduce eager POM task creation #6041

merged 1 commit into from
Apr 25, 2023

Conversation

TWiStErRob
Copy link
Member

@TWiStErRob TWiStErRob commented Apr 24, 2023

While reading a Gradle issue @3flex opened, I stumbled upon https://github.com/detekt/detekt/pull/5996/files#diff-8a7fc388e89cfbc32780b6887c089aeb9fecbb1e231a51c553e2c87388af7148R60, which as far as I remember is eager. Also swapped if with withType since there's no need to add the callback on newer versions of Java, JVM running Gradle is not going to change, not even when Toolchains are used.

While reading a Gradle issue @3flex opened, I stumbled upon https://github.com/detekt/detekt/pull/5996/files#diff-8a7fc388e89cfbc32780b6887c089aeb9fecbb1e231a51c553e2c87388af7148R60, which as far as I remember is eager. Also swapped `if` with `withType` since there's no need to add the callback on newer versions of Gradle, JVM running Gradle is not going to change, not even when Toolchains are used.
@TWiStErRob TWiStErRob added build housekeeping Marker for housekeeping tasks and refactorings gradle labels Apr 24, 2023
@TWiStErRob TWiStErRob requested a review from 3flex April 24, 2023 20:11
@codecov
Copy link

codecov bot commented Apr 24, 2023

Codecov Report

Merging #6041 (85dc920) into main (9045cea) will not change coverage.
The diff coverage is n/a.

@@            Coverage Diff            @@
##               main    #6041   +/-   ##
=========================================
  Coverage     84.84%   84.84%           
  Complexity     3944     3944           
=========================================
  Files           561      561           
  Lines         13251    13251           
  Branches       2313     2313           
=========================================
  Hits          11243    11243           
  Misses          868      868           
  Partials       1140     1140           

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@3flex
Copy link
Member

3flex commented Apr 25, 2023

I can't believe I forgot configureEach!

@3flex 3flex merged commit 42a48d5 into main Apr 25, 2023
@3flex 3flex deleted the eager-pom-task branch April 25, 2023 00:29
@github-actions
Copy link

Warnings
⚠️ This PR is approved with no milestone set. If merged, it won't appear in the detekt release notes.

Generated by 🚫 dangerJS against 85dc920

@TWiStErRob
Copy link
Member Author

No worries 🫣, I'm setting a milestone as 23 is just around the corner.

@TWiStErRob TWiStErRob added this to the 1.23.0 milestone Apr 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
build gradle housekeeping Marker for housekeeping tasks and refactorings
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants