Category.DOCUMENTATION is compatible with other category types If one requests documentation, we want to be lenient. That is, if a publicati…
Category.DOCUMENTATION is compatible with other category typesIf one requests documentation, we want to be lenient. That is,if a publication does not contain any documentation, we don't wantto fail. Instead, we now just return what we have (i.e. the mainartifact) which can also be used for documentation purpose inthe absence of other documentation. E.g. an IDE can de-compilethe bytecode if the source code is missing.This change is also needed to make local matching work. Sincethe documentation variants are secondary variants to a primaryLIBRARY variant, the matching would fail on the incompatibleprimary variant before even considering the secondary variantsfor selection.