/manipulator-groovy-examples

Example repository for Groovy scripting for PME/GME

Primary LanguageJavaApache License 2.0Apache-2.0

Build status (GitHub Actions)

Table of Contents

Introduction

This is a demonstration Maven based project to create Groovy scripts for either PME or GME. It is setup to make development easier within an IDE (primarily for IntelliJ but should work in other environments).

Prerequisites

IntelliJ

With current versions of IntelliJ both Lombok and Groovy handling are built in so no plugins are required.

Usage

Currently this project comes with two sample groovy scripts ( with API completion enabled ) and two sample tests to demonstrate the application of those scripts. The project should be imported into IntelliJ as a new project and it should use the Maven model it setup the structure.

For a breakdown of existing scripts please see this

Note: Do not attempt to run the Groovy scripts directly as that will not work or demonstrate usage of the tooling. Instead, run them via the example tests.

Note: it is currently not possible to debug a GME script with invocation point LAST when invoking the tool via the CLI. See here for further information.

Contributions

Contributions are very welcome. Each example Groovy script should be paired with a test and documentation to describe its usage.