Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Intellij gradle - using explicit module groups VS using qualified names

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?

like image 667
Minjun Yu Avatar asked Jan 09 '18 06:01

Minjun Yu


People also ask

How do I use qualified module names in IntelliJ IDEA?

In this new EAP, IntelliJ IDEA can also use qualified names to organize modules. In the IntelliJ IDEA 2017.3 EAP build, grouping by qualified module names will be enabled by default if there are no module groups configured in your current project. If the Flatten Module option is off, modules are shown as a hierarchy.

What is a module group in IntelliJ?

If you have a large project with multiple modules, grouping will make it easier to navigate through your project. Module groups can be nested: a group can contain other subgroups. IntelliJ IDEA 2017.3 and later uses fully qualified names to group modules.

How do I link a Maven or Gradle project to IntelliJ?

For information on how to attach a Maven or Gradle project to your current project, refer to Link a Gradle project to an IntelliJ IDEA project and Link and unlink a Maven project. In IntelliJ IDEA, you can logically group modules. If you have a large project with multiple modules, grouping will make it easier to navigate through your project.

Can you have multiple modules in IntelliJ?

Projects with multiple modules IntelliJ IDEA allows you to have many modules in one project, and they shouldn't be just Java. You can have one module for a Java application and another module for a Ruby on Rails application or for any other supported technology.


1 Answers

  • 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.

like image 69
Alex Wittig Avatar answered Oct 19 '22 14:10

Alex Wittig