diff options
author | Harsh Shandilya <msfjarvis@gmail.com> | 2019-10-02 18:11:22 +0530 |
---|---|---|
committer | Harsh Shandilya <msfjarvis@gmail.com> | 2019-10-02 18:11:22 +0530 |
commit | ee3535482a1a54774698544164baf8f3b908368c (patch) | |
tree | 7599805e6005bfd1d99e48c538a53907dddab007 /buildSrc/src/main | |
parent | f1f59dc1ed26c2351dc31e55902ff8e4b5a6ed0e (diff) |
treewide: Add copyrights
Signed-off-by: Harsh Shandilya <msfjarvis@gmail.com>
Diffstat (limited to 'buildSrc/src/main')
-rw-r--r-- | buildSrc/src/main/kotlin/SpotlessConfiguration.kt | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/buildSrc/src/main/kotlin/SpotlessConfiguration.kt b/buildSrc/src/main/kotlin/SpotlessConfiguration.kt index 3c183c5f..71cfc558 100644 --- a/buildSrc/src/main/kotlin/SpotlessConfiguration.kt +++ b/buildSrc/src/main/kotlin/SpotlessConfiguration.kt @@ -1,3 +1,7 @@ +/* + * Copyright © 2014-2019 The Android Password Store Authors. All Rights Reserved. + * SPDX-License-Identifier: GPL-2.0 + */ import com.diffplug.gradle.spotless.SpotlessExtension import com.diffplug.gradle.spotless.SpotlessPlugin import org.gradle.api.Project @@ -17,8 +21,8 @@ fun Project.configureSpotless() { java { target("**/src/main/**/*.java") trimTrailingWhitespace() - // @Suppress("INACCESSIBLE_TYPE") - // licenseHeader(kotlinLicenseHeader) + @Suppress("INACCESSIBLE_TYPE") + licenseHeader(kotlinLicenseHeader) removeUnusedImports() googleJavaFormat().aosp() endWithNewline() @@ -27,8 +31,8 @@ fun Project.configureSpotless() { kotlinGradle { target("*.gradle.kts", "gradle/*.gradle.kts", "buildSrc/*.gradle.kts") ktlint("0.31.0").userData(mapOf("indent_size" to "4", "continuation_indent_size" to "4")) - // @Suppress("INACCESSIBLE_TYPE") - // licenseHeader(kotlinLicenseHeader, "import|tasks|apply|plugins|include") + @Suppress("INACCESSIBLE_TYPE") + licenseHeader(kotlinLicenseHeader, "import|tasks|apply|plugins|include|buildscript") trimTrailingWhitespace() indentWithSpaces() endWithNewline() @@ -37,8 +41,8 @@ fun Project.configureSpotless() { kotlin { target("**/src/main/**/*.kt", "buildSrc/**/*.kt") ktlint("0.31.0").userData(mapOf("indent_size" to "4", "continuation_indent_size" to "4")) - // @Suppress("INACCESSIBLE_TYPE") - // licenseHeader(kotlinLicenseHeader) + @Suppress("INACCESSIBLE_TYPE") + licenseHeader(kotlinLicenseHeader, "import|package|class|object|@file") trimTrailingWhitespace() indentWithSpaces() endWithNewline() |