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
da692868
Commit
da692868
authored
Jul 23, 2020
by
Phillip Webb
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch '2.3.x'
parents
0768ade5
187d3af7
Changes
25
Hide whitespace changes
Inline
Side-by-side
Showing
25 changed files
with
75 additions
and
77 deletions
+75
-77
ArtifactoryService.java
...course/releasescripts/artifactory/ArtifactoryService.java
+1
-1
BuildInfoResponse.java
...releasescripts/artifactory/payload/BuildInfoResponse.java
+1
-1
PackageFile.java
.../spring/concourse/releasescripts/bintray/PackageFile.java
+1
-1
CommandProcessor.java
...ng/concourse/releasescripts/command/CommandProcessor.java
+1
-1
DistributeCommand.java
...g/concourse/releasescripts/command/DistributeCommand.java
+1
-1
PromoteCommand.java
...ring/concourse/releasescripts/command/PromoteCommand.java
+1
-1
PublishGradlePlugin.java
...concourse/releasescripts/command/PublishGradlePlugin.java
+1
-1
SyncToCentralCommand.java
...oncourse/releasescripts/command/SyncToCentralCommand.java
+1
-1
SonatypeService.java
...ng/concourse/releasescripts/sonatype/SonatypeService.java
+1
-1
BintrayServiceTests.java
...concourse/releasescripts/bintray/BintrayServiceTests.java
+1
-1
DistributeCommandTests.java
...course/releasescripts/command/DistributeCommandTests.java
+1
-1
SonatypeServiceTests.java
...ncourse/releasescripts/sonatype/SonatypeServiceTests.java
+1
-1
ElasticsearchReactiveHealthIndicator.java
...e/elasticsearch/ElasticsearchReactiveHealthIndicator.java
+25
-22
RedisHealthIndicator.java
...ingframework/boot/actuate/redis/RedisHealthIndicator.java
+16
-22
RedisReactiveHealthIndicator.java
...work/boot/actuate/redis/RedisReactiveHealthIndicator.java
+9
-10
RedisReactiveHealthIndicatorTests.java
...boot/actuate/redis/RedisReactiveHealthIndicatorTests.java
+1
-1
KafkaStreamsAnnotationDrivenConfiguration.java
...gure/kafka/KafkaStreamsAnnotationDrivenConfiguration.java
+1
-1
MustacheEnvironmentCollector.java
.../autoconfigure/mustache/MustacheEnvironmentCollector.java
+1
-1
JpaWebAutoConfigurationTests.java
.../autoconfigure/data/jpa/JpaWebAutoConfigurationTests.java
+1
-1
MustacheStandaloneIntegrationTests.java
...onfigure/mustache/MustacheStandaloneIntegrationTests.java
+1
-1
build.gradle
spring-boot-project/spring-boot-docs/build.gradle
+1
-1
DefinitionsParser.java
...ngframework/boot/test/mock/mockito/DefinitionsParser.java
+1
-1
LocalHttpClientTransport.java
...k/platform/docker/transport/LocalHttpClientTransport.java
+4
-2
ZipFileTarArchive.java
...amework/boot/buildpack/platform/io/ZipFileTarArchive.java
+1
-1
RestTemplateBuilder.java
.../springframework/boot/web/client/RestTemplateBuilder.java
+1
-1
No files found.
ci/images/releasescripts/src/main/java/io/spring/concourse/releasescripts/artifactory/ArtifactoryService.java
View file @
da692868
/*
/*
* Copyright 2012-20
19
the original author or authors.
* Copyright 2012-20
20
the original author or authors.
*
*
* Licensed under the Apache License, Version 2.0 (the "License");
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* you may not use this file except in compliance with the License.
...
...
ci/images/releasescripts/src/main/java/io/spring/concourse/releasescripts/artifactory/payload/BuildInfoResponse.java
View file @
da692868
/*
/*
* Copyright 2012-20
19
the original author or authors.
* Copyright 2012-20
20
the original author or authors.
*
*
* Licensed under the Apache License, Version 2.0 (the "License");
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* you may not use this file except in compliance with the License.
...
...
ci/images/releasescripts/src/main/java/io/spring/concourse/releasescripts/bintray/PackageFile.java
View file @
da692868
/*
/*
* Copyright 2020 the original author or authors.
* Copyright 2020
-2020
the original author or authors.
*
*
* Licensed under the Apache License, Version 2.0 (the "License");
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* you may not use this file except in compliance with the License.
...
...
ci/images/releasescripts/src/main/java/io/spring/concourse/releasescripts/command/CommandProcessor.java
View file @
da692868
/*
/*
* Copyright 2012-20
19
the original author or authors.
* Copyright 2012-20
20
the original author or authors.
*
*
* Licensed under the Apache License, Version 2.0 (the "License");
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* you may not use this file except in compliance with the License.
...
...
ci/images/releasescripts/src/main/java/io/spring/concourse/releasescripts/command/DistributeCommand.java
View file @
da692868
/*
/*
* Copyright 2012-20
19
the original author or authors.
* Copyright 2012-20
20
the original author or authors.
*
*
* Licensed under the Apache License, Version 2.0 (the "License");
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* you may not use this file except in compliance with the License.
...
...
ci/images/releasescripts/src/main/java/io/spring/concourse/releasescripts/command/PromoteCommand.java
View file @
da692868
/*
/*
* Copyright 2012-20
19
the original author or authors.
* Copyright 2012-20
20
the original author or authors.
*
*
* Licensed under the Apache License, Version 2.0 (the "License");
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* you may not use this file except in compliance with the License.
...
...
ci/images/releasescripts/src/main/java/io/spring/concourse/releasescripts/command/PublishGradlePlugin.java
View file @
da692868
/*
/*
* Copyright 2012-20
19
the original author or authors.
* Copyright 2012-20
20
the original author or authors.
*
*
* Licensed under the Apache License, Version 2.0 (the "License");
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* you may not use this file except in compliance with the License.
...
...
ci/images/releasescripts/src/main/java/io/spring/concourse/releasescripts/command/SyncToCentralCommand.java
View file @
da692868
/*
/*
* Copyright 2012-20
19
the original author or authors.
* Copyright 2012-20
20
the original author or authors.
*
*
* Licensed under the Apache License, Version 2.0 (the "License");
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* you may not use this file except in compliance with the License.
...
...
ci/images/releasescripts/src/main/java/io/spring/concourse/releasescripts/sonatype/SonatypeService.java
View file @
da692868
/*
/*
* Copyright 2012-20
19
the original author or authors.
* Copyright 2012-20
20
the original author or authors.
*
*
* Licensed under the Apache License, Version 2.0 (the "License");
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* you may not use this file except in compliance with the License.
...
...
ci/images/releasescripts/src/test/java/io/spring/concourse/releasescripts/bintray/BintrayServiceTests.java
View file @
da692868
/*
/*
* Copyright 2012-20
19
the original author or authors.
* Copyright 2012-20
20
the original author or authors.
*
*
* Licensed under the Apache License, Version 2.0 (the "License");
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* you may not use this file except in compliance with the License.
...
...
ci/images/releasescripts/src/test/java/io/spring/concourse/releasescripts/command/DistributeCommandTests.java
View file @
da692868
/*
/*
* Copyright 2012-20
19
the original author or authors.
* Copyright 2012-20
20
the original author or authors.
*
*
* Licensed under the Apache License, Version 2.0 (the "License");
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* you may not use this file except in compliance with the License.
...
...
ci/images/releasescripts/src/test/java/io/spring/concourse/releasescripts/sonatype/SonatypeServiceTests.java
View file @
da692868
/*
/*
* Copyright 2012-20
19
the original author or authors.
* Copyright 2012-20
20
the original author or authors.
*
*
* Licensed under the Apache License, Version 2.0 (the "License");
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* you may not use this file except in compliance with the License.
...
...
spring-boot-project/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/elasticsearch/ElasticsearchReactiveHealthIndicator.java
View file @
da692868
...
@@ -23,8 +23,11 @@ import reactor.core.publisher.Mono;
...
@@ -23,8 +23,11 @@ import reactor.core.publisher.Mono;
import
org.springframework.boot.actuate.health.AbstractReactiveHealthIndicator
;
import
org.springframework.boot.actuate.health.AbstractReactiveHealthIndicator
;
import
org.springframework.boot.actuate.health.Health
;
import
org.springframework.boot.actuate.health.Health
;
import
org.springframework.boot.actuate.health.HealthIndicator
;
import
org.springframework.boot.actuate.health.HealthIndicator
;
import
org.springframework.boot.actuate.health.Status
;
import
org.springframework.core.ParameterizedTypeReference
;
import
org.springframework.core.ParameterizedTypeReference
;
import
org.springframework.data.elasticsearch.client.reactive.ReactiveElasticsearchClient
;
import
org.springframework.data.elasticsearch.client.reactive.ReactiveElasticsearchClient
;
import
org.springframework.web.reactive.function.client.ClientResponse
;
import
org.springframework.web.reactive.function.client.WebClient
;
/**
/**
* {@link HealthIndicator} for an Elasticsearch cluster using a
* {@link HealthIndicator} for an Elasticsearch cluster using a
...
@@ -50,28 +53,28 @@ public class ElasticsearchReactiveHealthIndicator extends AbstractReactiveHealth
...
@@ -50,28 +53,28 @@ public class ElasticsearchReactiveHealthIndicator extends AbstractReactiveHealth
@Override
@Override
protected
Mono
<
Health
>
doHealthCheck
(
Health
.
Builder
builder
)
{
protected
Mono
<
Health
>
doHealthCheck
(
Health
.
Builder
builder
)
{
return
this
.
client
.
execute
(
(
callback
)
->
callback
.
get
().
uri
(
"/_cluster/health/"
).
exchange
())
return
this
.
client
.
execute
(
this
::
getHealth
).
flatMap
((
response
)
->
doHealthCheck
(
builder
,
response
));
.
flatMap
((
response
)
->
{
}
if
(
response
.
statusCode
().
is2xxSuccessful
())
{
return
response
.
bodyToMono
(
STRING_OBJECT_MAP
).
map
((
body
)
->
{
private
Mono
<
ClientResponse
>
getHealth
(
WebClient
webClient
)
{
String
status
=
(
String
)
body
.
get
(
"status"
);
return
webClient
.
get
().
uri
(
"/_cluster/health/"
).
exchange
(
);
if
(
RED_STATUS
.
equals
(
status
))
{
}
builder
.
outOfService
();
}
private
Mono
<
Health
>
doHealthCheck
(
Health
.
Builder
builder
,
ClientResponse
response
)
{
else
{
if
(
response
.
statusCode
().
is2xxSuccessful
())
{
builder
.
up
(
);
return
response
.
bodyToMono
(
STRING_OBJECT_MAP
).
map
((
body
)
->
getHealth
(
builder
,
body
)
);
}
}
builder
.
withDetails
(
body
);
builder
.
down
(
);
return
builder
.
build
(
);
builder
.
withDetail
(
"statusCode"
,
response
.
rawStatusCode
()
);
}
);
builder
.
withDetail
(
"reasonPhrase"
,
response
.
statusCode
().
getReasonPhrase
()
);
}
return
response
.
releaseBody
().
thenReturn
(
builder
.
build
());
else
{
}
builder
.
down
();
builder
.
withDetail
(
"statusCode"
,
response
.
rawStatusCode
());
private
Health
getHealth
(
Health
.
Builder
builder
,
Map
<
String
,
Object
>
body
)
{
builder
.
withDetail
(
"reasonPhrase"
,
response
.
statusCode
().
getReasonPhrase
()
);
String
status
=
(
String
)
body
.
get
(
"status"
);
return
response
.
releaseBody
().
thenReturn
(
builder
.
build
()
);
builder
.
status
(
RED_STATUS
.
equals
(
status
)
?
Status
.
OUT_OF_SERVICE
:
Status
.
UP
);
}
builder
.
withDetails
(
body
);
}
);
return
builder
.
build
(
);
}
}
}
}
spring-boot-project/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/redis/RedisHealthIndicator.java
View file @
da692868
/*
/*
* Copyright 2012-20
19
the original author or authors.
* Copyright 2012-20
20
the original author or authors.
*
*
* Licensed under the Apache License, Version 2.0 (the "License");
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* you may not use this file except in compliance with the License.
...
@@ -16,8 +16,6 @@
...
@@ -16,8 +16,6 @@
package
org
.
springframework
.
boot
.
actuate
.
redis
;
package
org
.
springframework
.
boot
.
actuate
.
redis
;
import
java.util.Properties
;
import
org.springframework.boot.actuate.health.AbstractHealthIndicator
;
import
org.springframework.boot.actuate.health.AbstractHealthIndicator
;
import
org.springframework.boot.actuate.health.Health
;
import
org.springframework.boot.actuate.health.Health
;
import
org.springframework.boot.actuate.health.HealthIndicator
;
import
org.springframework.boot.actuate.health.HealthIndicator
;
...
@@ -39,15 +37,7 @@ import org.springframework.util.Assert;
...
@@ -39,15 +37,7 @@ import org.springframework.util.Assert;
*/
*/
public
class
RedisHealthIndicator
extends
AbstractHealthIndicator
{
public
class
RedisHealthIndicator
extends
AbstractHealthIndicator
{
static
final
String
VERSION
=
"version"
;
private
static
final
String
REDIS_VERSION_PROPERTY
=
"redis_version"
;
static
final
String
CLUSTER_SIZE
=
"cluster_size"
;
static
final
String
SLOTS_UP
=
"slots_up"
;
static
final
String
SLOTS_FAIL
=
"slots_fail"
;
static
final
String
REDIS_VERSION
=
"redis_version"
;
private
final
RedisConnectionFactory
redisConnectionFactory
;
private
final
RedisConnectionFactory
redisConnectionFactory
;
...
@@ -61,20 +51,24 @@ public class RedisHealthIndicator extends AbstractHealthIndicator {
...
@@ -61,20 +51,24 @@ public class RedisHealthIndicator extends AbstractHealthIndicator {
protected
void
doHealthCheck
(
Health
.
Builder
builder
)
throws
Exception
{
protected
void
doHealthCheck
(
Health
.
Builder
builder
)
throws
Exception
{
RedisConnection
connection
=
RedisConnectionUtils
.
getConnection
(
this
.
redisConnectionFactory
);
RedisConnection
connection
=
RedisConnectionUtils
.
getConnection
(
this
.
redisConnectionFactory
);
try
{
try
{
if
(
connection
instanceof
RedisClusterConnection
)
{
doHealthCheck
(
builder
,
connection
);
ClusterInfo
clusterInfo
=
((
RedisClusterConnection
)
connection
).
clusterGetClusterInfo
();
builder
.
up
().
withDetail
(
CLUSTER_SIZE
,
clusterInfo
.
getClusterSize
())
.
withDetail
(
SLOTS_UP
,
clusterInfo
.
getSlotsOk
())
.
withDetail
(
SLOTS_FAIL
,
clusterInfo
.
getSlotsFail
());
}
else
{
Properties
info
=
connection
.
info
();
builder
.
up
().
withDetail
(
VERSION
,
info
.
getProperty
(
REDIS_VERSION
));
}
}
}
finally
{
finally
{
RedisConnectionUtils
.
releaseConnection
(
connection
,
this
.
redisConnectionFactory
,
false
);
RedisConnectionUtils
.
releaseConnection
(
connection
,
this
.
redisConnectionFactory
,
false
);
}
}
}
}
private
void
doHealthCheck
(
Health
.
Builder
builder
,
RedisConnection
connection
)
{
if
(
connection
instanceof
RedisClusterConnection
)
{
ClusterInfo
clusterInfo
=
((
RedisClusterConnection
)
connection
).
clusterGetClusterInfo
();
builder
.
up
().
withDetail
(
"cluster_size"
,
clusterInfo
.
getClusterSize
())
.
withDetail
(
"slots_up"
,
clusterInfo
.
getSlotsOk
())
.
withDetail
(
"slots_fail"
,
clusterInfo
.
getSlotsFail
());
}
else
{
String
version
=
connection
.
info
().
getProperty
(
REDIS_VERSION_PROPERTY
);
builder
.
up
().
withDetail
(
"version"
,
version
);
}
}
}
}
spring-boot-project/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/redis/RedisReactiveHealthIndicator.java
View file @
da692868
...
@@ -40,6 +40,8 @@ import org.springframework.data.redis.connection.ReactiveRedisConnectionFactory;
...
@@ -40,6 +40,8 @@ import org.springframework.data.redis.connection.ReactiveRedisConnectionFactory;
*/
*/
public
class
RedisReactiveHealthIndicator
extends
AbstractReactiveHealthIndicator
{
public
class
RedisReactiveHealthIndicator
extends
AbstractReactiveHealthIndicator
{
private
static
final
String
REDIS_VERSION_PROPERTY
=
"redis_version"
;
private
final
ReactiveRedisConnectionFactory
connectionFactory
;
private
final
ReactiveRedisConnectionFactory
connectionFactory
;
public
RedisReactiveHealthIndicator
(
ReactiveRedisConnectionFactory
connectionFactory
)
{
public
RedisReactiveHealthIndicator
(
ReactiveRedisConnectionFactory
connectionFactory
)
{
...
@@ -59,11 +61,9 @@ public class RedisReactiveHealthIndicator extends AbstractReactiveHealthIndicato
...
@@ -59,11 +61,9 @@ public class RedisReactiveHealthIndicator extends AbstractReactiveHealthIndicato
.
onErrorResume
((
ex
)
->
Mono
.
just
(
down
(
builder
,
ex
)))
.
onErrorResume
((
ex
)
->
Mono
.
just
(
down
(
builder
,
ex
)))
.
flatMap
((
health
)
->
clusterConnection
.
closeLater
().
thenReturn
(
health
));
.
flatMap
((
health
)
->
clusterConnection
.
closeLater
().
thenReturn
(
health
));
}
}
else
{
return
connection
.
serverCommands
().
info
().
map
((
info
)
->
up
(
builder
,
info
))
return
connection
.
serverCommands
().
info
().
map
((
info
)
->
up
(
builder
,
info
))
.
onErrorResume
((
ex
)
->
Mono
.
just
(
down
(
builder
,
ex
)))
.
onErrorResume
((
ex
)
->
Mono
.
just
(
down
(
builder
,
ex
)))
.
flatMap
((
health
)
->
connection
.
closeLater
().
thenReturn
(
health
));
.
flatMap
((
health
)
->
connection
.
closeLater
().
thenReturn
(
health
));
}
}
}
private
Mono
<
ReactiveRedisConnection
>
getConnection
()
{
private
Mono
<
ReactiveRedisConnection
>
getConnection
()
{
...
@@ -72,14 +72,13 @@ public class RedisReactiveHealthIndicator extends AbstractReactiveHealthIndicato
...
@@ -72,14 +72,13 @@ public class RedisReactiveHealthIndicator extends AbstractReactiveHealthIndicato
}
}
private
Health
up
(
Health
.
Builder
builder
,
Properties
info
)
{
private
Health
up
(
Health
.
Builder
builder
,
Properties
info
)
{
return
builder
.
up
()
return
builder
.
up
().
withDetail
(
"version"
,
info
.
getProperty
(
REDIS_VERSION_PROPERTY
)).
build
();
.
withDetail
(
RedisHealthIndicator
.
VERSION
,
info
.
getProperty
(
RedisHealthIndicator
.
REDIS_VERSION
)).
build
();
}
}
private
Health
up
(
Health
.
Builder
builder
,
ClusterInfo
clusterInfo
)
{
private
Health
up
(
Health
.
Builder
builder
,
ClusterInfo
clusterInfo
)
{
return
builder
.
up
().
withDetail
(
RedisHealthIndicator
.
CLUSTER_SIZE
,
clusterInfo
.
getClusterSize
())
return
builder
.
up
().
withDetail
(
"cluster_size"
,
clusterInfo
.
getClusterSize
())
.
withDetail
(
RedisHealthIndicator
.
SLOTS_UP
,
clusterInfo
.
getSlotsOk
())
.
withDetail
(
"slots_up"
,
clusterInfo
.
getSlotsOk
()).
withDetail
(
"slots_fail"
,
clusterInfo
.
getSlotsFail
())
.
withDetail
(
RedisHealthIndicator
.
SLOTS_FAIL
,
clusterInfo
.
getSlotsFail
()).
build
();
.
build
();
}
}
private
Health
down
(
Health
.
Builder
builder
,
Throwable
cause
)
{
private
Health
down
(
Health
.
Builder
builder
,
Throwable
cause
)
{
...
...
spring-boot-project/spring-boot-actuator/src/test/java/org/springframework/boot/actuate/redis/RedisReactiveHealthIndicatorTests.java
View file @
da692868
/*
/*
* Copyright 2012-20
19
the original author or authors.
* Copyright 2012-20
20
the original author or authors.
*
*
* Licensed under the Apache License, Version 2.0 (the "License");
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* you may not use this file except in compliance with the License.
...
...
spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/kafka/KafkaStreamsAnnotationDrivenConfiguration.java
View file @
da692868
/*
/*
* Copyright 2012-20
19
the original author or authors.
* Copyright 2012-20
20
the original author or authors.
*
*
* Licensed under the Apache License, Version 2.0 (the "License");
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* you may not use this file except in compliance with the License.
...
...
spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/mustache/MustacheEnvironmentCollector.java
View file @
da692868
/*
/*
* Copyright 2012-20
19
the original author or authors.
* Copyright 2012-20
20
the original author or authors.
*
*
* Licensed under the Apache License, Version 2.0 (the "License");
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* you may not use this file except in compliance with the License.
...
...
spring-boot-project/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/data/jpa/JpaWebAutoConfigurationTests.java
View file @
da692868
/*
/*
* Copyright 2012-20
19
the original author or authors.
* Copyright 2012-20
20
the original author or authors.
*
*
* Licensed under the Apache License, Version 2.0 (the "License");
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* you may not use this file except in compliance with the License.
...
...
spring-boot-project/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/mustache/MustacheStandaloneIntegrationTests.java
View file @
da692868
/*
/*
* Copyright 2012-20
19
the original author or authors.
* Copyright 2012-20
20
the original author or authors.
*
*
* Licensed under the Apache License, Version 2.0 (the "License");
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* you may not use this file except in compliance with the License.
...
...
spring-boot-project/spring-boot-docs/build.gradle
View file @
da692868
...
@@ -95,7 +95,7 @@ dependencies {
...
@@ -95,7 +95,7 @@ dependencies {
testImplementation
(
project
(
":spring-boot-project:spring-boot-tools:spring-boot-test-support"
))
testImplementation
(
project
(
":spring-boot-project:spring-boot-tools:spring-boot-test-support"
))
testImplementation
(
"org.assertj:assertj-core"
)
testImplementation
(
"org.assertj:assertj-core"
)
testImplementation
(
"org.junit.jupiter:junit-jupiter"
)
testImplementation
(
"org.junit.jupiter:junit-jupiter"
)
testRuntimeOnly
(
project
(
":spring-boot-project:spring-boot-starters:spring-boot-starter-web"
))
testRuntimeOnly
(
project
(
":spring-boot-project:spring-boot-starters:spring-boot-starter-web"
))
testRuntimeOnly
(
"com.h2database:h2"
)
testRuntimeOnly
(
"com.h2database:h2"
)
testRuntimeOnly
(
"org.springframework:spring-jdbc"
)
testRuntimeOnly
(
"org.springframework:spring-jdbc"
)
...
...
spring-boot-project/spring-boot-test/src/main/java/org/springframework/boot/test/mock/mockito/DefinitionsParser.java
View file @
da692868
/*
/*
* Copyright 2012-20
19
the original author or authors.
* Copyright 2012-20
20
the original author or authors.
*
*
* Licensed under the Apache License, Version 2.0 (the "License");
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* you may not use this file except in compliance with the License.
...
...
spring-boot-project/spring-boot-tools/spring-boot-buildpack-platform/src/main/java/org/springframework/boot/buildpack/platform/docker/transport/LocalHttpClientTransport.java
View file @
da692868
...
@@ -69,8 +69,10 @@ final class LocalHttpClientTransport extends HttpClientTransport {
...
@@ -69,8 +69,10 @@ final class LocalHttpClientTransport extends HttpClientTransport {
private
static
String
socketFilePath
(
Environment
environment
)
{
private
static
String
socketFilePath
(
Environment
environment
)
{
String
host
=
environment
.
get
(
DOCKER_HOST
);
String
host
=
environment
.
get
(
DOCKER_HOST
);
return
(
host
!=
null
&&
host
.
startsWith
(
UNIX_SOCKET_PREFIX
))
?
host
.
substring
(
UNIX_SOCKET_PREFIX
.
length
())
if
(
host
!=
null
&&
host
.
startsWith
(
UNIX_SOCKET_PREFIX
))
{
:
host
;
return
host
.
substring
(
UNIX_SOCKET_PREFIX
.
length
());
}
return
host
;
}
}
/**
/**
...
...
spring-boot-project/spring-boot-tools/spring-boot-buildpack-platform/src/main/java/org/springframework/boot/buildpack/platform/io/ZipFileTarArchive.java
View file @
da692868
...
@@ -76,7 +76,7 @@ public class ZipFileTarArchive implements TarArchive {
...
@@ -76,7 +76,7 @@ public class ZipFileTarArchive implements TarArchive {
private
void
assertArchiveHasEntries
(
File
jarFile
)
{
private
void
assertArchiveHasEntries
(
File
jarFile
)
{
try
(
ZipFile
zipFile
=
new
ZipFile
(
jarFile
))
{
try
(
ZipFile
zipFile
=
new
ZipFile
(
jarFile
))
{
Assert
.
state
(
zipFile
.
getEntries
().
hasMoreElements
(),
"File '"
+
jarFile
.
toString
()
Assert
.
state
(
zipFile
.
getEntries
().
hasMoreElements
(),
()
->
"File '"
+
jarFile
+
"' is not compatible with buildpacks; ensure jar file is valid and launch script is not enabled"
);
+
"' is not compatible with buildpacks; ensure jar file is valid and launch script is not enabled"
);
}
}
catch
(
IOException
ex
)
{
catch
(
IOException
ex
)
{
...
...
spring-boot-project/spring-boot/src/main/java/org/springframework/boot/web/client/RestTemplateBuilder.java
View file @
da692868
/*
/*
* Copyright 2012-20
19
the original author or authors.
* Copyright 2012-20
20
the original author or authors.
*
*
* Licensed under the Apache License, Version 2.0 (the "License");
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* you may not use this file except in compliance with the License.
...
...
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