Nexus Repository Manager 3 now has a beta REST API. Groovy scripting has always been potentially dangerous since we may change our internal classes at any time. Ideally, where possible, it’s best to use our REST APIs since they won’t change once we release them as v1 and they are the supported way to configure Nexus Repository Manager. At a quick glance I don’t think that script is doing anything the REST API doesn’t support which would let you use whatever tooling you are comfortable with instead of some groovy script you know nothing about.