Skip to content
Public template

About

Starter template for Gradle

Resources

Code of conduct

Contributing

Security policy

Stars

3 stars

Watchers

0 watching

Forks

Repository files navigation

maven-central-version maven-metadata-url git-hub-release

codacy-grade codecov git-hub-actions-workflow-status

JDK GRADLE KOTLIN NODE

mymx2 Markdown git-hub-license Ask DeepWiki

🏕️ Project Template

This repo contains a Gradle project structure with:

  • Centralized and maintainable build configuration and custom build logic
  • No dependency hell through smart dependency management with dependency rules and analysis

The starter project contains everything for a traditional JVM project. The structure though, is good for any kind of project you may build with Gradle (Kotlin, Groovy, Scala, ...).

🧱 Project Overview

You can find a detailed explanation of the project structure in Gradle Basics.

Core Concepts

Gradle Project Structure

Project Structure

project
├── gradle
│   ├── libs.versions.toml
│   └── wrapper
│       ├── gradle-wrapper.jar
│       └── gradle-wrapper.properties
├── gradlew
├── gradlew.bat
├── settings.gradle(.kts)
├── subproject-a
│   ├── build.gradle(.kts)
│   └── src
└── subproject-b
    ├── build.gradle(.kts)
    └── src

Build Lifecycle

Build Lifecycle

Configuration Cache

Configuration Cache

The Configuration Cache improves build performance by caching the result of the configuration phase and reusing it for subsequent builds.

Dependency Scopes

https://docs.gradle.org/nightly/userguide/declaring_configurations.html#sec:resolvable-consumable-configs

Mapping between Java module directives and Gradle configurations to declare dependencies: declaring_module_dependencies

🍰 Project Usage

you can run ./gradlew help to get gradle commands-line usage help.

you can run git update-index --chmod=+x gradlew to make gradlew executable.

git update-index --chmod=+x gradlew

🏝️ Thanks

This project is heavily inspired by the following awesome projects.

About

Starter template for Gradle

Resources

Code of conduct

Contributing

Security policy

Stars

3 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages