File tree 2 files changed +30
-0
lines changed
2 files changed +30
-0
lines changed Original file line number Diff line number Diff line change @@ -66,6 +66,26 @@ configurations {
66
66
antlr4
67
67
}
68
68
69
+ def getV8Dependency () {
70
+ def arch = System . getProperty(' os.arch' )
71
+ def dep = null
72
+ if (OperatingSystem . current(). isWindows()) {
73
+ dep = ' win32_x86'
74
+ if (arch. equals(' amd64' )) {
75
+ dep + = ' _64'
76
+ }
77
+ } else if (OperatingSystem . current(). isMacOsX() && (arch. equals(' amd64' ) || arch. equals(' x86_64' ))) {
78
+ dep = ' macosx_x86_64'
79
+ } else if (OperatingSystem . current(). isLinux() && arch. equals(' amd64' )) {
80
+ dep = ' linux_x86_64'
81
+ }
82
+ if (dep == null ) {
83
+ logger. error(" Could not find V8 runtime compatible to this system" )
84
+ return null
85
+ }
86
+ return ' com.eclipsesource.j2v8:j2v8_' + dep + ' :4.5.0'
87
+ }
88
+
69
89
dependencies {
70
90
compile ' com.jgoodies:jgoodies-common:1.8.1'
71
91
compile ' com.jgoodies:jgoodies-forms:1.9.0'
@@ -143,6 +163,11 @@ dependencies {
143
163
compile group : ' com.microsoft.azure' , name : ' applicationinsights-core' , version : ' 1.0.+'
144
164
compile group : ' com.microsoft.azure' , name : ' applicationinsights-logging-log4j2' , version : ' 1.0.+'
145
165
166
+ // if available, use platform specific build of V8
167
+ if (getV8Dependency() != null ) {
168
+ compile getV8Dependency()
169
+ }
170
+
146
171
testCompile ' junit:junit:4.12'
147
172
testCompile ' org.mockito:mockito-core:2.7.22'
148
173
testCompile ' com.github.tomakehurst:wiremock:2.6.0'
Original file line number Diff line number Diff line change @@ -216,4 +216,9 @@ Project: latex2unicode
216
216
URL: https://github.com/tomtung/latex2unicode
217
217
License: Apache 2.0
218
218
219
+ Id: com.eclipse.j2v8
220
+ Project: J2V8
221
+ URL: https://github.com/eclipsesource/J2V8
222
+ Licence: EPL-1.0
223
+
219
224
The last entry has to end with an empty line. Otherwise the entry is not present in About.html.
You can’t perform that action at this time.
0 commit comments