-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle
109 lines (94 loc) · 2.32 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
// LICENSE
// This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not
// distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/.
//
// END LICENSE
plugins {
id 'java-library'
}
repositories {
mavenCentral()
}
sourceCompatibility = 1.8
targetCompatibility = 1.8
configurations {
rhino
graal
servlet
}
dependencies {
rhino 'org.mozilla:rhino:1.7.15'
graal 'org.graalvm.sdk:graal-sdk:20.3.0'
servlet 'javax.servlet:javax.servlet-api:3.0.1'
// These lines are necessary for VSCode to properly understand the dependencies
implementation 'org.mozilla:rhino:1.7.15'
implementation 'org.graalvm.sdk:graal-sdk:20.3.0'
implementation 'javax.servlet:javax.servlet-api:3.0.1'
}
sourceSets {
// 'main' is not really the right name for this
main {
java {
srcDir 'rhino/system/java'
srcDir 'loader/jrunscript/java'
}
}
rhino {
compileClasspath += configurations.rhino
compileClasspath += sourceSets.main.output
java {
srcDir 'loader/jrunscript/rhino/java'
// modules
srcDir 'jrunscript/host/rhino/java'
srcDir 'rhino/file/java'
}
}
graal {
compileClasspath += configurations.graal
compileClasspath += sourceSets.main.output
java {
srcDir 'loader/jrunscript/graal/java'
}
}
servlet {
compileClasspath += configurations.servlet
compileClasspath += sourceSets.main.output
java {
srcDir 'rhino/http/servlet/java'
}
}
rhinoServlet {
compileClasspath += configurations.servlet
compileClasspath += configurations.rhino
compileClasspath += sourceSets.main.output
compileClasspath += sourceSets.rhino.output
compileClasspath += sourceSets.servlet.output
java {
srcDir 'rhino/http/servlet/rhino/java'
}
}
jsh {
compileClasspath += sourceSets.main.output
java {
srcDir 'jrunscript/jsh/loader/java'
}
}
jshRhino {
compileClasspath += configurations.rhino
compileClasspath += sourceSets.main.output
compileClasspath += sourceSets.rhino.output
compileClasspath += sourceSets.jsh.output
java {
srcDir 'jrunscript/jsh/loader/rhino/java'
}
}
jshGraal {
compileClasspath += configurations.graal
compileClasspath += sourceSets.main.output
compileClasspath += sourceSets.graal.output
compileClasspath += sourceSets.jsh.output
java {
srcDir 'jrunscript/jsh/loader/graal/java'
}
}
}