Group ID and version number
How to set up or change a project's group ID and version number.
Now we've covered the basics of a new Gradle project, let's go back and look at how to set the groupID and version of a new project.
Let's follow the same steps we took earlier, creating a new Gradle project with Java and the Groovy DSL.
After we've entered the project name, e.g. "more-gradle", we can click on "artifact coordinates" to configure more settings for the project.
We can optionally enter a new GroupId, which is usually the company domain. If we try to change the ArtifactId, IntelliJ IDEA warns us that this should be the same as the project name
We can also change the project's version number, if we have a different number for the project, or a different version number format.
When we create the project, we can see the groupID and version number are set in the build.gradle file.
group 'com.jetbrains'
version '1.0-SNAPSHOT'
Next, we'll look at how to open an existing Gradle project, and how IntelliJ IDEA helps us here.