/spring-gradle-build-action

Reusable GitHub Action for performing a gradle build or running a gradle task.

Primary LanguageShellApache License 2.0Apache-2.0

Spring Gradle Build Action

A composite action that combines the following steps:

  • Set up a JDK with actions/setup-java@v4
  • Set up a user.name system property with spring-builds+github
  • Validate the Gradle wrapper using gradle/actions/wrapper-validation@v3
  • Set up Gradle using gradle/actions/setup-gradle@v3

Accepts the following inputs:

  • java-version (Optional, defaults to '17')
  • distribution (Optional, defaults to 'temurin')

Installation

- name: Spring Gradle Build Action
  uses: spring-io/spring-gradle-build-action@v2
  with:
    java-version: '17'
    distribution: 'temurin'

Example Usage

- uses: actions/checkout@v3
- uses: spring-io/spring-gradle-build-action@v2
- name: Run tests
  run: ./gradlew test