-
Notifications
You must be signed in to change notification settings - Fork 39
/
build.gradle
57 lines (49 loc) · 1.43 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
plugins {
id 'java'
}
repositories {
mavenCentral()
}
dependencies {
implementation group: 'com.google.code.gson', name: 'gson', version: '2.8.2'
implementation group: 'com.squareup', name: 'javawriter', version: '2.5.1'
implementation group: 'junit', name: 'junit', version: '4.12'
implementation group: 'org.hamcrest', name: 'hamcrest-core', version: '1.3'
implementation group: 'fr.inria.gforge.spoon', name: 'spoon-core', version: '6.0.0'
implementation group: 'commons-io', name: 'commons-io', version: '2.5'
implementation group: 'org.slf4j', name: 'slf4j-nop', version: '1.7.32'
}
sourceSets {
main {
java {
srcDirs = ['.']
}
}
test {
java {
srcDirs = ['java_testcases/junit']
exclude 'crt_program'
}
}
crtTest {
java {
srcDirs = ['java_testcases/junit/crt_program']
}
compileClasspath += sourceSets.main.output
runtimeClasspath += sourceSets.main.output
}
}
configurations {
crtTestImplementation.extendsFrom implementation
crtTestRuntimeOnly.extendsFrom runtimeOnly
}
task crtTest(type: Test) {
description = 'Runs tests on correct programs.'
group = 'verification'
check.dependsOn(crtTest)
testClassesDirs = sourceSets.crtTest.output.classesDirs
classpath = sourceSets.crtTest.runtimeClasspath
}
tasks.withType(Test) {
maxHeapSize = "1024m"
}