optional
config for library dependency maps to incorrect scope
#162
Labels
optional
config for library dependency maps to incorrect scope
#162
"optional"
config for library dependency is just a flag and shouldn't really map to a scope.For example, having the following as library dependency:
results in the relevant dependency section as thus:
Per Maven's POM Reference, the scope is not a valid one. In this particular case, it should have been
<scope>compile</scope>
(the default).This also means that the following rare and edge case is actually valid:
But there isn't a way to add such a dependency because
"runtime"
and"optional"
are both treated as Configuration, and multiple Configurations are not allowed.The text was updated successfully, but these errors were encountered: