aboutsummaryrefslogtreecommitdiff
path: root/buildSrc/build.gradle.kts
diff options
context:
space:
mode:
authorHarsh Shandilya <me@msfjarvis.dev>2021-03-20 13:09:52 +0530
committerHarsh Shandilya <me@msfjarvis.dev>2021-03-20 14:58:17 +0530
commitc85a31f885b75cf4d0a14f8a0f5ce572d8e52239 (patch)
treeaa047f7b51a41af1f58a0d69de40a38418f27a39 /buildSrc/build.gradle.kts
parentfbfe7dcb1e66c6240f8c8e90a85113102a175693 (diff)
buildSrc: properly apply ktfmt plugin and reformat
Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
Diffstat (limited to 'buildSrc/build.gradle.kts')
-rw-r--r--buildSrc/build.gradle.kts10
1 files changed, 9 insertions, 1 deletions
diff --git a/buildSrc/build.gradle.kts b/buildSrc/build.gradle.kts
index 627cab92..685ab88b 100644
--- a/buildSrc/build.gradle.kts
+++ b/buildSrc/build.gradle.kts
@@ -3,7 +3,10 @@
* SPDX-License-Identifier: GPL-3.0-only
*/
-plugins { `kotlin-dsl` }
+plugins {
+ `kotlin-dsl`
+ id("com.ncorti.ktfmt.gradle") version "0.4.0"
+}
repositories {
google()
@@ -13,6 +16,11 @@ repositories {
maven { url = uri("https://kotlin.bintray.com/kotlinx") }
}
+ktfmt {
+ googleStyle()
+ maxWidth.set(120)
+}
+
kotlinDslPluginOptions { experimentalWarning.set(false) }
gradlePlugin {