Skip to content

Cookiecutter for modern Gradle builds of Java, with build-test GitHub Actions.

License

Notifications You must be signed in to change notification settings

maciejskorski/cookiecutter-java-gradle

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

tests status

Cookiecutter for Java + Gradle

A cookiecutter template for modern Gradle (v8) builds of Java, with basic GitHub Actions for build-test.

Install and use

Install cookiecutter and then run

cookiecutter https://github.com/maciejskorski/cookiecutter-java-gradle`

Add the build-test task to GitHub Actions by adapting the following code

# .github/workflows/build_test.yaml
name: Java Simple CI

on:
  push:

jobs:
  build-test-project:
    runs-on: ubuntu-latest
    steps:
    - name: Checkout sources
      uses: actions/checkout@v3
    - name: Set up JDK 19
      uses: actions/setup-java@v3
      with:
        java-version: '19'
        distribution: temurin
    - name: Setup and execute Gradle
      uses: gradle/gradle-build-action@v2
      with:
        gradle-version: current
        arguments: |
          check
          build
          test
          --info
        build-root-directory: {{app_name}}

References

  1. Gradle Wrapper
  2. Gradle GitHub Action
  3. Older cookiecutter by @m-x-k

About

Cookiecutter for modern Gradle builds of Java, with build-test GitHub Actions.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages