This repository has been archived by the owner on Jan 3, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 18
/
Copy pathbuild.gradle.kts
96 lines (89 loc) · 3.62 KB
/
build.gradle.kts
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
plugins {
id("com.cognifide.environment")
id("com.cognifide.aem.instance.local")
}
repositories {
jcenter()
maven("https://dl.bintray.com/acs/releases")
}
aem {
`package` {
validator { // https://github.com/wttech/gradle-aem-plugin/blob/master/docs/package-plugin.md#crx-package-validation
base("com.adobe.acs:acs-aem-commons-oakpal-checks:4.4.0")
}
}
instance {
provisioner { // https://github.com/wttech/gradle-aem-plugin/blob/master/docs/instance-plugin.md#task-instanceprovision
enableCrxDe()
deployPackage("com.adobe.cq:core.wcm.components.all:2.8.0@zip")
deployPackage("https://github.com/valtech/aem-easy-content-upgrade/releases/download/3.1.1/aecu.bundle-3.1.1.zip")
deployPackage("https://github.com/wttech/aem-stubs/releases/download/1.0.3/stubs-app-1.0.3.zip")
deployPackage("https://repo1.maven.org/maven2/biz/netcentric/cq/tools/accesscontroltool/accesscontroltool-package/2.3.2/accesscontroltool-package-2.3.2.zip")
deployPackage("https://repo1.maven.org/maven2/biz/netcentric/cq/tools/accesscontroltool/accesscontroltool-oakindex-package/2.3.2/accesscontroltool-oakindex-package-2.3.2.zip")
deployPackage("com.neva.felix:search-webconsole-plugin:1.3.0")
}
}
localInstance {
install {
files {
// https://github.com/wttech/gradle-aem-plugin/blob/master/docs/local-instance-plugin.md#pre-installed-osgi-bundles-and-crx-packages
}
}
}
}
environment { // https://github.com/wttech/gradle-environment-plugin
docker {
containers {
"httpd" {
resolve {
resolveFiles {
download("http://download.macromedia.com/dispatcher/download/dispatcher-apache2.4-linux-x86_64-4.3.3.tar.gz").use {
copyArchiveFile(it, "**/dispatcher-apache*.so", file("modules/mod_dispatcher.so"))
}
}
rootProject.file("env/src/environment/httpd/conf.d/variables/default.vars")
.copyTo(rootProject.file("app/aem/dispatcher/src/conf.d/variables/default.vars"), true)
ensureDir("htdocs", "cache", "logs")
}
up {
ensureDir("/usr/local/apache2/logs", "/var/www/localhost/htdocs", "/var/www/localhost/cache")
execShell("Starting HTTPD server", "/usr/sbin/httpd -k start")
}
reload {
cleanDir("/var/www/localhost/cache")
execShell("Restarting HTTPD server", "/usr/sbin/httpd -k restart")
}
dev {
watchRootDir(
"app/aem/dispatcher/src/conf.d",
"app/aem/dispatcher/src/conf.dispatcher.d",
"env/src/environment/httpd")
}
}
}
}
hosts {
"http://example.com" { tag("live") }
}
healthChecks {
http("Site 'live'", "http://example.com", "Example")
http("Author Sites Editor", "http://localhost:4502/sites.html") {
containsText("Sites")
options { basicCredentials = aem.authorInstance.credentials }
}
}
}
tasks {
instanceResolve {
dependsOn(":requireProps")
}
instanceCreate {
dependsOn(":requireProps")
}
environmentUp {
mustRunAfter(instanceUp, instanceProvision, instanceSetup)
}
environmentAwait {
mustRunAfter(instanceAwait)
}
}