Created
October 22, 2018 08:12
-
-
Save sanogueralorenzo/e3b289cb1b173e8a8bbebc7a85c87270 to your computer and use it in GitHub Desktop.
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
repositories { | |
jcenter() | |
} | |
configurations { | |
ktlint | |
} | |
dependencies { | |
ktlint "com.github.shyiko:ktlint:0.29.0" | |
} | |
task ktlint(type: JavaExec, group: "verification") { | |
description = "Check Kotlin code style." | |
classpath = configurations.ktlint | |
main = "com.github.shyiko.ktlint.Main" | |
args "src/**/*.kt" | |
} | |
task ktlintFormat(type: JavaExec, group: "formatting") { | |
description = "Fix Kotlin code style deviations." | |
classpath = configurations.ktlint | |
main = "com.github.shyiko.ktlint.Main" | |
args "-F", "src/**/*.kt" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment