The manual gives this example
{
"name": "maven",
"type": "groovy",
"content": "repository.createMavenHosted('private')"
}
But if the content is multiple lines of code then this fails. How do I reformat something more complex for uploading?
The manual gives this example
{
"name": "maven",
"type": "groovy",
"content": "repository.createMavenHosted('private')"
}
But if the content is multiple lines of code then this fails. How do I reformat something more complex for uploading?
The comment on your post is spot on, you can use:
Ala: groovy addUpdateScript.groovy -u admin -p admin123 -f scriptFile.groovy [-n explicitName] [-h nx3Url]
Should make things a bit easier for you.
For posterity sake adding another line using the simple example you have:
{
"name": "mavenandnpm",
"type": "groovy",
"content": "repository.createMavenHosted('private'); repository.createNpmProxy('npmjs-org','https://registry.npmjs.org');"
}