I have a question when Intelligence creates Gradl's project

Asked 2 years ago, Updated 2 years ago, 122 views

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

2022-09-22 12:18

1 Answers

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


2022-09-22 12:18

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.