When you create a project with gradle, you get two build.gradle.
I wonder why I have two. The contents of the two builds.gradles are the same.
One is about modules and the other is about the whole project?
gradle intellij-idea
You're right about what you understand. A project can consist of one or more modules. The build.gradle in the root directory is the top-level build file, and the build.gradle in the module is the module-level build file. The top-level build file is for the build setup common to all modules, and the module-level is the setup file for each module.
Reference Page
© 2024 OneMinuteCode. All rights reserved.