-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.gradle
180 lines (159 loc) · 4.56 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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
apply plugin: 'idea'
apply plugin: 'java'
buildscript {
repositories {
mavenCentral()
}
}
sourceSets {
main {
java {
srcDir 'src/'
}
resources {
srcDir 'resources/'
}
}
test {
java {
srcDir 'test/src'
}
resources {
srcDirs = ['test/benchmarks', 'test/flowtyped', 'test/flowtests', 'test/unit/', 'test/tajsUnit/']
}
}
}
dependencies {
compile group: 'com.google.protobuf', name: 'protobuf-java', version: '3.2.0'
compile group: 'org.json', name: 'json', version: '20170516'
compile fileTree(dir: 'lib', include: ['*.jar'])
compile fileTree(dir: 'lib/selenium', include: ['*.jar'])
compile fileTree(dir: 'ts-spec-reader/deserializers/java/libs', include: ['*.jar'])
compile project(":ts-spec-reader")
compile project(":tajs")
compile 'org.jdom:jdom2:2.0.6'
compile group: 'com.fasterxml.jackson.jaxrs', name: 'jackson-jaxrs-json-provider', version: '2.6.3'
compile 'org.apache.pdfbox:pdfbox:1.8.12'
compile group: 'org.apache.commons', name: 'commons-math3', version: '3.6.1'
compile group: 'com.google.code.gson', name: 'gson', version: '2.8.2'
// https://mvnrepository.com/artifact/org.kohsuke.args4j/args4j-maven-plugin
compile group: 'org.kohsuke.args4j', name: 'args4j-maven-plugin', version: '2.0.22'
}
task wrapper(type: Wrapper) {
gradleVersion = '4.10'
}
subprojects {
apply plugin: 'java'
sourceSets {
main {
java {
srcDir 'src/'
}
resources {
srcDir 'resources/'
}
}
test {
java {
srcDir 'test/src/'
}
resources {
srcDir 'test-resources/'
}
}
}
}
jar {
manifest {
attributes(
'Class-Path': configurations.compile,
'Main-Class': 'dk.webbies.tajscheck.cmd.Main'
)
}
}
task testJar(type: Jar) {
classifier = 'tests'
from sourceSets.test.output
}
task fatJar(type: Jar) {
manifest.from jar.manifest
classifier = 'all'
from {
configurations.runtimeClasspath.collect { it.isDirectory() ? it : zipTree(it) }
} {
exclude "META-INF/*.SF"
exclude "META-INF/*.DSA"
exclude "META-INF/*.RSA"
}
with jar
with testJar
}
allprojects {
repositories {
mavenCentral()
}
}
// Example usage:
// ./gradlew deltaDebug -PappArgs="['Intro.js']"
task deltaDebug(type: JavaExec) {
if (project.hasProperty("appArgs")) {
args Eval.me(appArgs)
}
classpath sourceSets.test.runtimeClasspath
jvmArgs = ["-Xmx30G"]
main = 'dk.webbies.tajscheck.test.tajs.analyze.ManualTajsCheckerEvaluation'
}
// Example usage:
// ./gradlew doEvaluation"
task doEvaluation(type: JavaExec) {
classpath sourceSets.test.runtimeClasspath
jvmArgs = ["-Xmx30G"]
main = 'dk.webbies.tajscheck.test.tajs.analyze.TajsCheckerEvaluation'
}
// Example usage:
// ./gradlew compareModes
task compareModes(type: JavaExec) {
if (project.hasProperty("appArgs")) {
args Eval.me(appArgs)
}
classpath sourceSets.test.runtimeClasspath
jvmArgs = ["-Xmx30G"]
main = 'dk.webbies.tajscheck.test.tajs.analyze.CompareModesEvaluation'
}
// Example usage:
// ./gradlew manualEval -PappArgs="['all-assumptions']"
task manualEval(type: JavaExec) {
if (project.hasProperty("appArgs")) {
args Eval.me(appArgs)
}
classpath sourceSets.test.runtimeClasspath
jvmArgs = ["-Xmx30G"]
main = 'dk.webbies.tajscheck.test.tajs.analyze.ManualTajsCheckerEvaluation'
}
// Example usage:
// ./gradlew bigBenchEval -PappArgs="['limited']"
task bigBenchEval(type: JavaExec) {
if (project.hasProperty("appArgs")) {
args Eval.me(appArgs)
}
classpath sourceSets.test.runtimeClasspath
jvmArgs = ["-Xmx30G"]
main = 'dk.webbies.tajscheck.test.tajs.analyze.BigLibEvaluation'
}
// Example usage:
// ./gradlew deltaDebugRetractedTestInAll"
task deltaDebugRetractedTestInAll(type: JavaExec) {
classpath sourceSets.test.runtimeClasspath
jvmArgs = ["-Xmx30G"]
main = 'dk.webbies.tajscheck.test.DeltaDebug$DeltaDebugRetractedTestInAll'
}
// Example usage:
// ./gradlew runSingle -PappArgs="['classnames', 'writes']"
task runSingle(type: JavaExec) {
if (project.hasProperty("appArgs")) {
args Eval.me(appArgs)
}
classpath sourceSets.test.runtimeClasspath
jvmArgs = ["-Xmx30G"]
main = 'dk.webbies.tajscheck.test.tajs.analyze.RunASingleBenchmark'
}