nexus-vagrant/provision/provision-nexus
Rui Lopes 698d5e7583 upgrade to nexus 3.10.0-04 2018-04-08 18:57:59 +01:00
..
src/main/groovy disable all the outreach capabilities 2017-12-29 09:37:22 +00:00
Makefile upgrade to nexus 3.10.0-04 2018-04-08 18:57:59 +01:00
README.md add support for ldap user authentication 2017-10-29 18:11:27 +00:00
pom.xml upgrade to nexus 3.10.0-04 2018-04-08 18:57:59 +01:00
provision-nexus.iml upgrade to nexus 3.10.0-04 2018-04-08 18:57:59 +01:00

README.md

Open this directory with IntelliJ IDEA Community Edition.

Inside IDEA you can browse the sources with control+left-click to see which methods are available.

To execute the src/main/groovy/provision.groovy file inside the Vagrant environment run bash /vagrant/provision/execute-provision.groovy-script.sh.

For more information see the Nexus scripting documentation and examples.

Source Code

Run make sources to download and extract all the source code into the sources directory.

You are now able to find and grep it.

For example, list all .groovy files:

find sources -type f -name '*groovy'

Get all exposed API objects:

grep -ri ApiImpl sources

Where you can see the definition of the global variables that are available on a groovy script:

sources/org.sonatype.nexus.script/nexus-script.gdsl:  property name: 'security', type: 'org.sonatype.nexus.security.internal.SecurityApiImpl'
sources/org.sonatype.nexus.script/nexus-script.gdsl:  property name: 'core', type: 'org.sonatype.nexus.internal.provisioning.CoreApiImpl'
sources/org.sonatype.nexus.script/nexus-script.gdsl:  property name: 'repository', type: 'org.sonatype.nexus.script.plugin.internal.provisioning.RepositoryApiImpl'
sources/org.sonatype.nexus.script/nexus-script.gdsl:  property name: 'blobStore', type: 'org.sonatype.nexus.internal.provisioning.BlobStoreApiImpl'