What is a Kotlin module?

2020-04-01 08:30发布

问题:

In the Kotlin documentation they are mentioning some kind of module for instance in the documentation for the internal modifier.

However I couldn't find any definition of the term module itself. So what is meant by module?

回答1:

A module is a set of Kotlin sources compiled together:

  • an IntelliJ IDEA module;
  • a Maven project;
  • a Gradle source set;
  • a set of files compiled with one invocation of the Ant task.

This is in the same docs article about visibility modifiers. :)



标签: kotlin