This repository has been archived by the owner on Sep 23, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 14
/
build.gradle
60 lines (53 loc) · 1.78 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
apply plugin: 'java'
repositories {
mavenCentral()
}
configurations {
closureCompiler
closureLibrary
}
dependencies {
closureCompiler ('com.google.javascript:closure-compiler:v20210505') { transitive = false }
closureLibrary 'org.clojure:google-closure-library:0.0-20210512-04d6fb3b'
}
task unpackClosureLib(type: Copy) {
dependsOn configurations.closureLibrary
from {
configurations.closureLibrary.asFileTree.each {
from( zipTree(it) )
}
// Don't include the actual archives themselves
null
}
into file("${project.buildDir}/closure/")
}
task compileJavascript(type: JavaExec) {
dependsOn unpackClosureLib
classpath files(configurations.closureCompiler)
// main = 'com.google.javascript.jscomp.CommandLineRunner'
main = '-jar'
println configurations.closureCompiler.asPath
// args ''--help'
args = [configurations.closureCompiler.asPath,
'--js=server/src/js/**.js',
'--js=build/closure/goog/base.js',
'--dependency_mode=PRUNE',
'--entry_point=fmltc.Admin',
'--entry_point=fmltc.Box',
'--entry_point=fmltc.DeleteConfirmationDialog',
'--entry_point=fmltc.DeleteForbiddenDialog',
'--entry_point=fmltc.DownloadDatasetDialog',
'--entry_point=fmltc.DownloadModelDialog',
'--entry_point=fmltc.LabelVideo',
'--entry_point=fmltc.ListDatasets',
'--entry_point=fmltc.ListModels',
'--entry_point=fmltc.ListVideos',
'--entry_point=fmltc.MonitorTraining',
'--entry_point=fmltc.Point',
'--entry_point=fmltc.ProduceDatasetDialog',
'--entry_point=fmltc.StartTrainingDialog',
'--entry_point=fmltc.TrainMoreDialog',
'--entry_point=fmltc.UploadVideoFileDialog',
'--entry_point=fmltc.Util',
'--js_output_file=compiled/js/fmltc.js' ]
}