-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle
40 lines (33 loc) · 1021 Bytes
/
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
plugins {
id 'java-library'
id 'jacoco'
}
group 'dev.klepto.commands'
def deps = [
guava : [group: 'com.google.guava', name: 'guava', version: '28.2-jre'],
truth : [group: 'com.google.truth', name: 'truth', version: '1.0.1'],
lombok: [group: 'org.projectlombok', name: 'lombok', version: '1.18.12'],
junit : [group: 'junit', name: 'junit', version: '4.12']
]
repositories {
mavenCentral()
}
dependencies {
implementation deps.guava
implementation deps.lombok
annotationProcessor deps.lombok
testImplementation deps.junit
testImplementation deps.truth
testAnnotationProcessor deps.lombok
}
task showJacocoReport(type: Exec) {
def os = org.gradle.internal.os.OperatingSystem.current()
if (os.isWindows()) {
workingDir jacocoTestReport.reports.html.destination
commandLine 'cmd', '/c', 'start', 'index.html'
}
dependsOn test, jacocoTestReport
}
if (file('deploy.gralde').exists()) {
apply from: 'deploy.gradle'
}