...
Then, choose a Java-style package name for your new plugin – e.g. de.acme.projectx
. (See also ACME Corporation)
...
Codeblock | ||
---|---|---|
| ||
umkickstarter MY-PLUGIN-DIR -n de.acme.projectx |
Follow Kickstarter.md to develop your new plugin locally.
...
Codeblock | ||
---|---|---|
| ||
pinuts.projectName = 'RestServices'
pinuts.groupId = 'de.acme.projectx' |
3. Prepare publishing the plugin
...
Codeblock | ||
---|---|---|
| ||
... // pinuts.projectName = 'RestServices' // pinuts.groupId = 'de.acme.projectx' // pinuts.version = getVersionFromPluginDescriptor('the_plugin/plugin.desc.json') publishing { publications { cmsbsPlugin(MavenPublication) { groupId = pinuts.groupId artifactId = pinuts.projectName version = "${pinuts.env}-SNAPSHOT" artifact getCmsbsPluginDistFile() } } repositories { maven { name "s3bucket" url "s3://BUCKET_NAME/snapshots" credentials(AwsCredentials) { accessKey awsCredentials.AWSAccessKeyId secretKey awsCredentials.AWSSecretKey } } } } |
...
Codeblock |
---|
gradle publish # -> de.acme.projectx:RestServices:devel-SNAPSHOT gradle publish -Penv=staging # -> de.acme.projectx:RestServices:staging-SNAPSHOT gradle publish -Penv=prod # -> de.acme.projectx:RestServices:prod-SNAPSHOT |
...