Versionen im Vergleich

Schlüssel

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

...

Then, choose a Java-style package name for your new plugin – e.g. de.acme.projectx. (See also ACME Corporation)

...

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

Follow Kickstarter.md to develop your new plugin locally.

...

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

3. Prepare publishing the plugin

...

Codeblock
languagegroovy
...
//
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

...