Package io.github.cdklabs.projen.release
Class CommonPublishOptions.Builder
- java.lang.Object
-
- io.github.cdklabs.projen.release.CommonPublishOptions.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<CommonPublishOptions>
- Enclosing interface:
- CommonPublishOptions
@Stability(Experimental) public static final class CommonPublishOptions.Builder extends Object implements software.amazon.jsii.Builder<CommonPublishOptions>
A builder forCommonPublishOptions
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CommonPublishOptionsbuild()Builds the configured instance.CommonPublishOptions.BuilderpostPublishSteps(List<? extends JobStep> postPublishSteps)Sets the value ofCommonPublishOptions.getPostPublishSteps()CommonPublishOptions.BuilderprePublishSteps(List<? extends JobStep> prePublishSteps)Sets the value ofCommonPublishOptions.getPrePublishSteps()CommonPublishOptions.BuilderpublishTools(Tools publishTools)Sets the value ofCommonPublishOptions.getPublishTools()
-
-
-
Method Detail
-
postPublishSteps
@Stability(Experimental) public CommonPublishOptions.Builder postPublishSteps(List<? extends JobStep> postPublishSteps)
Sets the value ofCommonPublishOptions.getPostPublishSteps()- Parameters:
postPublishSteps- Steps to execute after executing the publishing command. These can be used to add/update the release artifacts ot any other tasks needed.Note that when using this in
publishToGitHubReleasesthis will override steps added viaaddGitHubPostPublishingSteps.- Returns:
this
-
prePublishSteps
@Stability(Experimental) public CommonPublishOptions.Builder prePublishSteps(List<? extends JobStep> prePublishSteps)
Sets the value ofCommonPublishOptions.getPrePublishSteps()- Parameters:
prePublishSteps- Steps to execute before executing the publishing command. These can be used to prepare the artifact for publishing if neede. These steps are executed afterdist/has been populated with the build output.Note that when using this in
publishToGitHubReleasesthis will override steps added viaaddGitHubPrePublishingSteps.- Returns:
this
-
publishTools
@Stability(Experimental) public CommonPublishOptions.Builder publishTools(Tools publishTools)
Sets the value ofCommonPublishOptions.getPublishTools()- Parameters:
publishTools- Additional tools to install in the publishing job.- Returns:
this
-
build
@Stability(Experimental) public CommonPublishOptions build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CommonPublishOptions>- Returns:
- a new instance of
CommonPublishOptions - Throws:
NullPointerException- if any required attribute was not provided
-
-