This repository has been archived by the owner on Mar 7, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
60 lines (55 loc) · 1.5 KB
/
build.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
buildscript {
ext.dagger_version = '2.16'
ext.dokka_version = '0.9.16'
ext.glide_version = "4.8.0"
ext.jacoco_version = '0.8.2'
ext.kotlin_version = '1.3.21'
ext.rxandroid_version = '2.1.0'
ext.rxjava_version = '2.2.0'
ext.timber_version = '4.7.1'
repositories {
google()
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.3.1'
classpath "org.jacoco:org.jacoco.core:$jacoco_version"
classpath "org.jetbrains.dokka:dokka-android-gradle-plugin:$dokka_version"
classpath "org.jetbrains.kotlin:kotlin-allopen:$kotlin_version"
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
}
}
plugins {
id "io.gitlab.arturbosch.detekt" version "1.0.0-RC12"
}
allprojects {
repositories {
google()
jcenter()
maven { url 'https://jitpack.io' }
}
}
detekt {
toolVersion = "1.0.0-RC12"
config = files("detekt.yml")
input = files(
"app/src/main/java",
"malime.core/src/main/java",
"malime.kitsu/src/main/java",
"malime.mal/src/main/java"
)
filters = ".*/resources/.*,.*/build/.*"
reports {
xml {
enabled = true
destination = file("app/build/reports/detekt/detekt.xml")
}
html {
enabled = true
destination = file("app/build/reports/detekt/detekt.html")
}
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}