Skip to main content

Groovy Console

Install on AEM as a Cloud Service

In your 'Root' Pom add the following dependency:

pom.xml
<dependency>
<groupId>org.cid15.aem.groovy.console</groupId>
<artifactId>aem-groovy-console-all</artifactId>
<version>17.0.0</version>
<type>zip</type>
</dependency>

In your 'All' Pom add the following dependency and plugin:

all/pom.xml
<plugin>
<groupId>org.apache.jackrabbit</groupId>
<artifactId>filevault-package-maven-plugin</artifactId>
<extensions>true</extensions>
<configuration>
<showImportPackageReport>false</showImportPackageReport>
<group>vwg.cms.c4c</group>
<packageType>container</packageType>
<!-- skip sub package validation for now as some vendor packages like CIF apps will not pass -->
<skipSubPackageValidation>true</skipSubPackageValidation>
<embeddeds>
<!-- [...] -->
<embedded>
<groupId>org.cid15.aem.groovy.console</groupId>
<artifactId>aem-groovy-console-all</artifactId>
<type>zip</type>
<target>/apps/c4c-vendor-packages/container/install</target>
</embedded>
</embeddeds>
</configuration>
</plugin>
all/pom.xml
<dependency>
<groupId>org.cid15.aem.groovy.console</groupId>
<artifactId>aem-groovy-console-all</artifactId>
<type>zip</type>
</dependency>

Add the following osgi configuration file:

ui.config/src/main/content/jcr_root/apps/<your-app>/osgiconfig/config.author.dev/org.cid15.aem.groovy.console.configuration.impl.DefaultConfigurationService.cfg.json
{
"allowedGroups":[
"administrators"
],
"allowedScheduledJobsGroups":[
"administrators"
]
}