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

licenseHeaderFile shows warning when using Kotlin DSL #505

Closed
Sathawale27 opened this issue Jan 2, 2020 · 3 comments
Closed

licenseHeaderFile shows warning when using Kotlin DSL #505

Sathawale27 opened this issue Jan 2, 2020 · 3 comments
Labels

Comments

@Sathawale27
Copy link

Sathawale27 commented Jan 2, 2020

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

@nedtwigg nedtwigg added the bug label Jan 2, 2020
@nedtwigg
Copy link
Member

nedtwigg commented Jan 2, 2020

Thanks for reporting! The fix is trivial, and will be in the next release.

@JLLeitschuh
Copy link
Member

You know, I've been seeing that warning for almost 2 years now and never reported it. I really should have, sorry about that.

@nedtwigg
Copy link
Member

Fixed in 3.27.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants