2018-12-07 20:11:50 +00:00
|
|
|
// Top-level build file where you can add configuration options common to all sub-projects/modules.
|
|
|
|
|
|
|
|
buildscript {
|
|
|
|
repositories {
|
|
|
|
google()
|
|
|
|
jcenter()
|
|
|
|
}
|
|
|
|
dependencies {
|
2019-01-07 21:47:47 +00:00
|
|
|
classpath Deps.tools_androidgradle
|
|
|
|
classpath Deps.tools_kotlingradle
|
2019-02-15 21:19:14 +00:00
|
|
|
classpath Deps.tools_appservicesgradle
|
2019-02-08 18:35:48 +00:00
|
|
|
classpath Deps.androidx_safeargs
|
2019-02-20 02:10:17 +00:00
|
|
|
classpath Deps.allopen
|
2018-12-07 20:11:50 +00:00
|
|
|
|
|
|
|
// NOTE: Do not place your application dependencies here; they belong
|
|
|
|
// in the individual module build.gradle files
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-01-30 16:29:45 +00:00
|
|
|
plugins {
|
|
|
|
id("io.gitlab.arturbosch.detekt").version("1.0.0.RC9.2")
|
|
|
|
}
|
|
|
|
|
2018-12-07 20:11:50 +00:00
|
|
|
allprojects {
|
|
|
|
repositories {
|
|
|
|
google()
|
2019-01-15 18:47:38 +00:00
|
|
|
maven {
|
|
|
|
url "https://snapshots.maven.mozilla.org/maven2"
|
|
|
|
}
|
2019-01-07 21:47:47 +00:00
|
|
|
maven {
|
|
|
|
url "https://maven.mozilla.org/maven2"
|
|
|
|
}
|
2019-03-07 07:19:31 +00:00
|
|
|
maven {
|
|
|
|
url "https://repo.leanplum.com/"
|
|
|
|
}
|
2018-12-07 20:11:50 +00:00
|
|
|
jcenter()
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
task clean(type: Delete) {
|
|
|
|
delete rootProject.buildDir
|
2019-01-15 18:47:38 +00:00
|
|
|
}
|
2019-01-30 16:29:45 +00:00
|
|
|
|
|
|
|
detekt {
|
|
|
|
// The version number is duplicated, please refer to plugins block for more details
|
|
|
|
version = "1.0.0.RC9.2"
|
2019-03-18 14:50:41 +00:00
|
|
|
input = files("$projectDir/app/src", "$projectDir/architecture/src")
|
2019-01-30 16:29:45 +00:00
|
|
|
config = files("$projectDir/config/detekt.yml")
|
|
|
|
filters = ".*test.*,.*/resources/.*,.*/tmp/.*"
|
|
|
|
|
|
|
|
reports {
|
|
|
|
html {
|
|
|
|
enabled = true
|
|
|
|
destination = file("$projectDir/build/reports/detekt.html")
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
configurations {
|
|
|
|
ktlint
|
|
|
|
}
|
|
|
|
|
|
|
|
dependencies {
|
2019-03-15 03:47:48 +00:00
|
|
|
ktlint "com.github.shyiko:ktlint:0.31.0"
|
2019-01-30 16:29:45 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
task ktlint(type: JavaExec, group: "verification") {
|
|
|
|
description = "Check Kotlin code style."
|
|
|
|
classpath = configurations.ktlint
|
|
|
|
main = "com.github.shyiko.ktlint.Main"
|
2019-03-15 16:26:07 +00:00
|
|
|
args "app/src/**/*.kt", "architecture/src/**/*.kt"
|
2019-01-30 16:29:45 +00:00
|
|
|
}
|