forked from liferay/liferay-portal
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
49 lines (40 loc) · 1.73 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
import de.undercouch.gradle.tasks.download.Download
apply plugin: "de.undercouch.download"
task copyInceptionModel(type: Copy)
task downloadInceptionModel(type: Download)
sourceCompatibility = "1.8"
targetCompatibility = "1.8"
classes {
dependsOn copyInceptionModel
}
copyInceptionModel {
dependsOn downloadInceptionModel
from {
zipTree(downloadInceptionModel.dest)
}
includeEmptyDirs = false
into "classes/META-INF/model"
}
dependencies {
compileInclude group: "org.tensorflow", name: "libtensorflow", version: "1.8.0"
compileInclude group: "org.tensorflow", name: "libtensorflow_jni", version: "1.8.0"
compileInclude group: "org.tensorflow", name: "tensorflow", version: "1.8.0"
compileOnly group: "biz.aQute.bnd", name: "biz.aQute.bndlib", version: "3.1.0"
compileOnly group: "com.liferay.portal", name: "com.liferay.portal.impl", version: "default"
compileOnly group: "com.liferay.portal", name: "com.liferay.portal.kernel", version: "default"
compileOnly group: "de.undercouch", name: "gradle-download-task", version: "3.2.0"
compileOnly group: "org.osgi", name: "org.osgi.core", version: "6.0.0"
compileOnly group: "org.osgi", name: "org.osgi.service.component.annotations", version: "1.3.0"
compileOnly project(":apps:asset:asset-auto-tagger-api")
compileOnly project(":apps:static:portal-configuration:portal-configuration-metatype-api")
compileOnly project(":core:petra:petra-concurrent")
compileOnly project(":core:petra:petra-process")
compileOnly project(":core:petra:petra-reflect")
compileOnly project(":core:petra:petra-string")
}
downloadInceptionModel {
dest new File(buildDir, "inception5h.zip")
onlyIfNewer true
overwrite false
src "https://storage.googleapis.com/download.tensorflow.org/models/inception5h.zip"
}