liveBook · Manning

Gradle

As explained in Developer Experience on Kubernetes

Gradle is a build automation tool for defining and executing software build workflows, including dependency management and testing.

Gradle is a build tool for Java projects that turns the development workflow into executable tasks. In this application, the bootRun task starts the Spring Boot service and its PostgreSQL dependency through Testcontainers. section 2.3.1

The developer workflow is:

  • Open a terminal inside Visual Studio Code. section 2.3.1
  • Run the Gradle wrapper task to launch the application. section 2.3.1
  • Let Testcontainers instantiate the PostgreSQL dependency at startup. section 2.3.1
  • Send HTTP requests to verify that the running service responds. section 2.3.1

Start the appointments service

Run ./gradlew bootRun, wait for the application-started message, then test the service at the /appointments endpoint on port 8081. section 2.3.1

./gradlew bootRun

Use the Gradle wrapper command to start the Spring Boot application. section 2.3.1

How Developer Experience on Kubernetes covers it

How deep it goes
Defines Gradle as a Java build tool and explains bootRun behavior, but does not detail build configuration or task internals.
Examples
Uses ./gradlew bootRun to launch the appointments service before testing its HTTP endpoint.
What it assumes
Assumes familiarity with Java projects, Spring Boot, terminals, and HTTP service testing.
What you can do after
Operate a Spring Boot service locally with its PostgreSQL dependency by running the Gradle wrapper.
How it connects
Connects Gradle with Java, Spring Boot, Testcontainers, PostgreSQL, and Maven as an alternative build tool.

Also explained in

Compare how 4 books explain Gradle →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Developer Experience on Kubernetes. The section links point to the parts of the book it draws on.