/
build.gradle
68 lines (45 loc) · 1.36 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
65
66
67
68
allprojects {
repositories {
maven { url 'https://jitpack.io' }
}
plugins.withId("com.liferay.node") {
node.nodeVersion = "6.12.2"
}
}
buildscript {
dependencies {
classpath group: "com.liferay", name: "com.liferay.gradle.plugins.defaults", version: "5.0.22"
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 downloadBundle(type: Download) {
src 'https://cdn.lfrs.sl/releases.liferay.com/portal/7.0.4-ga5/liferay-ce-portal-tomcat-7.0-ga5-20171018150113838.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
}