Switch to a newer version of ktlint

Also start linting build.gradle.kts file

Test: ./gradlew ktlint -> still passing
Change-Id: Ie1f47bc475d0ebf390401c4785c36c6dab55c6d0
diff --git a/build.gradle.kts b/build.gradle.kts
index 59ad311..4a1ca5c 100644
--- a/build.gradle.kts
+++ b/build.gradle.kts
@@ -137,7 +137,7 @@
 
 fun Project.getKtlintConfiguration(): Configuration {
     return configurations.findByName("ktlint") ?: configurations.create("ktlint") {
-        val dependency = project.dependencies.create("com.github.shyiko:ktlint:0.31.0")
+        val dependency = project.dependencies.create("com.pinterest:ktlint:0.33.0")
         dependencies.add(dependency)
     }
 }
@@ -146,14 +146,14 @@
     description = "Check Kotlin code style."
     group = "Verification"
     classpath = getKtlintConfiguration()
-    main = "com.github.shyiko.ktlint.Main"
-    args = listOf("src/**/*.kt")
+    main = "com.pinterest.ktlint.Main"
+    args = listOf("src/**/*.kt", "build.gradle.kts")
 }
 
 tasks.register("ktlintFormat", JavaExec::class.java) {
     description = "Fix Kotlin code style deviations."
     group = "formatting"
     classpath = getKtlintConfiguration()
-    main = "com.github.shyiko.ktlint.Main"
-    args = listOf("-F", "src/**/*.kt")
+    main = "com.pinterest.ktlint.Main"
+    args = listOf("-F", "src/**/*.kt", "build.gradle.kts")
 }