-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathbuild.gradle
48 lines (42 loc) · 1.49 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
apply plugin: 'java'
repositories {
mavenCentral()
}
dependencies {
runtime 'com.google.javascript:closure-compiler:v20131014'
}
task minify_liblevenshtein(type: JavaExec) {
main = 'com.google.javascript.jscomp.CommandLineRunner'
classpath = sourceSets.main.runtimeClasspath
args = [
'--compilation_level', 'ADVANCED_OPTIMIZATIONS',
//'--output_wrapper', '(function(){"use strict";%output%}());',
'--js_output_file', 'lib/liblevenshtein/liblevenshtein.min.js',
'--js', 'lib/liblevenshtein/liblevenshtein.js'
]
}
task minify_levenshtein_transducer(type: JavaExec) {
main = 'com.google.javascript.jscomp.CommandLineRunner'
classpath = sourceSets.main.runtimeClasspath
args = [
'--compilation_level', 'ADVANCED_OPTIMIZATIONS',
//'--output_wrapper', '(function(){"use strict";%output%}());',
'--js_output_file', 'lib/liblevenshtein/levenshtein-transducer.min.js',
'--js', 'lib/liblevenshtein/levenshtein-transducer.js'
]
}
task minify_levenshtein_distance(type: JavaExec) {
main = 'com.google.javascript.jscomp.CommandLineRunner'
classpath = sourceSets.main.runtimeClasspath
args = [
'--compilation_level', 'ADVANCED_OPTIMIZATIONS',
//'--output_wrapper', '(function(){"use strict";%output%}());',
'--js_output_file', 'lib/liblevenshtein/levenshtein-distance.min.js',
'--js', 'lib/liblevenshtein/levenshtein-distance.js'
]
}
task minify(dependsOn: [
'minify_liblevenshtein',
'minify_levenshtein_transducer',
'minify_levenshtein_distance'
])