-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
60 lines (48 loc) · 1.78 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
plugins {
id 'java'
id 'jacoco'
id 'application'
}
application {
mainClass = "org.example.Main"
}
group = 'org.example'
version = '1.0-SNAPSHOT'
repositories {
mavenCentral()
}
dependencies {
//JSON libraries
implementation("com.fasterxml.jackson.core:jackson-databind:2.18.1")
implementation("com.fasterxml.jackson.module:jackson-modules-java8:2.18.1")
implementation("com.fasterxml.jackson.datatype:jackson-datatype-jsr310:2.18.1")
//REST client libraries
implementation 'jakarta.ws.rs:jakarta.ws.rs-api:3.1.0'
implementation 'jakarta.activation:jakarta.activation-api:2.1.3'
//Java boilerplate library
compileOnly 'org.projectlombok:lombok:1.18.36'
annotationProcessor 'org.projectlombok:lombok:1.18.36'
testCompileOnly 'org.projectlombok:lombok:1.18.36'
testAnnotationProcessor 'org.projectlombok:lombok:1.18.36'
//JSON-Jersey binding
implementation 'org.glassfish.jersey.core:jersey-client:3.1.9'
implementation 'org.glassfish.jersey.media:jersey-media-json-jackson:3.1.9'
//Java logger
implementation group: 'org.apache.logging.log4j', name: 'log4j-core', version: '2.24.3'
implementation group: 'org.apache.logging.log4j', name: 'log4j-api', version: '2.24.3'
//Unit tests
testImplementation platform('org.junit:junit-bom:5.10.0')
testImplementation 'org.junit.jupiter:junit-jupiter'
testRuntimeOnly 'org.junit.platform:junit-platform-launcher'
}
//dependencies {
// testImplementation platform('org.junit:junit-bom:5.10.0')
// testImplementation 'org.junit.jupiter:junit-jupiter'
//}
test {
useJUnitPlatform()
finalizedBy jacocoTestReport // report is always generated after tests run
}
jacocoTestReport {
dependsOn test // tests are required to run before generating the report
}