File tree Expand file tree Collapse file tree 3 files changed +29
-0
lines changed
spring-boot-autoconfigure
spring-boot-tests/spring-boot-smoke-tests/spring-boot-smoke-test-kafka Expand file tree Collapse file tree 3 files changed +29
-0
lines changed Original file line number Diff line number Diff line change @@ -10,6 +10,16 @@ plugins {
10
10
11
11
description = " Spring Boot AutoConfigure"
12
12
13
+ configurations. all {
14
+ resolutionStrategy. eachDependency { DependencyResolveDetails details ->
15
+ if (details. requested. module. group == " org.apache.kafka" && details. requested. module. name == " kafka-server-common" ) {
16
+ details. artifactSelection {
17
+ selectArtifact(DependencyArtifact . DEFAULT_TYPE , null , null )
18
+ }
19
+ }
20
+ }
21
+ }
22
+
13
23
dependencies {
14
24
api(project(" :spring-boot-project:spring-boot" ))
15
25
Original file line number Diff line number Diff line change @@ -15,6 +15,15 @@ configurations {
15
15
springApplicationExample
16
16
testSlices
17
17
antoraContent
18
+ all {
19
+ resolutionStrategy. eachDependency { DependencyResolveDetails details ->
20
+ if (details. requested. module. group == " org.apache.kafka" && details. requested. module. name == " kafka-server-common" ) {
21
+ details. artifactSelection {
22
+ selectArtifact(DependencyArtifact . DEFAULT_TYPE , null , null )
23
+ }
24
+ }
25
+ }
26
+ }
18
27
}
19
28
20
29
jar {
Original file line number Diff line number Diff line change @@ -6,6 +6,16 @@ plugins {
6
6
7
7
description = " Spring Boot Kafka smoke test"
8
8
9
+ configurations. all {
10
+ resolutionStrategy. eachDependency { DependencyResolveDetails details ->
11
+ if (details. requested. module. group == " org.apache.kafka" && details. requested. module. name == " kafka-server-common" ) {
12
+ details. artifactSelection {
13
+ selectArtifact(DependencyArtifact . DEFAULT_TYPE , null , null )
14
+ }
15
+ }
16
+ }
17
+ }
18
+
9
19
dependencies {
10
20
dockerTestImplementation(project(" :spring-boot-project:spring-boot-starters:spring-boot-starter-test" ))
11
21
dockerTestImplementation(project(" :spring-boot-project:spring-boot-tools:spring-boot-test-support-docker" ))
You can’t perform that action at this time.
0 commit comments