Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- task ktlint(type: JavaExec, group: "kotlin verification") {
- description = 'Check Kotlin code style.'
- args 'src/**/*.kt'
- main = 'com.github.shyiko.ktlint.Main'
- classpath = configurations.ktlint + sourceSets.main.output
- }
- task ktFormat(type: JavaExec, group: "kotlin Formatting") {
- description = 'Fix Kotlin code style deviations.'
- args '-F', 'src/**/*.kt'
- main = 'com.github.shyiko.ktlint.Main'
- classpath = configurations.ktlint + sourceSets.main.output
- }
Add Comment
Please, Sign In to add comment