Configuration 'spotless-*' was resolved during configuration time
- Dominant language
- Java
- Stars
- 5.6k
- Forks
- 559
- Avg merge
- 1d 13h
- Merged PRs (30d)
- 34
Description
Starting to get this warning every time I run spotlessApply command on my new Android app project.
```
Configuration 'spotless-1972454365' was resolved during configuration time.
This is a build performance and scalability issue.
See https://github.com/gradle/gradle/issues/2298
Run with --info for a stacktrace.
```
I'm using Gradle 7.4 and here's my root `build.gradle.kts`.
```
// Top-level build file where you can add configuration options common to all sub-projects/modules.
plugins {
id("com.android.application") version "7.3.0" apply false
id("com.android.library") version "7.3.0" apply false
id("org.jetbrains.kotlin.android") version "1.7.10" apply false
id("com.diffplug.spotless") version "6.11.0"
}
subprojects {
apply(plugin = "com.diffplug.spotless")
spotless {
kotlin {
target("**/*.kt")
targetExclude("$buildDir/**/*.kt", "bin/**/*.kt")
ktlint("0.45.2").userData(mapOf("android" to "true"))
trimTrailingWhitespace()
endWithNewline()
}
}
}
```
How do I make that warning go away?
Contributor guide
Assessment
This issue has not been assessed yet.