@Stability(value=Experimental) public static final class MavenPublishOptions.Builder extends Object implements software.amazon.jsii.Builder<MavenPublishOptions>
MavenPublishOptions| Constructor and Description |
|---|
Builder() |
@Stability(value=Experimental) public MavenPublishOptions.Builder mavenEndpoint(String mavenEndpoint)
MavenPublishOptions.getMavenEndpoint()mavenEndpoint - URL of Nexus repository.
if not set, defaults to https://oss.sonatype.orgthis@Stability(value=Experimental) public MavenPublishOptions.Builder mavenGpgPrivateKeyPassphrase(String mavenGpgPrivateKeyPassphrase)
MavenPublishOptions.getMavenGpgPrivateKeyPassphrase()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.this@Stability(value=Experimental) public MavenPublishOptions.Builder mavenGpgPrivateKeySecret(String mavenGpgPrivateKeySecret)
MavenPublishOptions.getMavenGpgPrivateKeySecret()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.this@Stability(value=Experimental) public MavenPublishOptions.Builder mavenPassword(String mavenPassword)
MavenPublishOptions.getMavenPassword()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).this@Stability(value=Experimental) public MavenPublishOptions.Builder mavenRepositoryUrl(String mavenRepositoryUrl)
MavenPublishOptions.getMavenRepositoryUrl()mavenRepositoryUrl - Deployment repository when not deploying to Maven Central.this@Stability(value=Experimental) public MavenPublishOptions.Builder mavenServerId(String mavenServerId)
MavenPublishOptions.getMavenServerId()mavenServerId - Used in maven settings for credential lookup (e.g. use github when publishing to GitHub).this@Stability(value=Experimental) public MavenPublishOptions.Builder mavenStagingProfileId(String mavenStagingProfileId)
MavenPublishOptions.getMavenStagingProfileId()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).this@Stability(value=Experimental) public MavenPublishOptions.Builder mavenUsername(String mavenUsername)
MavenPublishOptions.getMavenUsername()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).this@Stability(value=Experimental) public MavenPublishOptions build()
build in interface software.amazon.jsii.Builder<MavenPublishOptions>MavenPublishOptionsNullPointerException - if any required attribute was not providedCopyright © 2021. All rights reserved.