Android build.gradle, what is the group used for?

check build.gradle and there is a variable from the project itself, called the "group". In the code, I inherited its set to the application identifier, but what is the group used for?

gradle documentation it says:

void setGroup (group of objects) Sets the group of this project.

UPDATE: from what I can say from here , it looks like groups are joining tasks together.

+4
source share
1 answer

A group is actually a namespace for identifying artifacts or artifacts created by an assembly. For example, when you have a dependency like this:

dependencies {
    compile 'org.hibernate:hibernate-core:3.6.7.Final'
}

org.hibernate - ( groupId Maven). , JAR , , , :

group = "org.example"

, . JAR.

+8

Source: https://habr.com/ru/post/1598106/


All Articles