class PluginBuildPlugin extends java.lang.Object
Configures a Gradle build to build and publish a Gradle plugin.
| Type | Name and description |
|---|---|
static java.lang.String |
SHADOW_PLUGIN_ID |
static java.lang.String |
SHADOW_PLUGIN_INCLUSION |
static java.lang.String |
SNAPSHOT |
java.util.List<java.lang.String> |
pluginIdsThe plugins to apply to the plugin build project. |
java.util.Map<java.lang.String, java.lang.String> |
pluginInclusionMaps plugin identifier to project property. |
java.util.List<java.lang.String> |
requiredPropertiesThe project-specific properties that must be set. |
| Type Params | Return Type | Name and description |
|---|---|---|
|
void |
apply(org.gradle.api.Project project)Applies the plugin and configures the build. |
|
void |
checkProjectProperties(java.lang.Object project)Checks that values have been provided for the required project properties. |
|
void |
configureArtifactory(org.gradle.api.Project project)Configures Artifactory publishing. |
|
void |
configureBintray(org.gradle.api.Project project)Configures Bintray publishing. |
|
void |
configureDefaultTasks(org.gradle.api.Project project)Configures the local and all tasks and assigns
all as the project default. |
|
void |
configureDependencies(org.gradle.api.Project project)Adds dependencies. |
|
void |
configureDerivedProperties(org.gradle.api.Project project)Defines additional properties that are derived from the required properties. |
|
void |
configureGradlePlugin(org.gradle.api.Project project)Configures the Gradle plugin to build and publish. |
|
void |
configureJarTask(org.gradle.api.Project project)Configures jar task including manifest attributes. |
|
void |
configureJavaPlugin(org.gradle.api.Project project)Configures the Java plugin including source and target compatibility. |
|
void |
configureJavadocJarTask(org.gradle.api.Project project)Configures the Javadoc jar task. |
|
void |
configurePlugin(org.gradle.api.Project project, java.lang.String id)Applies the plugin identified by the parameter plugin identifier. |
|
void |
configurePluginBundle(org.gradle.api.Project project)Configures the plugin bundle being published. |
|
void |
configurePlugins(org.gradle.api.Project project)Applies the plugins in the pluginIds list. |
|
void |
configurePublishing(org.gradle.api.Project project)Configures publishing. |
|
void |
configureRepositories(org.gradle.api.Project project)Adds repository definitions. |
|
void |
configureShadowJarTask(org.gradle.api.Project project)Configures the shadow jar task. |
|
void |
configureSourceJarTask(org.gradle.api.Project project)Configures the source jar task. |
|
static boolean |
isProjectPropertySet(org.gradle.api.Project project, java.lang.String propertyName)Checks that the parameter property has a non-empty string or collection value for the parameter property name. |
|
void |
logProperties(org.gradle.api.Project project)Logs the required and derived project properties. |
|
boolean |
shouldApplyPlugin(org.gradle.api.Project project, java.lang.String pluginId)Uses the pluginInclusion map to determine whether the
plugin identified by the parameter identifier should be applied to the
project. |
|
static boolean |
shouldBuildShadowJar(org.gradle.api.Project project)Checks whether a shadow jar should be built. |
| Methods inherited from class | Name |
|---|---|
class java.lang.Object |
java.lang.Object#wait(long, int), java.lang.Object#wait(long), java.lang.Object#wait(), 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() |
The plugins to apply to the plugin build project.
Maps plugin identifier to project property. If a plugin identifier is included in this map then the plugin will only be applied if the project property is present with a non-empty value.
The project-specific properties that must be set.
Applies the plugin and configures the build.
project - The project to configureChecks that values have been provided for the required project properties.
project - The project to configure Configures Artifactory publishing. Disabled by default.
Set artifactoryContextUrl, artifactoryRepoKey,
artifactoryUser and artifactoryToken to enable
Artifactory publishing.
project - The project to configure Configures Bintray publishing. Disabled by default.
Set bintrayContextUrl, bintrayUser and
bintrayKey to enable Bintray publishing.
project - The project to configure Configures the local and all tasks and assigns
all as the project default.
project - The project to configureAdds dependencies.
project - The project to configureDefines additional properties that are derived from the required properties.
project - The project to configureConfigures the Gradle plugin to build and publish.
project - The project to configureConfigures jar task including manifest attributes.
project - The project to configureConfigures the Java plugin including source and target compatibility.
project - The project to configureConfigures the Javadoc jar task.
project - The project to configure Applies the plugin identified by the parameter plugin identifier. If the
plugin identifier is included as a key in the pluginInclusion
map then it will only be applied if the value is present as a property on
the project with a non-empty value.
project - The project to apply the plugin toid - The identifier of the plugin to applyConfigures the plugin bundle being published.
project - The project to configure Applies the plugins in the pluginIds list.
project - The project to configureConfigures publishing.
project - The project to configureAdds repository definitions.
project - The project to configureConfigures the shadow jar task.
project - The project being configuredConfigures the source jar task.
project - The project to configureChecks that the parameter property has a non-empty string or collection value for the parameter property name.
project - The project to checkpropertyName - The property name to checkLogs the required and derived project properties.
project - The project to configure Uses the pluginInclusion map to determine whether the
plugin identified by the parameter identifier should be applied to the
project. The map associates plugins with project properties; the plugins
should be applied if the map either does not contain the identifier (but
the plugins list has it) or the map points to a project property with a
non-empty value.
project - The project being configuredpluginId - The plugin identifier Checks whether a shadow jar should be built. This is determined by the
presence of the buildShadowJar project property, with a
non-empty value.
project - The project to check