forked from LogNet/grpc-spring-boot-starter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
79 lines (63 loc) · 1.85 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 {
springBoot_1_X_Version = '1.5.13.RELEASE'
springBoot_2_X_Version = '2.0.3.RELEASE'
grpcVersion = '1.15.1'
}
repositories {
mavenCentral()
jcenter()
maven { url 'http://repo.spring.io/plugins-release' }
maven { url "https://plugins.gradle.org/m2/"}
}
dependencies {
classpath "com.jfrog.bintray.gradle:gradle-bintray-plugin:1.5"
classpath 'com.google.protobuf:protobuf-gradle-plugin:0.8.5'
classpath "org.jfrog.buildinfo:build-info-extractor-gradle:4.0.0"
classpath 'com.palantir:jacoco-coverage:0.4.0'
classpath 'com.bmuschko:gradle-nexus-plugin:2.3.1'
classpath "io.codearte.gradle.nexus:gradle-nexus-staging-plugin:0.10.0"
}
}
apply plugin: 'idea'
apply plugin: 'com.palantir.jacoco-full-report'
apply plugin: 'jacoco'
allprojects{
repositories {
mavenCentral()
jcenter()
maven { url "https://repo.spring.io/milestone" }
}
}
subprojects {
apply plugin: 'java'
apply plugin: 'jacoco'
sourceCompatibility = 1.8
targetCompatibility = 1.8
test {
forkEvery = 1
testLogging {
exceptionFormat = 'full'
}
}
dependencies{
compileOnly('org.projectlombok:lombok:1.16.20')
testCompileOnly('org.projectlombok:lombok:1.16.20')
}
}
task codeCoverageReport(type: JacocoReport) {
executionData fileTree(project.rootDir.absolutePath).include("**/build/jacoco/*.exec")
sourceSets project('grpc-spring-boot-starter').sourceSets.main
//subprojects.each {
//sourceSets it.sourceSets.main
//}
reports {
xml.enabled true
xml.destination "${buildDir}/reports/jacoco/report.xml"
html.enabled false
csv.enabled false
}
}
codeCoverageReport.dependsOn {
subprojects*.test
}