...
Insert the following into your build.gradle
file right after pinuts.version = ...
and fill-in BUCKET_NAME
with the name you just received:
Codeblock | ||
---|---|---|
| ||
... // pinuts.projectName = 'myplugin' // pinuts.groupId = '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 } } } } |
Put the AWS credentials you received into the environment variables AWS_ACCESS_KEY_ID
and AWS_SECRET_ACCESS_KEY
respectively.
Die Veröffentlichung wird dann wie folgt ausgelöst:
Codeblock |
---|
gradle publish # -> de.customer:MyProject:devel-SNAPSHOT
gradle publish -Penv=staging # -> de.customer:MyProject:staging-SNAPSHOT
gradle publish -Penv=prod # -> de.customer:MyProject:prod-SNAPSHOT |