The default module repositories are
https://modules.ceylon-lang.org/repo/1, while the default source directory is
source and the default resource directory is
resource. The default output module repository is
<moduleOrFile> arguments can be either module names (without versions) or file paths specifying the Ceylon or Java source code to compile.
<moduleOrFile> specifies a module the compiler searches for compilation units and resource files belonging to the specified modules in the specified source and resource directories. For each specified module, the compiler generates a module archive, source archive, and their checksum files in the specified output module repository.
<moduleOrFile> specifies a source file only that file is compiled and the module archive is created or updated with the .class files produced. The source file path is treated as relative to the current directory (it still needs to be located either in the default source folder or in any folder defined by the configuration file or
<moduleOrFile> specifies a resource file only that file is added to the module archive. The resource file path is treated as relative to the current directory (it still needs to be located either in the default resource folder or in any folder defined by the configuration file or
All program elements imported by a compilation unit must belong to the same module as the compilation unit, or must belong to a module that is explicitly imported in the module descriptor.
The compiler searches for dependencies in the following locations:
- module archives in the specified repositories,
- source archives in the specified repositories, and
- module directories in the specified source directories.