forked from liferay/liferay-portal
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathbuild.gradle
More file actions
101 lines (74 loc) · 2.8 KB
/
build.gradle
File metadata and controls
101 lines (74 loc) · 2.8 KB
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
import com.liferay.gradle.util.copy.StripPathSegmentsAction
task buildBootstrapJS(type: Copy)
task buildJQuery(type: Copy)
task buildJQueryForm(type: Copy)
task buildPopperJS(type: Copy)
File jsDestinationDir = file("tmp/META-INF/resources")
File jqueryDestinationDir = new File(jsDestinationDir, "jquery")
buildBootstrapJS {
dependsOn buildJQuery
eachFile new StripPathSegmentsAction(3)
from "node_modules"
include "bootstrap/dist/js/bootstrap.bundle.min.js"
include "bootstrap/dist/js/bootstrap.bundle.min.js.map"
includeEmptyDirs = false
into jqueryDestinationDir
}
buildJQuery {
dependsOn npmInstall
doFirst {
delete jqueryDestinationDir
}
eachFile new StripPathSegmentsAction(2)
from npmInstall.nodeModulesDir
include "jquery/dist/jquery.min.js"
include "jquery/dist/jquery.min.js.map"
includeEmptyDirs = false
into jqueryDestinationDir
}
buildJQueryForm {
dependsOn buildJQuery
eachFile new StripPathSegmentsAction(2)
from npmInstall.nodeModulesDir
include "@liferay/jquery-form/jquery.form.js"
includeEmptyDirs = false
into jqueryDestinationDir
rename "jquery.form.js", "form.js"
}
buildPopperJS {
dependsOn buildJQuery
eachFile new StripPathSegmentsAction(3)
from npmInstall.nodeModulesDir
include "popper.js/dist/umd/popper.min.js"
include "popper.js/dist/umd/popper.min.js.map"
includeEmptyDirs = false
into jqueryDestinationDir
}
classes {
dependsOn buildBootstrapJS
dependsOn buildJQuery
dependsOn buildJQueryForm
dependsOn buildPopperJS
}
clean {
delete "tmp"
}
dependencies {
compileOnly group: "biz.aQute.bnd", name: "biz.aQute.bnd.annotation", version: "4.2.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: "com.liferay.portal", name: "com.liferay.util.taglib", version: "default"
compileOnly group: "javax.portlet", name: "portlet-api", version: "3.0.1"
compileOnly group: "javax.servlet.jsp", name: "javax.servlet.jsp-api", version: "2.3.1"
compileOnly group: "org.apache.felix", name: "org.apache.felix.http.servlet-api", version: "1.1.2"
compileOnly group: "org.osgi", name: "org.osgi.service.component", version: "1.3.0"
compileOnly group: "org.osgi", name: "org.osgi.service.component.annotations", version: "1.3.0"
compileOnly group: "org.osgi", name: "osgi.core", version: "6.0.0"
compileOnly project(":apps:portal-url-builder:portal-url-builder-api")
compileOnly project(":apps:static:osgi:osgi-util")
compileOnly project(":apps:static:portal-configuration:portal-configuration-metatype-api")
compileOnly project(":core:osgi-service-tracker-collections")
compileOnly project(":core:petra:petra-lang")
compileOnly project(":core:petra:petra-sql-dsl-api")
compileOnly project(":core:petra:petra-string")
}