Skip to content

Commit

Permalink
Add ktlint
Browse files Browse the repository at this point in the history
  • Loading branch information
YektaDev authored and joreilly committed Jun 20, 2021
1 parent 72a5997 commit f82eb75
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
7 changes: 5 additions & 2 deletions build.gradle.kts
Expand Up @@ -12,15 +12,18 @@ buildscript {
classpath("com.squareup.sqldelight:gradle-plugin:${Versions.sqlDelight}")
classpath("gradle.plugin.com.github.jengelman.gradle.plugins:shadow:7.0.0")
}
plugins {
id("org.jlleitschuh.gradle.ktlint") version Versions.ktlintGradle
}
}

allprojects {
apply(plugin = "org.jlleitschuh.gradle.ktlint") // Version should be inherited from parent

repositories {
google()
mavenCentral()
maven(url = "https://kotlin.bintray.com/kotlin-js-wrappers/")
maven(url = "https://jitpack.io")
}
}


2 changes: 2 additions & 0 deletions buildSrc/src/main/java/Dependencies.kt
Expand Up @@ -16,6 +16,8 @@ object Versions {
const val junit = "4.13"
const val mockito = "3.7.7"
const val testRunner = "1.3.0"

const val ktlintGradle = "10.1.0"
}


Expand Down

0 comments on commit f82eb75

Please sign in to comment.