-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
47 lines (36 loc) · 1.02 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'
}
group = 'org.example'
version = '1.0-SNAPSHOT'
repositories {
mavenCentral()
}
dependencies {
// Lombok
implementation 'org.projectlombok:lombok:1.18.20'
annotationProcessor 'org.projectlombok:lombok:1.18.20'
// Jackson
implementation 'com.fasterxml.jackson.core:jackson-databind:2.13.1'
// Apache commons lang
implementation 'org.apache.commons:commons-lang3:3.13.0'
// Snake YAML
implementation 'org.yaml:snakeyaml:1.28'
testImplementation platform('org.junit:junit-bom:5.9.1')
testImplementation 'org.junit.jupiter:junit-jupiter'
}
test {
useJUnitPlatform()
}
ext {
running_mode = project.hasProperty('running_mode') ? project.getProperty('running_mode') : null
}
(0..10).each { number ->
def taskName = "process${number}"
tasks.register(taskName, JavaExec) {
main = 'org.example.Process'
classpath = sourceSets.main.runtimeClasspath
args = [number.toString(), running_mode]
standardInput = System.in
}
}