Groovy Documentation

org.linkedin.gradle.plugins
[Groovy] Class ReleasePlugin

java.lang.Object
  org.linkedin.gradle.plugins.ReleasePlugin

class ReleasePlugin

This plugin adds a 'release' and 'publish' task.

For 'release', it uses the 'releaseMaster' configuration and configure the uploadReleaseMaster task with the following repositories

For 'publish', it uses the 'publishMaster' configuration and configure the uploadPublishMaster task with the following repositories

If you want your artifacts to be 'released'/'published' then simply add them to either the 'releaseMaster' configuration or to a new configuration and make 'releaseMaster' extends from it. By convention (ReleasePluginConvention#releaseConfigurations#releaseConfigurations) 'releaseMaster' extends from 'archives'.
Authors:
ypujante@linkedin.com


Field Summary
static java.lang.String PUBLISH_MASTER_CONFIGURATION

static java.lang.String RELEASE_MASTER_CONFIGURATION

 
Method Summary
static java.lang.Object addExtendsFrom(Project project, java.lang.String configurationName, java.lang.String extendsFromConfigurationName)

Equivalent to configuration.extendsFrom(extendsFromConfiguration) but do proper checking to create the configuration if does not exist in the first place.

static Configuration addToReleaseMaster(Project project, java.lang.String configuration)

Needs to be executed after the build script has been evaluated

void apply(Project project)

static Configuration findOrAddConfiguration(Project project, java.lang.String configurationName)

Find or add a configuration if does not exist yet

 
Methods inherited from class java.lang.Object
java.lang.Object#wait(), java.lang.Object#wait(long), java.lang.Object#wait(long, int), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll()
 

Field Detail

PUBLISH_MASTER_CONFIGURATION

public static final java.lang.String PUBLISH_MASTER_CONFIGURATION


RELEASE_MASTER_CONFIGURATION

public static final java.lang.String RELEASE_MASTER_CONFIGURATION


 
Method Detail

addExtendsFrom

static java.lang.Object addExtendsFrom(Project project, java.lang.String configurationName, java.lang.String extendsFromConfigurationName)
Equivalent to configuration.extendsFrom(extendsFromConfiguration) but do proper checking to create the configuration if does not exist in the first place.
Returns:
configuration


addToReleaseMaster

static Configuration addToReleaseMaster(Project project, java.lang.String configuration)
Needs to be executed after the build script has been evaluated


apply

void apply(Project project)


findOrAddConfiguration

static Configuration findOrAddConfiguration(Project project, java.lang.String configurationName)
Find or add a configuration if does not exist yet
Returns:
the configuration


 

Groovy Documentation