Gradle - Single Project


A single-project has only the root project listed in the output of the gradle projects command, it's a multi-project




# groovy
gradle init
# kotlin
gradle init --dsl kotlin

File Structure

├── build.gradle  
├── gradle
│   └── wrapper
│       ├── gradle-wrapper.jar  
│       └──  
├── gradlew  
├── gradlew.bat  
└── settings.gradle  


Directory Structure

Discover More
Gradle - Multi-Project

A page multi-project setup in gradle. There is only one settings.gradle file at the root There is one top-level build script (build.gradle) (also known as the root project) that configure common...
Gradle - Test

add a testImplementation or testCompile dependency in the module where the test are to create a test jar in kotlin dsl in the module that depends on the test class Single project:...
Gradle - build.gradle

build.gradle is a gradle script that is read and builds in memory an instance of Project There is a one-to-one relationship between...
Gradle - settings file

The Gradle settings script is a configuration element of a multi-project. It declares the configuration required to instantiate and configure the hierarchy of Project instances which are to participate...

Share this page:
Follow us:
Task Runner