forked from LoyolaChicagoCode/simplethreads-java
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
44 lines (35 loc) · 1.04 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
apply plugin: 'java'
tasks.withType(JavaCompile) {
options.compilerArgs << "-Xlint:all"
}
repositories {
mavenCentral()
}
dependencies {
testImplementation group: 'junit', name: 'junit', version: '4.+'
}
task runSimple(dependsOn: 'classes', type: JavaExec) {
main = 'simplethreads.SimpleThread'
classpath = sourceSets.main.runtimeClasspath
args = []
}
task runRace(dependsOn: 'classes', type: JavaExec) {
main = 'simplethreads.RaceCondition'
classpath = sourceSets.main.runtimeClasspath
args = []
}
task runMultipleSeq(dependsOn: 'classes', type: JavaExec) {
main = 'simplethreads.MultipleThreads'
classpath = sourceSets.main.runtimeClasspath
args = ['-1']
}
task runMultiple(dependsOn: 'classes', type: JavaExec) {
main = 'simplethreads.MultipleThreads'
classpath = sourceSets.main.runtimeClasspath
args = ['0']
}
task runMultipleInterleaved(dependsOn: 'classes', type: JavaExec) {
main = 'simplethreads.MultipleThreads'
classpath = sourceSets.main.runtimeClasspath
args = ['1']
}