Search code examples
groovynexusnexus3

List of all available groovy functions in Nexus3


Where can I find the groovy API documentation containing the list of available function for Sonatype Nexus 3?

I saw the web page below which describes

  • core
  • repository
  • blobStore
  • security

https://help.sonatype.com/repomanager3/rest-and-integration-api/script-api/writing-scripts#app

... but how to know what to put after security, for example security.securitySystem.changePassword?

Thanks.


Solution

  • I too had looked for the specific functions for a while but didn't find any official documentation, so I went straight to the code looking for the functions:

    Here are some samples that may help: https://github.com/sonatype/nexus-book-examples/tree/nexus-3.x/scripting.

    The links were taken from this page: https://books.sonatype.com/nexus-book/3.0/reference/scripting.html#scripting-configuration