A development environment for Gradle projects. It provides versioned releases of the Gradle build tool and persists packages to speed up builds across workshop updates.
A minimal workshop:
# workshop.yaml
name: gradle-app
base: [email protected]
sdks:
- name: openjdk
channel: 21/stable
- name: gradle
channel: 9/stable
actions:
build: gradle build
launch: gradle run
test: gradle testThis demonstrates a basic Gradle build workflow.
Note: The Gradle Workshop SDK requires a Java Development Kit (JDK) installation with a suitable version to run. You can check the compatibility matrix for more information.
- The
openjdkSDK (or other JDK installation) is required. - Your Gradle project should be in your project directory.
- On launch, the SDK confugures
PATH. No dependencies are pre-installed; Packages are downloaded during the firstgradle buildorgradle run.
Once the workshop is ready:
workshop shell
gradle buildThe first build downloads packages into ~/.gradle/caches, which is mapped to your host via the gradle-cache mount plug. Subsequent builds reuse cached packages.
To see where the Gradle cache is stored on the host:
workshop infoFrom within the workshop shell:
workshop shell
gradle test
gradle runUse standard gradle and ./gradlew commands; the toolchain behaves exactly as it would in a regular Gradle installation.
- Interface:
mount - Workshop target:
/home/workshop/.gradle/cache - Purpose: Persists package downloads between workshop updates.
This SDK doesn't define any slots.
- Gradle community: Gradle Community Forum
- Workshop forum: Discourse
- Please review our Code of Conduct before participating.
All contributions, including code, documentation updates, and issue reports, are welcome!
- See CONTRIBUTING for guidelines.
- Open issues or pull requests on the official repository.
Copyright 2026 Canonical Ltd.
This program is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License version 2.1 (LGPLv2.1) as published by the Free Software Foundation.
Gradle is licensed under Apache License 2.0.