Add comments

This commit is contained in:
Alexandre Archambault 2015-06-18 17:52:32 +01:00
parent 13cbbf6fbd
commit 722d4ff614
1 changed files with 15 additions and 0 deletions

View File

@ -1,5 +1,14 @@
package coursier.core
/**
* Identify a "module".
*
* During resolution, all dependencies having the same module
* will be given the same version, if there are no version conflicts
* between them.
*
* Ivy attributes would land here, if support for Ivy is added.
*/
case class Module(organization: String,
name: String) {
@ -12,6 +21,12 @@ case class Module(organization: String,
sealed abstract class Scope(val name: String)
/**
* Dependencies with the same @module will typically see their @version-s merged.
*
* The remaining fields are left untouched, some being transitively
* propagated (exclusions, optional, in particular).
*/
case class Dependency(module: Module,
version: String,
scope: Scope,