Gradle - Single Project

About

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

Sample

https://github.com/gradle/gradle/tree/master/subprojects/docs/src/samples

Management

Create

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

File Structure

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

where:

Directory Structure

https://docs.gradle.org/current/userguide/java_plugin.html#sec:java_project_layout





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