-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathbuild.gradle
44 lines (36 loc) · 932 Bytes
/
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
import java.nio.file.Files
import java.nio.file.NoSuchFileException
plugins {
id 'java'
}
group 'com.optilog'
version '2022.6.4'
repositories {
mavenCentral()
}
dependencies {
implementation 'org.junit.jupiter:junit-jupiter-engine:5.8.2'
implementation 'com.fasterxml.jackson.dataformat:jackson-dataformat-xml:2.13.3'
implementation 'org.yaml:snakeyaml:1.30'
implementation 'com.google.code.gson:gson:2.9.0'
runtimeOnly 'mysql:mysql-connector-java:8.0.29'
}
compileJava {
options.compilerArgs.add("--release")
options.compilerArgs.add("11")
}
task cleanTestLog {
try {
Files.delete(java.nio.file.Path.of('./logs'))
} catch (NoSuchFileException ignored) {
print "'./logs' file not found."
}
try {
Files.createDirectory(java.nio.file.Path.of('./logs'))
} catch (IOException e) {
e.printStackTrace()
}
}
test {
useJUnitPlatform()
}