AdaptiveConsulting / nexus-casc-plugin

Configuration as code plugin for Sonatype Nexus Repository Manager
MIT License
51 stars 21 forks source link

Add ability to configure multiple capabilities of the same type #30

Closed hWorblehat closed 2 years ago

hWorblehat commented 3 years ago

Nexus allows multiple instances of a capability to be created, as long as at least one of a certain subset of its properties is unique.

Previously, the CASC plugin would assume that only a single capability of any given type can exist, so would always replace any existing capability of the mathching type, even if it has only just been created by the CASC config itself.

This PR changes that behaviour: