diffplug / diffplug/spotless

Gradle task spotlessInternalRegisterDependencies configured eagerly

Open
#1,341 0 comments 2 reactions 0 assignees View on GitHub
bug-unconfirmed
Dominant language
Java
Stars
5.6k
Forks
559
Avg merge
1d 13h
Merged PRs (30d)
34

Description

When running `./gradlew help --scan` the Build Scan reports task `spotlessInternalRegisterDependencies` is configured. Gradle's task configuration avoidance feature should be used so it's only configured when needed.

Affects spotless on main branch. The problem was introduced by https://github.com/diffplug/spotless/pull/1039, thanks to `get()` call here:

https://github.com/diffplug/spotless/blob/f4ee554c4600360a678c5faa2e447df919d536f2/plugin-gradle/src/main/java/com/diffplug/gradle/spotless/SpotlessExtension.java#L52

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.