custom-gradle-dist-gradle-plugin

Facilitates custom Gradle wrappers construction

View on GitHub

Overview

This is an example of using custom Gradle distribution for projects with the same setup - we create a single custom distribution and use it everywhere.

Note: java 21 is required

Custom Distribution

custom-distribution project defines common distribution setup in the setup.gradle.

Client Project

client-project is configured to use that custom distribution and defines only bare minimum of the configuration.

In Action

  1. Build custom distribution
    pushd custom-distribution; ./gradlew buildGradleDist; popd
  2. Run the client project
    pushd client-project; ./gradlew bootRun; popd
  3. Call a web server started by the client project and ensure that it works
     curl 127.0.0.1:8080/ping
     Hi there!