Guest User

Untitled

a guest
Mar 24th, 2018
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. task ktlint(type: JavaExec, group: "kotlin verification") {
  2. description = 'Check Kotlin code style.'
  3. args 'src/**/*.kt'
  4. main = 'com.github.shyiko.ktlint.Main'
  5. classpath = configurations.ktlint + sourceSets.main.output
  6. }
  7.  
  8. task ktFormat(type: JavaExec, group: "kotlin Formatting") {
  9. description = 'Fix Kotlin code style deviations.'
  10. args '-F', 'src/**/*.kt'
  11. main = 'com.github.shyiko.ktlint.Main'
  12. classpath = configurations.ktlint + sourceSets.main.output
  13. }
Add Comment
Please, Sign In to add comment