-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle
47 lines (39 loc) · 1.32 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
plugins {
id 'java'
//id 'pmd'
}
group = 'org.example'
version = '1.0-SNAPSHOT'
repositories {
mavenCentral()
}
dependencies {
implementation group: 'com.fasterxml.jackson.core', name: 'jackson-core', version: '2.18.0'
implementation group: 'com.fasterxml.jackson.core', name: 'jackson-annotations', version: '2.18.0'
implementation group: 'com.fasterxml.jackson.core', name: 'jackson-databind', version: '2.18.0'
implementation 'info.picocli:picocli:4.7.6'
annotationProcessor 'info.picocli:picocli-codegen:4.7.6'
//testImplementation platform('org.junit:junit-bom:5.10.0')
//testImplementation 'org.junit.jupiter:junit-jupiter'
implementation 'org.junit.jupiter:junit-jupiter-api:5.10.0'
implementation 'org.junit.jupiter:junit-jupiter-engine:5.10.0'
implementation group: 'org.mockito', name: 'mockito-core', version: '2.7.5'
}
test {
useJUnitPlatform()
}
jar {
manifest {
attributes 'Main-Class': 'pipes.MainTest'
}
from {
configurations.runtimeClasspath.collect { it.isDirectory() ? it : zipTree(it) } +
sourceSets.test.output
}
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
dependsOn compileTestJava // Ensure test classes are compiled before creating the JAR
}
//pmd {
// consoleOutput = true
// toolVersion = "7.6.0"
//}