-
Notifications
You must be signed in to change notification settings - Fork 220
/
build.gradle
46 lines (40 loc) · 1.23 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
dependencies {
api(project(':com.ibm.wala.cast.js')) {
because 'public class NodejsCallGraphBuilderUtil extends class JSCallGraphUtil'
}
implementation(
'commons-io:commons-io:2.10.0',
'org.json:json:20210307',
project(':com.ibm.wala.cast'),
project(':com.ibm.wala.cast.js.rhino'),
project(':com.ibm.wala.core'),
project(':com.ibm.wala.util'),
)
testImplementation(
'junit:junit:4.13.2',
)
}
final downloadNodeJS = tasks.register('downloadNodeJS', VerifiedDownload) {
src 'https://nodejs.org/dist/v0.12.4/node-v0.12.4.tar.gz'
dest project.layout.buildDirectory.file('nodejs.tar.gz')
algorithm 'SHA-1'
checksum '147ff79947752399b870fcf3f1fc37102100b545'
}
tasks.register('unpackNodeJSLib', Copy) {
from(downloadNodeJS.map { tarTree it.dest }) {
include 'node-v0.12.4/lib/*.js'
eachFile {
relativePath RelativePath.parse(!directory, relativePath.lastName)
}
}
into "${tasks.named('processTestResources', Copy).get().destinationDir}/core-modules"
includeEmptyDirs false
}
tasks.named('processTestResources') {
dependsOn 'unpackNodeJSLib'
}
tasks.named('test') {
maxHeapSize = '800M'
// fails with java.lang.OutOfMemoryError for unknown reasons
exclude '**/NodejsRequireTargetSelectorResolveTest.class'
}