Spotless: licenseHeaderFile shows warning when using Kotlin DSL

Created on 2 Jan 2020  路  3Comments  路  Source: diffplug/spotless

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"))
        }
    }
}

spotless

bug

All 3 comments

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

Was this page helpful?
0 / 5 - 0 ratings