Interface PromotePublication
- All Superinterfaces:
Comparable<Task>,ExtensionAware,Named,Task
- API Note:
- This task is internal as it is meant for use in Forge projects only.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.gradle.api.Named
Named.Namer -
Field Summary
Fields inherited from interface org.gradle.api.Task
TASK_ACTION, TASK_CONSTRUCTOR_ARGS, TASK_DEPENDS_ON, TASK_DESCRIPTION, TASK_GROUP, TASK_NAME, TASK_OVERWRITE, TASK_TYPE -
Method Summary
Modifier and TypeMethodDescriptionThe publication group to promote.The publication name to promote.The publication version to promote.The password to use.The promotion type to use.The username to use.The webhook URL to use.Methods inherited from interface java.lang.Comparable
compareToMethods inherited from interface org.gradle.api.plugins.ExtensionAware
getExtensionsMethods inherited from interface org.gradle.api.Task
configure, dependsOn, doFirst, doFirst, doFirst, doLast, doLast, doLast, doNotTrackState, finalizedBy, getActions, getAnt, getDependsOn, getDescription, getDestroyables, getDidWork, getEnabled, getFinalizedBy, getGroup, getInputs, getLocalState, getLogger, getLogging, getMustRunAfter, getName, getOutputs, getPath, getProject, getShouldRunAfter, getState, getTaskDependencies, getTemporaryDir, getTimeout, hasProperty, mustRunAfter, notCompatibleWithConfigurationCache, onlyIf, onlyIf, onlyIf, property, setActions, setDependsOn, setDescription, setDidWork, setEnabled, setFinalizedBy, setGroup, setMustRunAfter, setOnlyIf, setOnlyIf, setOnlyIf, setProperty, setShouldRunAfter, shouldRunAfter, usesService
-
Method Details
-
getArtifactGroup
The publication group to promote.
By convention, this is
Project.getGroup(), but the set value isMavenPublication.getGroupId().- Returns:
- The property for the artifact group
-
getArtifactName
The publication name to promote.
By convention, this is
BasePluginExtension.getArchivesName(), but the set value isMavenPublication.getArtifactId().- Returns:
- The property for the artifact name
-
getArtifactVersion
The publication version to promote.
By convention, this is
Project.getVersion(), but the set value isMavenPublication.getVersion().- Returns:
- The property for the artifact version
-
getPromotionType
-
getWebhookURL
The webhook URL to use. If this is not set, this task will not run.
This is set by the
PROMOTE_ARTIFACT_WEBHOOKenvironment variable usingProviderFactory.environmentVariable(String).- Returns:
- The property for the webhook URL.
-
getUsername
The username to use. If this is not set, this task will not run.
This is set by the
PROMOTE_ARTIFACT_USERNAMEenvironment variable usingProviderFactory.environmentVariable(String).- Returns:
- The property for the username.
-
getPassword
The password to use. If this is not set, this task will not run.
This is set by the
PROMOTE_ARTIFACT_PASSWORDenvironment variable usingProviderFactory.environmentVariable(String).- Returns:
- The property for the password URL.
-