Add ktlint

This commit is contained in:
Ali Khaleqi Yekta 2021-06-19 13:36:01 +04:30 committed by John O'Reilly
parent 72a59972e8
commit f82eb75e4d
2 changed files with 7 additions and 2 deletions

View file

@ -12,9 +12,14 @@ buildscript {
classpath("com.squareup.sqldelight:gradle-plugin:${Versions.sqlDelight}") classpath("com.squareup.sqldelight:gradle-plugin:${Versions.sqlDelight}")
classpath("gradle.plugin.com.github.jengelman.gradle.plugins:shadow:7.0.0") classpath("gradle.plugin.com.github.jengelman.gradle.plugins:shadow:7.0.0")
} }
plugins {
id("org.jlleitschuh.gradle.ktlint") version Versions.ktlintGradle
}
} }
allprojects { allprojects {
apply(plugin = "org.jlleitschuh.gradle.ktlint") // Version should be inherited from parent
repositories { repositories {
google() google()
mavenCentral() mavenCentral()
@ -22,5 +27,3 @@ allprojects {
maven(url = "https://jitpack.io") maven(url = "https://jitpack.io")
} }
} }

View file

@ -16,6 +16,8 @@ object Versions {
const val junit = "4.13" const val junit = "4.13"
const val mockito = "3.7.7" const val mockito = "3.7.7"
const val testRunner = "1.3.0" const val testRunner = "1.3.0"
const val ktlintGradle = "10.1.0"
} }