Skip to main content

Groovy Console

Install on AEM as a Cloud Service

2025 Update - there is a more recent, updated version of the Groovy Console available for AEM as a Cloud Service -> https://github.com/orbinson/aem-groovy-console

/pom.xml
<dependency>
<groupId>be.orbinson.aem</groupId>
<artifactId>aem-groovy-console-all</artifactId>
<version>19.0.3</version>
<type>zip</type>
</dependency>
filevault-package-maven-plugin in the <embeddeds> section
<embedded>
<groupId>be.orbinson.aem</groupId>
<artifactId>aem-groovy-console-all</artifactId>
<target>/apps/vendor-packages/content/install</target>
</embedded>

The following steps are for the older, org.cid15, version of the Groovy Console:

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>18.0.2</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>some.group</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/groovy-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 root path in all/src/main/content/META-INF/vault/filter.xml

<filter root="/apps/groovy-vendor-packages"/>

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"
]
}