-
Notifications
You must be signed in to change notification settings - Fork 4
/
build.gradle
79 lines (69 loc) · 2.3 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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
buildscript {
ext {
gradle_version = '4.8'
kotlin_version = '1.2.50'
gson_version = '2.8.2'
arrow_version = '0.7.2'
javaVersion = JavaVersion.VERSION_1_7
}
repositories {
maven { url 'https://maven.google.com' }
mavenCentral()
mavenLocal()
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.2.0-alpha18'
classpath 'com.github.dcendents:android-maven-gradle-plugin:2.1'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.8.0'
classpath 'org.ajoberstar:gradle-git-publish:0.3.2'
classpath "org.sonarsource.scanner.gradle:sonarqube-gradle-plugin:2.6.2"
classpath 'com.dicedmelon.gradle:jacoco-android:0.1.2'
}
}
plugins {
id "io.gitlab.arturbosch.detekt" version "1.0.0.RC6-4"
id "org.sonarqube" version "2.6.2"
}
detekt {
version = "1.0.0.RC6-4"
defaultProfile {
config = file("detekt-config.yml")
input = "$projectDir"
filters = ".*/resources/.*,.*/build/.*"
output = file("reports")
outputName = "detekt"
parallel = true
}
}
allprojects {
repositories {
jcenter()
maven { url 'https://kotlin.bintray.com/kotlinx' }
maven { url "http://dl.bintray.com/kotlin/kotlin-dev" }
maven { url "http://dl.bintray.com/arrow-kt/arrow-kt" }
maven { url "https://dl.bintray.com/jetbrains/markdown/" }
maven { url 'https://jitpack.io' }
maven { url 'https://maven.google.com' }
}
task codeCoverageReport(type: JacocoReport) {
reports {
xml.enabled true
xml.destination file("${buildDir}/reports/jacoco/report.xml")
html.enabled true
csv.enabled false
}
classDirectories = fileTree(
dir: 'build/classes/kotlin/main',
)
sourceDirectories = files('src/main/kotlin')
executionData fileTree(project.rootDir.absolutePath).include("**/build/jacoco/*.exec")
}
tasks.withType(Javadoc) {
enabled = false
}
}
task wrapper(type: Wrapper) {
distributionUrl = "https://services.gradle.org/distributions/gradle-${project.ext.gradle_version}-all.zip"
}