forked from ripple-unmaintained/ripple-lib-java
-
Notifications
You must be signed in to change notification settings - Fork 7
/
build.gradle
94 lines (76 loc) · 1.65 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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
buildscript {
ext.kotlin_version = '1.4.31'
repositories {
mavenLocal()
mavenCentral()
google()
jcenter()
}
dependencies {
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
}
// dependencies {
// classpath 'com.android.tools.build:gradle:3.0.1'
// }
}
apply plugin: 'kotlin'
allprojects {
group = 'com.ripple'
apply plugin: 'java'
apply plugin: 'maven'
apply plugin: 'jacoco'
repositories {
mavenLocal()
mavenCentral()
google()
jcenter()
maven { url "http://repo1.maven.org/maven2/" }
}
}
subprojects {
apply plugin: 'idea'
tasks.withType(JavaCompile) {
options.encoding = 'UTF-8'
}
repositories {
mavenLocal()
mavenCentral()
google()
jcenter()
}
}
repositories {
mavenCentral()
}
dependencies {
testCompile "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version"
}
compileKotlin {
kotlinOptions {
jvmTarget = "1.8"
}
}
compileTestKotlin {
kotlinOptions {
jvmTarget = "1.8"
}
}
task codeCoverageReport(type: JacocoReport) {
executionData fileTree(project.rootDir.absolutePath).include("**/build/jacoco/*.exec")
subprojects.each {
sourceSets it.sourceSets.main
}
reports {
xml.enabled = true
xml.setDestination(new File("${buildDir}/reports/jacoco/report.xml"))
html.enabled = false
csv.enabled = false
}
}
codeCoverageReport.dependsOn {
subprojects*.test
}
task getDeps(type: Copy) {
from configurations.compile
into "$rootDir/jars/"
}