Intellij gradle - using explicit module groups VS using qualified names

Minjun Yu :

I am trying to create a Gradle Java application.

In the New Project wizard, two options are available:

  • using explicit module groups
  • using qualified names

What do those two options mean? What are the differences?

Alex Wittig :
  • using explicit module groups

This refers to the ability to manually create groups of modules using whatever naming you like, and assigning modules to whichever groups you like. You can manipulate your module groups in Project Structure -> Project Settings -> Modules. This functionality has been in Intellij for some time. This doesn't affect the behavior of your code, but is simply a way for you to stay organized.

  • using qualified names

This is a newer option. It refers to the qualified module names introduced by Java 9 Jigsaw, which formalized the concept of modules in Java. If you choose this option, your modules will be grouped by their Jigsaw module names. In other words, Intellij will visually organize your modules according to the way Java understands them to be grouped.

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=422789&siteId=1