Package io.github.cdklabs.projen.release
Class JsiiReleaseMaven.Builder
- java.lang.Object
-
- io.github.cdklabs.projen.release.JsiiReleaseMaven.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<JsiiReleaseMaven>
- Enclosing interface:
- JsiiReleaseMaven
@Stability(Deprecated) @Deprecated public static final class JsiiReleaseMaven.Builder extends Object implements software.amazon.jsii.Builder<JsiiReleaseMaven>
Deprecated.A builder forJsiiReleaseMaven
-
-
Constructor Summary
Constructors Constructor Description Builder()Deprecated.
-
Method Summary
-
-
-
Method Detail
-
mavenEndpoint
@Stability(Experimental) public JsiiReleaseMaven.Builder mavenEndpoint(String mavenEndpoint)
Deprecated.Sets the value ofMavenPublishOptions.getMavenEndpoint()- Parameters:
mavenEndpoint- URL of Nexus repository. if not set, defaults to https://oss.sonatype.org- Returns:
this
-
mavenGpgPrivateKeyPassphrase
@Stability(Experimental) public JsiiReleaseMaven.Builder mavenGpgPrivateKeyPassphrase(String mavenGpgPrivateKeyPassphrase)
Deprecated.Sets the value ofMavenPublishOptions.getMavenGpgPrivateKeyPassphrase()- Parameters:
mavenGpgPrivateKeyPassphrase- GitHub secret name which contains the GPG private key or file that includes it. This is used to sign your Maven packages. See instructions.- Returns:
this
-
mavenGpgPrivateKeySecret
@Stability(Experimental) public JsiiReleaseMaven.Builder mavenGpgPrivateKeySecret(String mavenGpgPrivateKeySecret)
Deprecated.Sets the value ofMavenPublishOptions.getMavenGpgPrivateKeySecret()- Parameters:
mavenGpgPrivateKeySecret- GitHub secret name which contains the GPG private key or file that includes it. This is used to sign your Maven packages. See instructions.- Returns:
this
-
mavenPassword
@Stability(Experimental) public JsiiReleaseMaven.Builder mavenPassword(String mavenPassword)
Deprecated.Sets the value ofMavenPublishOptions.getMavenPassword()- Parameters:
mavenPassword- GitHub secret name which contains the Password for maven repository. For Maven Central, you will need to Create JIRA account and then request a new project (see links).- Returns:
this
-
mavenRepositoryUrl
@Stability(Experimental) public JsiiReleaseMaven.Builder mavenRepositoryUrl(String mavenRepositoryUrl)
Deprecated.Sets the value ofMavenPublishOptions.getMavenRepositoryUrl()- Parameters:
mavenRepositoryUrl- Deployment repository when not deploying to Maven Central.- Returns:
this
-
mavenServerId
@Stability(Experimental) public JsiiReleaseMaven.Builder mavenServerId(String mavenServerId)
Deprecated.Sets the value ofMavenPublishOptions.getMavenServerId()- Parameters:
mavenServerId- Used in maven settings for credential lookup (e.g. use github when publishing to GitHub).- Returns:
this
-
mavenStagingProfileId
@Stability(Experimental) public JsiiReleaseMaven.Builder mavenStagingProfileId(String mavenStagingProfileId)
Deprecated.Sets the value ofMavenPublishOptions.getMavenStagingProfileId()- Parameters:
mavenStagingProfileId- GitHub secret name which contains the Maven Central (sonatype) staging profile ID (e.g. 68a05363083174). Staging profile ID can be found in the URL of the "Releases" staging profile under "Staging Profiles" in https://oss.sonatype.org (e.g. https://oss.sonatype.org/#stagingProfiles;11a33451234521).- Returns:
this
-
mavenUsername
@Stability(Experimental) public JsiiReleaseMaven.Builder mavenUsername(String mavenUsername)
Deprecated.Sets the value ofMavenPublishOptions.getMavenUsername()- Parameters:
mavenUsername- GitHub secret name which contains the Username for maven repository. For Maven Central, you will need to Create JIRA account and then request a new project (see links).- Returns:
this
-
postPublishSteps
@Stability(Experimental) public JsiiReleaseMaven.Builder postPublishSteps(List<? extends JobStep> postPublishSteps)
Deprecated.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 JsiiReleaseMaven.Builder prePublishSteps(List<? extends JobStep> prePublishSteps)
Deprecated.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 JsiiReleaseMaven.Builder publishTools(Tools publishTools)
Deprecated.Sets the value ofCommonPublishOptions.getPublishTools()- Parameters:
publishTools- Additional tools to install in the publishing job.- Returns:
this
-
build
@Stability(Deprecated) @Deprecated public JsiiReleaseMaven build()
Deprecated.Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<JsiiReleaseMaven>- Returns:
- a new instance of
JsiiReleaseMaven - Throws:
NullPointerException- if any required attribute was not provided
-
-