Visit https://groovyconsole.dev/ to try it out!
The Groovy Web Console lets you write, run, and share Groovy scripts right from your browser — no local installation required. Your code is executed by a cloud backend and the result is sent straight back to the editor.
You can:
- Run plain Groovy scripts as well as Spock specifications.
- Pick the Groovy version to run against (3, 4, 5, or a 6 pre-release).
- Inspect the Abstract Syntax Tree (AST) of your code.
- Save and share your scripts as GitHub gists, and browse your session history.
The sections below are for contributors who want to build, run, or deploy the project locally.
Go to functions/groovy-executor and type ../../mvnw package.
The output will be in functions/groovy-executor/target/deployment.
There are different profiles, one for each groovy version:
groovy_6_0_alpha(no Spock — see below)groovy_5_0groovy_4_0(default)groovy_3_0
Use ../../mvnw package -P groovy_5_0
Switching profiles locally requires
clean. Each profile compiles a different set of (test) sources, so run e.g.../../mvnw clean package -P groovy_6_0_alpha. Withoutclean, stale classes from a previous profile linger intarget/and can cause a confusingspock/lang/Specificationfailure when building the Spock-freegroovy_6_0_alphavariant. (CI is unaffected — it builds from a fresh checkout.)
Spock has no release compatible with Groovy 6 yet, so the groovy_6_0_alpha
variant ships without Spock. Plain Groovy scripts run normally; submitting a
Spock specification (or using the AST view) returns a "not supported on this
Groovy version yet" message instead. The concrete alpha version is controlled by
the groovy.6.version property in functions/pom.xml, so bumping to a newer
alpha is a one-line change deployed to the same groovy_6_0_alpha function.
Because the runtime id contains alpha, the frontend never selects it as the
default version.
Go to https://github.com/groovy-console/groovy-web-console/actions/workflows/deploy.yml and click on Run Workflow
You need to have Node 16 LTS installed.
- Navigate to
services/frontend - Install dependencies with
npm ci - Build the frontend with
npm run build
The output will be in services/frontend/dist.
Do the same steps as building the frontend but substitute the last command for:
npm run serve-remoteto run the frontend with the remote backendnpm run serve-localto run the frontend with the local backend (start it with../../mvnw function:runfrom insidefunctions/groovy-executor)
You can check the code style with npm run lint and automatically fix most issues with npm run lint-fix.
The web frontend consists only of static assets (HTML, JavaScript, and CSS).
Go to https://github.com/groovy-console/groovy-web-console/actions/workflows/deploy-frontend.yml and click on Run Workflow.
Alternatively, to deploy it manually after building it, go to the services/frontend directory, and type: ./deploy.sh
