Created
April 17, 2020 11:20
-
-
Save kalaiselvan369/83fa51f93b88572de9daa9efc4f5e53b to your computer and use it in GitHub Desktop.
Gradle file for spotless plugin
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apply plugin: 'com.diffplug.gradle.spotless' | |
spotless { | |
kotlin { | |
target '**/*.kt' | |
ktlint("0.36.0") | |
//ktlint("0.36.0").userData(['disabled_rules': 'no-wildcard-imports']) | |
trimTrailingWhitespace() | |
indentWithSpaces() | |
endWithNewline() | |
} | |
} |
In your app/buid.gradle or any other module level gradle, you can import as this
apply from: "$rootDir/spotless.gradle"
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
How can i import this file inside the root build.gradle (?)