@@ -30,7 +30,7 @@ Simply, using e.g bash script - download the GAP launcher run it with regular GA
3030
3131| GAP Launcher | AEM Project Archetype |
3232| --------------| -----------------------|
33- | 16.0.1 | 39 |
33+ | 16.0.4 | 39 |
3434
3535See also [ plugin compatibility] ( ../README.MD#compatibility ) .
3636
@@ -53,10 +53,34 @@ Below there are some sample usages of standalone launcher.
5353
5454### Enhancing Maven build
5555
56- To add Gradle/GAP support to existing Maven build generated from Adobe AEM Archetype, run command below:
56+ To add Gradle/GAP support to existing Maven build generated from Adobe AEM Archetype...
57+
58+ Choose one of the available options:
59+
60+ A) Gradle files added to the project directly (recommended):
61+
62+ ``` shell
63+ curl -OJL https://github.com/Cognifide/gradle-aem-plugin/releases/download/16.0.4/gap.jar && java -jar gap.jar && rm gap.jar
64+ ```
65+ Consequences:
66+
67+ * newly scaffolded files will be VCS-tracked by the Maven project,
68+ * there will be a single code repository with Maven files supplemented by only a few extra Gradle environment files,
69+ * on fresh setups cloning only a single code repository is needed to set up an automated AEM environment.
70+
71+ B) Gradle files at the root, Maven files nested into the ` maven ` directory
72+
73+ Consequences:
74+
75+ * newly scaffolded files will be NOT VCS-tracked by the Maven project,
76+ * there will be 2 code repositories:
77+ * existing one with Maven files (moved to sub dir ` maven ` ),
78+ * dedicated one for Gradle environment files (root dir/parent of ` maven ` ),
79+ * the advantage is separation of concerns (dedicate repository for environment files and the second one for application code),
80+ * on a fresh setup, cloning both code repositories is required to set up an automated AEM environment.
5781
5882``` shell
59- curl -OJL https://github.com/Cognifide/gradle-aem-plugin/releases/download/15.5.3 /gap.jar && java -jar gap.jar && rm gap.jar
83+ curl -OJL https://github.com/Cognifide/gradle-aem-plugin/releases/download/16.0.4 /gap.jar && java -jar gap.jar --app-dir=maven && rm gap.jar
6084```
6185
6286Demo (to play again refresh the page):
@@ -149,7 +173,7 @@ It is using `sh gradlew props` task to provide AEM instance files details, howev
149173To set up and turn on AEM instance(s) by single command, consider running:
150174
151175``` bash
152- curl -OJL https://github.com/Cognifide/gradle-aem-plugin/releases/download/15.5.3 /gap.jar \
176+ curl -OJL https://github.com/Cognifide/gradle-aem-plugin/releases/download/16.0.4 /gap.jar \
153177&& java -jar gap.jar --save-props \
154178 -PfileTransfer.user=foo -PfileTransfer.password=pass \
155179 -PlocalInstance.quickstart.jarUrl=http://company-share.com/aem/cq-quickstart-6.5.0.jar \
@@ -170,7 +194,7 @@ sh gradlew down
170194For deploying to AEM instance CRX package from any source consider using command:
171195
172196``` shell
173- curl -OJL https://github.com/Cognifide/gradle-aem-plugin/releases/download/15.5.3 /gap.jar && java -jar gap.jar && rm gap.jar
197+ curl -OJL https://github.com/Cognifide/gradle-aem-plugin/releases/download/16.0.4 /gap.jar && java -jar gap.jar && rm gap.jar
174198sh gradlew instanceDeploy -Pinstance.author -Pinstance.deploy.packageUrl=https://github.com/neva-dev/felix-search-webconsole-plugin/releases/download/search-webconsole-plugin-1.3.0/search-webconsole-plugin-1.3.0.jar
175199```
176200
@@ -188,7 +212,7 @@ Also instead of URL, dependency notation could be used to resolve package from M
188212To interactively monitor logs of any AEM instances using task [ ` instanceTail ` ] ( instance-plugin.md#task-instancetail ) , consider running command:
189213
190214``` bash
191- curl -OJL https://github.com/Cognifide/gradle-aem-plugin/releases/download/15.5.3 /gap.jar \
215+ curl -OJL https://github.com/Cognifide/gradle-aem-plugin/releases/download/16.0.4 /gap.jar \
192216&& java -jar gap.jar --save-props \
193217 -Pinstance.dev-author.httpUrl=http://foo:pass@10.11.12.1:4502 \
194218 -Pinstance.dev-publish.httpUrl=http://foo:pass@10.11.12.2:4503 \
@@ -203,7 +227,7 @@ Assuming instance running at URL *http://localhost:4502* or *http://localhost:45
203227Consider appending parameter e.g ` -Pinstance.list=http://admin:admin@localhost:4502 ` to customize the instance to work with.
204228
205229``` bash
206- curl -OJL https://github.com/Cognifide/gradle-aem-plugin/releases/download/15.5.3 /gap.jar && java -jar gap.jar && rm gap.jar
230+ curl -OJL https://github.com/Cognifide/gradle-aem-plugin/releases/download/16.0.4 /gap.jar && java -jar gap.jar && rm gap.jar
207231sh gradlew packageSync -Pfilter.roots=[/content/example,/content/dam/example]
208232```
209233
@@ -212,7 +236,7 @@ sh gradlew packageSync -Pfilter.roots=[/content/example,/content/dam/example]
212236To copy JCR content between any AEM instances using task [ ` instanceRcp ` ] ( instance-plugin.md#task-instancercp ) , consider running commands:
213237
214238``` bash
215- curl -OJL https://github.com/Cognifide/gradle-aem-plugin/releases/download/15.5.3 /gap.jar && java -jar gap.jar && rm gap.jar
239+ curl -OJL https://github.com/Cognifide/gradle-aem-plugin/releases/download/16.0.4 /gap.jar && java -jar gap.jar && rm gap.jar
216240sh gradlew instanceRcp \
217241 -Pinstance.rcp.source=http://foo:pass@10.11.12.1:4502 \
218242 -Pinstance.rcp.target=http://foo:pass@10.11.12.2:4503 \
0 commit comments