-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathbuild.gradle
87 lines (79 loc) · 2.35 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
plugins {
id 'java'
id 'jacoco'
}
group 'code.shubham'
version '0.1'
sourceCompatibility = '21'
targetCompatibility = '21'
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")
// }
//}
jar {
// archiveBaseName = 'object_oriented_design' //Please do not change this final artifact name
// manifest {
// attributes 'Main-Class' : '' //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"
}
}
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)")
}
}
repositories {
mavenCentral()
}
//Add your dependencies here
dependencies {
implementation(
'com.google.guava:guava:33.3.1-jre'
)
compileOnly (
'org.projectlombok:lombok:1.18.30'
)
annotationProcessor (
'org.projectlombok:lombok:1.18.30'
)
testCompileOnly (
'org.projectlombok:lombok:1.18.30'
)
testAnnotationProcessor (
'org.projectlombok:lombok:1.18.30'
)
testImplementation(
'junit:junit:4.13.1',
'org.junit.jupiter:junit-jupiter-api:5.9.0',
'org.junit.jupiter:junit-jupiter-engine:5.9.0',
'org.junit.vintage:junit-vintage-engine:5.9.0',
'org.junit.platform:junit-platform-runner:1.9.0',
'org.mockito:mockito-core:4.8.0',
'org.mockito:mockito-junit-jupiter:4.8.0'
)
}