template repository for Java projects using Gradle
- JDK 21 (Amazon Corretto)
- Gradle 8
- GitHub Actions CICD
- Automatic code formatting via Spotless
- Code style analysis via Checkstyle
- Static analysis via SpotBugs
- Unit and integration test support via JUnit 5 and TestSets plugin
- Code coverage reporting via Codecov
- Dependency upgrades via Renovate bot
- Click Use this template
- This will prompt you to create a new repository with all the files setup
- Rename the root project (currently
java-gradle-template
) and group (currentlycom.willmolloy
) to your liking - Delete anything you won't use (sub projects, dependencies, etc.)
- Update the README
- Other non-code setup like your GitHub branch protections
./gradlew spotlessApply build integrationTest
- Keep up to date with:
- Future Java versions
- Future Gradle versions
- Other dependency upgrades
- Any other cool tools or plugins