-
Notifications
You must be signed in to change notification settings - Fork 2
/
build.gradle
69 lines (61 loc) · 1.81 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
plugins {
id 'java'
id 'jacoco'
id 'application'
}
group = 'com.geektrust'
version = '1.0'
sourceCompatibility = 1.8
targetCompatibility = 1.8
jacoco { //Please do not change this
toolVersion = "0.8.4"
reportsDir = file("$buildDir/jacoco")
}
jacocoTestReport { //Please do not change this
reports {
xml.enabled true
csv.enabled false
html.enabled false
xml.destination file("./jacoco.xml")
}
}
application {
mainClassName = 'com.geektrust.backend.App'
}
jar {
archiveBaseName = 'geektrust' //Please do not change this final artifact name
version = null //Please do not change this final artifact version
manifest {
attributes 'Main-Class' : 'com.geektrust.backend.App' //Change this to the main class of your program which will be executed
}
// To create a single jar with all dependencies.
from {
configurations.runtimeClasspath.collect { it.isDirectory() ? it : zipTree(it) }
} {
exclude "META-INF/*.SF"
exclude "META-INF/*.DSA"
exclude "META-INF/*.RSA"
}
}
repositories {
mavenCentral()
}
dependencies {
testImplementation 'org.mockito:mockito-junit-jupiter:3.11.1'
testImplementation 'org.junit.jupiter:junit-jupiter:5.7.2'
}
test { ///Please do not change this
useJUnitPlatform()
testLogging {
events "PASSED", "SKIPPED", "FAILED", "STANDARD_ERROR"
}
finalizedBy jacocoTestReport // report is always generated after tests run
afterSuite { desc, result ->
if (!desc.parent)
println("${result.resultType} " +
"(${result.testCount} tests, " +
"${result.successfulTestCount} successes, " +
"${result.failedTestCount} failures, " +
"${result.skippedTestCount} skipped)")
}
}