-
Notifications
You must be signed in to change notification settings - Fork 434
/
build.gradle
87 lines (65 loc) · 2.05 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
buildscript {
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.11'
classpath "org.jfrog.buildinfo:build-info-extractor-gradle:4.0.0"
classpath "io.codearte.gradle.nexus:gradle-nexus-staging-plugin:0.21.1"
classpath "de.marcphilipp.gradle:nexus-publish-plugin:0.4.0"
}
}
allprojects { pr ->
pr['signing.keyId'] = System.getenv('GPG_ID')
pr['signing.password'] = System.getenv('GPG_PASSWORD')
pr['signing.secretKeyRingFile'] = '/home/travis/.gnupg/secring.gpg'
}
apply plugin: 'idea'
apply plugin: 'jacoco'
apply from: "${rootDir}/publishSonatype.gradle"
allprojects {
repositories {
mavenCentral()
jcenter()
maven { url "https://repo.spring.io/milestone" }
maven { url "https://jitpack.io" }
}
}
subprojects {
apply plugin: 'java'
apply plugin: 'jacoco'
sourceCompatibility = 1.8
targetCompatibility = 1.8
test {
forkEvery = 1
testLogging {
exceptionFormat = 'full'
}
}
dependencies {
["annotationProcessor", "testAnnotationProcessor", "compileOnly", "testCompileOnly"].each { conf ->
add(conf, "org.projectlombok:lombok:1.18.12")
}
}
}
task codeCoverageReport(type: JacocoReport) {
executionData fileTree(project.rootDir.absolutePath).include("**/build/jacoco/*.exec")
sourceSets (project('grpc-spring-boot-starter').sourceSets.main
,project('grpc-client-spring-boot-starter').sourceSets.main)
//subprojects.each {
//sourceSets it.sourceSets.main
//}
reports {
xml.enabled true
xml.destination = new File(buildDir,"reports/jacoco/report.xml")
html.enabled true
csv.enabled false
}
}
codeCoverageReport.dependsOn {
subprojects*.test
}