Settings

  • A Settings object declares the configuration required to instantiate and configure the hierarchy of Project instances which are to participate in a build.
  • With this Settings object you can add sub-projects to your build, modify the parameters from the command line (StartParameter), and access the Gradle object to register lifecycle handlers

The settings.gradle file

  • Before Gradle assembles projects for a build, it creates a Settings instance and executes the settings.gradle file against it
  • There will only be one settings.gradle even in a multi-module project

Refs

  1. https://docs.gradle.org/3.3/dsl/org.gradle.api.initialization.Settings.html