-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathbuild.gradle
64 lines (43 loc) · 1.37 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
61
62
63
64
buildscript {
dependencies {
classpath group: "com.liferay", name: "com.liferay.gradle.plugins.defaults", version: "5.0.22"
// classpath group: "com.liferay", name: "com.liferay.gradle.plugins.defaults", version: "latest.release"
classpath group: "de.undercouch", name: "gradle-download-task", version: "3.1.1"
}
repositories {
mavenLocal()
maven {
url "https://cdn.lfrs.sl/repository.liferay.com/nexus/content/groups/public"
}
}
}
if (parent == null) {
apply plugin: "com.liferay.root.defaults.plugin"
} else {
apply plugin: "com.liferay.defaults.plugin"
}
def bundles = "bundles.zip"
import de.undercouch.gradle.tasks.download.Download
//task cleanup() {
// delete "tmp"
// delete bundles
// delete "../bundles"
//}
task downloadBundle(type: Download) {
src 'http://downloads.sourceforge.net/project/lportal/Liferay%20Portal/7.0.3%20GA4/liferay-ce-portal-tomcat-7.0-ga4-20170613175008905.zip'
dest file (bundles)
overwrite false
enabled = project.name == rootProject.name
}
task unzipBundle(type: Copy) {
dependsOn downloadBundle
from(zipTree(bundles))
into "tmp"
enabled = project.name == rootProject.name
}
task initBundle(type: Copy) {
dependsOn unzipBundle
from("tmp/liferay-ce-portal-7.0-ga4")
into("../bundles")
enabled = project.name == rootProject.name
}