Problem: Shows warning when tried to set the licenseHeaderFile for all subprojects using Kotlin DSL.
Android Gradle Version: 4.0.0-alpha07
Spotless Version: 3.26.1
Spotless configuration block:
plugins {
id("com.diffplug.gradle.spotless") version ("3.26.1")
}
subprojects {
plugins.apply("com.diffplug.gradle.spotless")
spotless {
kotlin {
target("**/*.kt")
licenseHeaderFile(file("${project.rootDir}/spotless/copyright.kt"))
}
}
}
Thanks for reporting! The fix is trivial, and will be in the next release.
You know, I've been seeing that warning for almost 2 years now and never reported it. I really should have, sorry about that.
Fixed in 3.27.1