Skip to content
This repository has been archived by the owner on Oct 22, 2023. It is now read-only.
/ java-bundle Public archive

A bundle for Batect that provides a development container for JVM-based languages that use Gradle, with sensible default configuration.

License

Notifications You must be signed in to change notification settings

batect/java-bundle

java-bundle

Build Status License

A bundle for Batect that provides a development container for JVM-based languages that use Gradle, with sensible default configuration.

Usage

Setup

Add the following to your batect.yml:

include:
  - type: git
    repo: https://github.com/batect/java-bundle.git
    ref: XXX # Replace with latest version from https://github.com/batect/java-bundle/releases

Containers

java-build-env

A container (based on the AdoptOpenJDK images) with sensible defaults for use with Gradle.

It mounts the project directory into the container, enables run as current user mode and configures a cache for dependencies downloaded by Gradle.

The Gradle daemon is disabled, as starting the daemon is counterproductive in an ephemeral container.

Note that the container does not contain Gradle itself - use the Gradle wrapper.

Example

tasks:
  build:
    description: Build the project.
    group: Build tasks
    run:
      container: java-build-env
      command: ./gradlew build

include:
  - type: git
    repo: https://github.com/batect/java-bundle.git
    ref: XXX # Replace with latest version from https://github.com/batect/java-bundle/releases

The Java sample project also demonstrates how to use this bundle.

Development

Run ./batect --list-tasks to see a list of available tasks for this project.

About

A bundle for Batect that provides a development container for JVM-based languages that use Gradle, with sensible default configuration.

Topics

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks