Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in / Register
Toggle navigation
S
spring-boot
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
DEMO
spring-boot
Commits
75f210a6
Commit
75f210a6
authored
Nov 06, 2019
by
Madhura Bhave
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch '2.1.x'
Closes gh-18906
parents
14293443
8d3df1b4
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
10 deletions
+13
-10
ArtifactoryService.java
...course/releasescripts/artifactory/ArtifactoryService.java
+4
-4
BintrayService.java
...ring/concourse/releasescripts/bintray/BintrayService.java
+4
-1
SonatypeService.java
...ng/concourse/releasescripts/sonatype/SonatypeService.java
+5
-5
No files found.
ci/images/releasescripts/src/main/java/io/spring/concourse/releasescripts/artifactory/ArtifactoryService.java
View file @
75f210a6
...
@@ -30,6 +30,7 @@ import org.springframework.http.MediaType;
...
@@ -30,6 +30,7 @@ import org.springframework.http.MediaType;
import
org.springframework.http.RequestEntity
;
import
org.springframework.http.RequestEntity
;
import
org.springframework.http.ResponseEntity
;
import
org.springframework.http.ResponseEntity
;
import
org.springframework.stereotype.Component
;
import
org.springframework.stereotype.Component
;
import
org.springframework.util.StringUtils
;
import
org.springframework.web.client.HttpClientErrorException
;
import
org.springframework.web.client.HttpClientErrorException
;
import
org.springframework.web.client.RestTemplate
;
import
org.springframework.web.client.RestTemplate
;
...
@@ -53,19 +54,18 @@ public class ArtifactoryService {
...
@@ -53,19 +54,18 @@ public class ArtifactoryService {
private
final
RestTemplate
restTemplate
;
private
final
RestTemplate
restTemplate
;
private
final
ArtifactoryProperties
artifactoryProperties
;
private
final
BintrayService
bintrayService
;
private
final
BintrayService
bintrayService
;
private
static
final
ConsoleLogger
console
=
new
ConsoleLogger
();
private
static
final
ConsoleLogger
console
=
new
ConsoleLogger
();
public
ArtifactoryService
(
RestTemplateBuilder
builder
,
ArtifactoryProperties
artifactoryProperties
,
public
ArtifactoryService
(
RestTemplateBuilder
builder
,
ArtifactoryProperties
artifactoryProperties
,
BintrayService
bintrayService
)
{
BintrayService
bintrayService
)
{
this
.
artifactoryProperties
=
artifactoryProperties
;
this
.
bintrayService
=
bintrayService
;
this
.
bintrayService
=
bintrayService
;
String
username
=
artifactoryProperties
.
getUsername
();
String
username
=
artifactoryProperties
.
getUsername
();
String
password
=
artifactoryProperties
.
getPassword
();
String
password
=
artifactoryProperties
.
getPassword
();
if
(
StringUtils
.
hasLength
(
username
))
{
builder
=
builder
.
basicAuthentication
(
username
,
password
);
builder
=
builder
.
basicAuthentication
(
username
,
password
);
}
this
.
restTemplate
=
builder
.
build
();
this
.
restTemplate
=
builder
.
build
();
}
}
...
...
ci/images/releasescripts/src/main/java/io/spring/concourse/releasescripts/bintray/BintrayService.java
View file @
75f210a6
...
@@ -31,6 +31,7 @@ import org.springframework.http.HttpStatus;
...
@@ -31,6 +31,7 @@ import org.springframework.http.HttpStatus;
import
org.springframework.http.MediaType
;
import
org.springframework.http.MediaType
;
import
org.springframework.http.RequestEntity
;
import
org.springframework.http.RequestEntity
;
import
org.springframework.stereotype.Component
;
import
org.springframework.stereotype.Component
;
import
org.springframework.util.StringUtils
;
import
org.springframework.web.client.HttpClientErrorException
;
import
org.springframework.web.client.HttpClientErrorException
;
import
org.springframework.web.client.RestTemplate
;
import
org.springframework.web.client.RestTemplate
;
...
@@ -65,7 +66,9 @@ public class BintrayService {
...
@@ -65,7 +66,9 @@ public class BintrayService {
this
.
sonatypeService
=
sonatypeService
;
this
.
sonatypeService
=
sonatypeService
;
String
username
=
bintrayProperties
.
getUsername
();
String
username
=
bintrayProperties
.
getUsername
();
String
apiKey
=
bintrayProperties
.
getApiKey
();
String
apiKey
=
bintrayProperties
.
getApiKey
();
if
(
StringUtils
.
hasLength
(
username
))
{
builder
=
builder
.
basicAuthentication
(
username
,
apiKey
);
builder
=
builder
.
basicAuthentication
(
username
,
apiKey
);
}
this
.
restTemplate
=
builder
.
build
();
this
.
restTemplate
=
builder
.
build
();
}
}
...
...
ci/images/releasescripts/src/main/java/io/spring/concourse/releasescripts/sonatype/SonatypeService.java
View file @
75f210a6
...
@@ -23,6 +23,7 @@ import org.springframework.boot.web.client.RestTemplateBuilder;
...
@@ -23,6 +23,7 @@ import org.springframework.boot.web.client.RestTemplateBuilder;
import
org.springframework.http.HttpStatus
;
import
org.springframework.http.HttpStatus
;
import
org.springframework.http.ResponseEntity
;
import
org.springframework.http.ResponseEntity
;
import
org.springframework.stereotype.Component
;
import
org.springframework.stereotype.Component
;
import
org.springframework.util.StringUtils
;
import
org.springframework.web.client.HttpClientErrorException
;
import
org.springframework.web.client.HttpClientErrorException
;
import
org.springframework.web.client.RestTemplate
;
import
org.springframework.web.client.RestTemplate
;
...
@@ -38,15 +39,14 @@ public class SonatypeService {
...
@@ -38,15 +39,14 @@ public class SonatypeService {
private
final
RestTemplate
restTemplate
;
private
final
RestTemplate
restTemplate
;
private
final
SonatypeProperties
sonatypeProperties
;
private
static
final
ConsoleLogger
console
=
new
ConsoleLogger
();
private
static
final
ConsoleLogger
console
=
new
ConsoleLogger
();
public
SonatypeService
(
RestTemplateBuilder
builder
,
SonatypeProperties
sonatypeProperties
)
{
public
SonatypeService
(
RestTemplateBuilder
builder
,
SonatypeProperties
sonatypeProperties
)
{
this
.
sonatypeProperties
=
sonatypeProperties
;
String
username
=
sonatypeProperties
.
getUserToken
();
String
username
=
sonatypeProperties
.
getUserToken
();
String
apiKey
=
sonatypeProperties
.
getPasswordToken
();
String
password
=
sonatypeProperties
.
getPasswordToken
();
builder
=
builder
.
basicAuthentication
(
username
,
apiKey
);
if
(
StringUtils
.
hasLength
(
username
))
{
builder
=
builder
.
basicAuthentication
(
username
,
password
);
}
this
.
restTemplate
=
builder
.
build
();
this
.
restTemplate
=
builder
.
build
();
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment