I am new to java and I was going through this article on medium
Here author wrote something like this to explain project file
The settings.gradle file contains a list of your modules and project name. Keep in mind that an Android project can consist of one or several modules, which can each contain their own feature or logic. The gradle.propertiesfile defines your settings and configures a build environment. The gradle, gradlew, and gradlew.bat files are related to Gradle wrapper, so we don’t have to manually install Gradle. build.gradle is a top-level build file. Here we can add configuration options shared by all modules. For example, you can give your files access to repositories for core Android functionalities.
Which I am unable to comprehend. So I googled and stumbled upon this amazing SOF answer
Settings gradle
For settings.gradle I was able to comprehend that
- There is only one settings gradle file in the project
- it contains all included sub modules
But I didn't got what he meant when he said
mark the directory root of a tree of modules,
And
submodule lookup can be customized
Build gradle
In the build.gradle file of the main module, you can use allprojects {} or subprojects {} to define settings for all other modules.
Wasn't that what settings.gradle was for? to define settings for all included sub-module
Can someone answer my above question? Also, gradle.properties in Android should be used more or less like environment file?