Skip to content
This repository has been archived by the owner on Jan 3, 2023. It is now read-only.
/ gradle-aem-boot Public archive

Example project for booting local AEM instances and AEM dispatcher automatically

License

Notifications You must be signed in to change notification settings

wttech/gradle-aem-boot

Repository files navigation

WTT logo

Gradle Status Apache License, Version 2.0, January 2004

Gradle AEM Plugin logo

AEM Boot

This project could be used to boot local AEM instances and AEM dispatcher automatically.

As an effect, it sets up:

Automation used in this project is based on:

Table of Contents

Quickstart

  1. Clone project using command:

    git clone https://github.com/wttech/gradle-aem-boot.git && cd gradle-aem-boot
  2. Setup user specific AEM configuration using command:

    sh gradlew props

    and specify properties:

    Fork Props Dialog

  3. Setup hosts file using command (administrator / super user permissions required):

    sh hosts

    or on Windows

    hosts.bat
  4. Setup local AEM instances and environment using command:

    sh gradlew

    or equivalent

    sh gradlew setup await

Repeating command above will:

  • install new dependent CRX packages defined
  • perform new provisioning steps defined

Environment

Tested on:

  • Java 1.8
  • Gradle 5.4.1
  • Adobe AEM 6.5
  • Docker 2.0.0.3

Tooling

  • Generating / updating AEM instance configuration: sh gradlew props,
  • Monitoring errors in logs: sh gradlew instanceTail,
  • Copying content between environments/instances: sh gradlew instanceRcp,
  • Running content migration Groovy scripts: sh gradlew instanceGroovyEval.

Review plugin documentation for more details / how to use tools mentioned above.

Extending build

For defining new tasks directly in build see:

The easiest way to implement custom plugins and use them in project is a technique related with buildSrc/ directory. For more details please read documentation.