Replace deployment.gpg properties with gpg.
Properties cleanup to not have duplicate properties. Closes #180
This commit is contained in:
@@ -28,9 +28,9 @@ jira.password=
|
||||
jira.url=https://jira.spring.io
|
||||
|
||||
# GPG
|
||||
deployment.gpg.keyname=
|
||||
deployment.gpg.password=
|
||||
# deployment.gpg.executable=/usr/local/bin/gpg2
|
||||
gpg.keyname=
|
||||
gpg.password=
|
||||
gpg.executable=/usr/local/bin/gpg2
|
||||
|
||||
# A GitHub token with user:email, read:user and read:org scopes.
|
||||
# User needs to be part of the Spring team on GitHub as well.
|
||||
|
||||
@@ -355,8 +355,6 @@ class MavenBuildSystem implements BuildSystem {
|
||||
|
||||
logger.log(module, "Deploying artifacts to Sonatype OSS Nexus…");
|
||||
|
||||
Gpg gpg = this.gpg.isGpgAvailable() ? this.gpg : properties.getGpg();
|
||||
|
||||
CommandLine arguments = CommandLine.of(Goal.CLEAN, Goal.DEPLOY, //
|
||||
profile("ci,release,central"), //
|
||||
SKIP_TESTS, //
|
||||
|
||||
@@ -20,7 +20,6 @@ import lombok.Data;
|
||||
import java.net.URI;
|
||||
|
||||
import org.springframework.boot.context.properties.ConfigurationProperties;
|
||||
import org.springframework.boot.context.properties.DeprecatedConfigurationProperty;
|
||||
import org.springframework.data.release.model.Gpg;
|
||||
import org.springframework.data.release.model.Password;
|
||||
import org.springframework.data.release.utils.HttpBasicCredentials;
|
||||
@@ -66,8 +65,6 @@ public class DeploymentProperties {
|
||||
|
||||
private String repositoryPrefix = "";
|
||||
|
||||
private Gpg gpg;
|
||||
|
||||
public String getStagingRepository() {
|
||||
return repositoryPrefix.concat(stagingRepository);
|
||||
}
|
||||
@@ -76,11 +73,6 @@ public class DeploymentProperties {
|
||||
return repositoryPrefix.concat(distributionRepository);
|
||||
}
|
||||
|
||||
@DeprecatedConfigurationProperty(reason = "Moved to gpg.", replacement = "gpg")
|
||||
public Gpg getGpg() {
|
||||
return gpg;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the URI of the staging repository.
|
||||
*
|
||||
|
||||
@@ -29,7 +29,9 @@ import org.springframework.util.StringUtils;
|
||||
@Component
|
||||
@ConfigurationProperties(prefix = "gpg")
|
||||
public class Gpg {
|
||||
|
||||
private String keyname, executable;
|
||||
|
||||
private Password password;
|
||||
|
||||
public boolean isGpgAvailable() {
|
||||
|
||||
Reference in New Issue
Block a user