This repository has been archived by the owner on Sep 6, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathbuild.gradle
50 lines (44 loc) · 1.59 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
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
apply from: 'versions.gradle'
repositories {
google()
jcenter()
mavenCentral()
maven { url "https://plugins.gradle.org/m2/" }
}
dependencies {
classpath "com.android.tools.build:gradle:${libraryVersion.gradle}"
classpath "com.github.dcendents:android-maven-gradle-plugin:${libraryVersion.mavenPlugin}"
classpath "com.vanniktech:gradle-android-junit-jacoco-plugin:${libraryVersion.jacoco}"
classpath "gradle.plugin.io.gitlab.arturbosch.detekt:detekt-gradle-plugin:${libraryVersion.detekt}"
classpath "org.jetbrains.dokka:dokka-android-gradle-plugin:${libraryVersion.dokka}"
classpath "org.jetbrains.kotlin:kotlin-android-extensions:${libraryVersion.kotlin}"
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:${libraryVersion.kotlin}"
}
}
apply plugin: "com.vanniktech.android.junit.jacoco"
apply plugin: 'com.github.dcendents.android-maven'
apply plugin: "io.gitlab.arturbosch.detekt"
apply from: 'versions.gradle'
allprojects {
repositories {
google()
jcenter()
mavenCentral()
}
}
dependencies {
detekt "io.gitlab.arturbosch.detekt:detekt-formatting:${libraryVersion.detekt}"
}
detekt {
config = files("detekt-config.yml")
input = files("$projectDir")
filters = ".*/resources/.*,.*/build/.*"
}
junitJacoco {
jacocoVersion = '0.8.2'
ignoreProjects = ['app']
excludes = ["**/android/arch/paging/**"]
includeNoLocationClasses = false
}