Versionen im Vergleich

Schlüssel

  • Diese Zeile wurde hinzugefügt.
  • Diese Zeile wurde entfernt.
  • Formatierung wurde geändert.

...

Codeblock
languagebash
umkickstarter MY-PLUGIN-DIR -n acme.projectx.myplugin

Follow Kickstarter.md to develop your new plugin locally.

2. Use meaningful artifact names

Edit build.gradle and change the default project name and group id to something meaningful. These settings will make up the name of the artifact that you will publish later on.

Codeblock
languagegroovy
pinuts.projectName = 'RestServices'
pinuts.groupId = 'acme.projectx'

3. Prepare publishing the plugin

If Pinuts is hosting your UM installation at AWS, there already is an S3 bucket ready to be used as a maven repository. Ask us for the respective credentials: support@pinuts.de

...

Codeblock
languagegroovy
...
// pinuts.projectName = 'mypluginRestServices'
// 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
            }
        }
    }
}

...

Codeblock
gradle publish                   # -> acme.projectx:MyProjectRestServices:devel-SNAPSHOT
gradle publish -Penv=staging     # -> acme.projectx:MyProjectRestServices:staging-SNAPSHOT
gradle publish -Penv=prod        # -> acme.projectx:MyProjectRestServices:prod-SNAPSHOT