public final class AddedJars
extends java.lang.Object
Remembers which resolved jars have already been added to which native Gradle configuration, so a
jar reachable through several coordinates, branches or sources { } entries is added to any
one configuration exactly once.
- Implementation Note:
- The key is the PAIR, not the jar alone. One jar legitimately belongs on two
configurations at once: an annotation library is needed on
compileOnly for the source that
references it and on annotationProcessor for the processor that reads it, and keying by
jar alone silently dropped the second, leaving the processor to fail with a
NoClassDefFoundError at compile time.