-
Notifications
You must be signed in to change notification settings - Fork 4
/
build.gradle
79 lines (63 loc) · 1.66 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 {
//general
kotlin_version = '1.3.70'
serialization_version = '0.20.0'
junit_version = "4.12"
jacoco_version = "0.8.4"
//mnid module
kethereum_version = "0.81.4"
khash_version = "1.0.0-RC5"
khex_version = "1.0.0-RC6"
kbase58_version = "0.1"
//testing
test_runner_version = "1.0.2"
current_release_version = "0.4.4"
}
repositories {
jcenter()
google()
}
dependencies {
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
classpath 'com.android.tools.build:gradle:3.5.3'
}
}
allprojects {
apply plugin: 'jacoco'
jacoco {
toolVersion = jacoco_version
}
repositories {
jcenter()
google()
maven { url 'https://jitpack.io' }
}
}
subprojects { subproject ->
afterEvaluate {
subproject.tasks.withType(org.jetbrains.kotlin.gradle.tasks.KotlinCompile).all {
kotlinOptions {
jvmTarget = "1.8"
}
}
}
}
apply from: "publishing.gradle"
task jacocoReport(type: JacocoReport) {
subprojects { sub ->
afterEvaluate {
//subproject tasks can only be gathered after evaluation
def testTasks = sub.tasks.withType(Test)
dependsOn testTasks
executionData testTasks
}
classDirectories.from(file("${sub.buildDir}/classes/java/main"))
classDirectories.from(file("${sub.buildDir}/classes/kotlin/main"))
}
reports {
html.enabled = true
xml.enabled = true
csv.enabled = false
}
}