gradle - When are two artifacts considered equal? -
are 2 artifacts considered same dependency resolution if have 2 different values respective groups? example,
- com.example:artifact
and
- org.example:artifact
resolve same version of artifact on classpath (where gradle default choose latest)? or 2 copies of artifact (because gradle considers artifacts different , puts both on classpath)?
gradle considers dependencies unique if have matching group, name , version. in example, 2 dependencies not considered same since have different groups, , therefore duplicated. if know in advance such duplication exists, can declare module replacement.
dependencies { modules { module("com.example:artifact") { replacedby("org.example:artifact") } } }
Comments
Post a Comment