2020-02-01 16:01:58 -03:00
|
|
|
buildscript {
|
|
|
|
|
apply from: 'versions.gradle'
|
|
|
|
|
|
|
|
|
|
repositories {
|
|
|
|
|
google()
|
|
|
|
|
jcenter()
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
dependencies {
|
|
|
|
|
classpath deps.project.kotlin
|
|
|
|
|
classpath deps.project.gradle
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2020-02-01 18:14:00 -03:00
|
|
|
plugins {
|
|
|
|
|
id "io.gitlab.arturbosch.detekt" version "1.5.0"
|
|
|
|
|
}
|
|
|
|
|
|
2020-02-01 16:01:58 -03:00
|
|
|
allprojects {
|
|
|
|
|
addRepos(repositories)
|
|
|
|
|
}
|
|
|
|
|
|
2020-02-01 18:14:00 -03:00
|
|
|
detekt {
|
|
|
|
|
version = "1.5.0"
|
|
|
|
|
autoCorrect = true
|
|
|
|
|
failFast = false
|
|
|
|
|
config = files("$rootDir/tools/detekt.yml")
|
|
|
|
|
input = files(rootProject.projectDir)
|
|
|
|
|
|
|
|
|
|
reports {
|
|
|
|
|
html {
|
|
|
|
|
enabled = true
|
2020-02-01 18:59:45 -03:00
|
|
|
destination = file("$rootDir/build/reports/detekt/report.html")
|
2020-02-01 18:14:00 -03:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2020-02-01 16:01:58 -03:00
|
|
|
task clean(type: Delete) {
|
|
|
|
|
delete rootProject.buildDir
|
|
|
|
|
}
|