Fix property names to not clash with env variables.

This commit is contained in:
Mark Paluch
2022-11-29 09:51:46 +01:00
parent dc2ad33af7
commit 129a54c87d
8 changed files with 13 additions and 18 deletions

View File

@@ -72,7 +72,7 @@ class ArtifactoryClient {
try {
logger.log("Artifactory", "Verifying authentication using a GET call to %s.", verificationResource);
logger.log("Artifactory", "Verifying authentication using a GET call to %s (%s %s).", verificationResource);
template.getForEntity(verificationResource, String.class);

View File

@@ -83,11 +83,7 @@ public class DeploymentProperties {
* @return
*/
public String getStagingRepositoryUrl() {
return server.getUri().toString().concat("/").concat(stagingRepository);
}
public HttpBasicCredentials getCredentials() {
return new HttpBasicCredentials(username, password);
return server.getUri().concat("/").concat(stagingRepository);
}
@Data

View File

@@ -29,7 +29,6 @@ import org.apache.http.impl.client.BasicAuthCache;
import org.apache.http.impl.client.BasicCredentialsProvider;
import org.apache.http.impl.client.CloseableHttpClient;
import org.apache.http.impl.client.HttpClientBuilder;
import org.springframework.data.util.Lazy;
import org.springframework.http.HttpMethod;
import org.springframework.http.client.ClientHttpRequest;
@@ -62,8 +61,8 @@ public class HttpComponentsClientHttpRequestFactoryBuilder {
*/
public HttpComponentsClientHttpRequestFactoryBuilder withAuthentication(String uri,
HttpBasicCredentials credentials) {
addPreemptiveAuth(credsProvider, authCache, uri, credentials);
addPreemptiveAuth(credsProvider, authCache, uri, credentials);
return this;
}
@@ -96,6 +95,7 @@ public class HttpComponentsClientHttpRequestFactoryBuilder {
private static void addPreemptiveAuth(CredentialsProvider credsProvider, AuthCache authCache, String requestUrl,
HttpBasicCredentials credentials) {
HttpHost host = HttpHost.create(requestUrl);
credsProvider.setCredentials(new AuthScope(host),

View File

@@ -3,13 +3,13 @@ git.author=Spring Builds
git.email=builds@springframework.org
git.password=${GITHUB_TOKEN}
git.gpg.keyname=B3B6F3E392A8615C65A98FC51F33293B709FA3E2
git.gpg.passphrase=${GIT_SIGNING_KEY_PASSWORD}
git.gpg.executable=/usr/bin/gpg
#git.gpg.keyname=B3B6F3E392A8615C65A98FC51F33293B709FA3E2
#git.gpg.passphrase=${GIT_SIGNING_KEY_PASSWORD}
#git.gpg.executable=/usr/bin/gpg
deployment.username=${DEPLOYMENT_API_KEY_USR}
deployment.password=${DEPLOYMENT_API_KEY_PSW}
deployment.api-key=${DEPLOYMENT_API_KEY_PSW}
deployment.username=${REPO_SPRING_IO_USR}
deployment.password=${REPO_SPRING_IO_PSW}
deployment.api-key=${REPO_SPRING_IO_PSW}
deployment.settings-xml=${SETTINGS_XML}
deployment.maven-central.stagingProfileId=${STAGING_PROFILE_ID}