-
Notifications
You must be signed in to change notification settings - Fork 4
/
build.gradle
61 lines (50 loc) · 1.22 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
// doip-custom-simulation
plugins {
id 'java-library'
id 'jacoco'
id 'distribution'
id 'eclipse'
}
group = 'com.github.com'
version = '2.0.0'
repositories {
mavenCentral()
maven { url 'https://jitpack.io' }
}
dependencies {
implementation group: 'org.apache.logging.log4j', name: 'log4j-api', version: '2.19.0'
implementation group: 'org.apache.logging.log4j', name: 'log4j-core', version: '2.19.0'
implementation 'com.github.doip:doip-simulation-api:1.1.0'
implementation 'com.github.doip:doip-simulation:2.0.0'
implementation 'com.github.doip:doip-library:2.0.0'
testImplementation 'com.github.starcode88:starcode88-jtest:1.2.1'
testImplementation 'org.junit.jupiter:junit-jupiter:5.7.1'
}
jar {
manifest {
attributes (
'Main-Class' : 'doip.custom.simulation.Main',
'Class-Path' : configurations.runtimeClasspath.collect { it.getName() }.join(' ')
)
}
}
test {
useJUnitPlatform()
systemProperty 'log4j.configurationFile', 'src/main/dist/log4j2.xml'
reports {
junitXml {
outputPerTestCase = true // defaults to false
//mergeReruns = true // defaults to false
}
}
}
distributions {
main {
contents {
into ('libs') {
from (jar)
from (configurations.runtimeClasspath)
}
}
}
}