File tree Expand file tree Collapse file tree 5 files changed +80
-6
lines changed
src/main/java/io/dapr/spring/openfeign/autoconfigure
spring-boot-examples/openfeign-app Expand file tree Collapse file tree 5 files changed +80
-6
lines changed Original file line number Diff line number Diff line change 6
6
<parent >
7
7
<groupId >io.dapr.spring</groupId >
8
8
<artifactId >dapr-spring-parent</artifactId >
9
- <version >0.15 .0-SNAPSHOT</version >
9
+ <version >0.16 .0-SNAPSHOT</version >
10
10
</parent >
11
11
12
12
<artifactId >dapr-openfeign-client</artifactId >
31
31
<version >13.5</version >
32
32
<scope >test</scope >
33
33
</dependency >
34
+ <dependency >
35
+ <groupId >io.dapr</groupId >
36
+ <artifactId >dapr-sdk</artifactId >
37
+ <version >${dapr.sdk.version} </version >
38
+ <scope >compile</scope >
39
+ </dependency >
40
+ <dependency >
41
+ <groupId >org.mockito</groupId >
42
+ <artifactId >mockito-core</artifactId >
43
+ <scope >test</scope >
44
+ </dependency >
45
+ <dependency >
46
+ <groupId >org.mockito</groupId >
47
+ <artifactId >mockito-junit-jupiter</artifactId >
48
+ <scope >test</scope >
49
+ </dependency >
50
+ <dependency >
51
+ <groupId >org.junit.jupiter</groupId >
52
+ <artifactId >junit-jupiter</artifactId >
53
+ <scope >test</scope >
54
+ </dependency >
34
55
</dependencies >
35
56
36
57
</project >
Original file line number Diff line number Diff line change 6
6
<parent >
7
7
<groupId >io.dapr.spring</groupId >
8
8
<artifactId >dapr-spring-parent</artifactId >
9
- <version >0.15 .0-SNAPSHOT</version >
9
+ <version >0.16 .0-SNAPSHOT</version >
10
10
</parent >
11
11
12
12
<artifactId >dapr-spring-openfeign</artifactId >
37
37
<artifactId >spring-boot-starter-web</artifactId >
38
38
<scope >test</scope >
39
39
</dependency >
40
+ <dependency >
41
+ <groupId >org.testcontainers</groupId >
42
+ <artifactId >testcontainers</artifactId >
43
+ <scope >test</scope >
44
+ </dependency >
45
+ <dependency >
46
+ <groupId >org.testcontainers</groupId >
47
+ <artifactId >junit-jupiter</artifactId >
48
+ <scope >test</scope >
49
+ <exclusions >
50
+ <exclusion >
51
+ <groupId >com.vaadin.external.google</groupId >
52
+ <artifactId >android-json</artifactId >
53
+ </exclusion >
54
+ </exclusions >
55
+ </dependency >
56
+ <dependency >
57
+ <groupId >io.dapr</groupId >
58
+ <artifactId >testcontainers-dapr</artifactId >
59
+ <scope >test</scope >
60
+ </dependency >
61
+ <dependency >
62
+ <groupId >org.springframework</groupId >
63
+ <artifactId >spring-beans</artifactId >
64
+ </dependency >
65
+ <dependency >
66
+ <groupId >org.springframework</groupId >
67
+ <artifactId >spring-context</artifactId >
68
+ </dependency >
69
+ <dependency >
70
+ <groupId >org.springframework.boot</groupId >
71
+ <artifactId >spring-boot-starter-test</artifactId >
72
+ </dependency >
40
73
<dependency >
41
74
<groupId >org.springframework.cloud</groupId >
42
75
<artifactId >spring-cloud-starter-openfeign</artifactId >
Original file line number Diff line number Diff line change 1
1
package io .dapr .spring .openfeign .autoconfigure ;
2
2
3
- import org .jetbrains .annotations .NotNull ;
4
3
import org .springframework .beans .factory .config .ConfigurableListableBeanFactory ;
5
4
import org .springframework .cloud .openfeign .EnableFeignClients ;
6
5
import org .springframework .context .annotation .Condition ;
12
11
public class FeignClientAnnoationEnabledCondition implements Condition {
13
12
@ Override
14
13
@ SuppressWarnings ("null" )
15
- public boolean matches (@ NotNull ConditionContext context , @ NotNull AnnotatedTypeMetadata metadata ) {
14
+ public boolean matches (ConditionContext context , AnnotatedTypeMetadata metadata ) {
16
15
try {
17
16
ConfigurableListableBeanFactory factory = Objects .requireNonNull (context .getBeanFactory ());
18
17
String [] beanNames = factory .getBeanNamesForAnnotation (EnableFeignClients .class );
Original file line number Diff line number Diff line change 49
49
<snakeyaml .version>2.0</snakeyaml .version>
50
50
<testcontainers .version>1.20.5</testcontainers .version>
51
51
<springboot .version>3.4.3</springboot .version>
52
+ <springcloud .version>2024.0.0</springcloud .version>
52
53
<nexus-staging-maven-plugin .version>1.7.0</nexus-staging-maven-plugin .version>
53
54
<assertj .version>3.27.3</assertj .version>
54
55
<grpc .version>1.69.0</grpc .version>
112
113
<artifactId >mockito-core</artifactId >
113
114
<version >3.11.2</version >
114
115
</dependency >
116
+ <dependency >
117
+ <groupId >org.mockito</groupId >
118
+ <artifactId >mockito-junit-jupiter</artifactId >
119
+ <version >3.11.2</version >
120
+ </dependency >
115
121
<dependency >
116
122
<groupId >io.projectreactor</groupId >
117
123
<artifactId >reactor-test</artifactId >
Original file line number Diff line number Diff line change 6
6
<parent >
7
7
<groupId >io.dapr</groupId >
8
8
<artifactId >spring-boot-examples</artifactId >
9
- <version >0.15 .0-SNAPSHOT</version >
9
+ <version >0.16 .0-SNAPSHOT</version >
10
10
</parent >
11
11
12
12
<artifactId >openfeign-app</artifactId >
26
26
</dependency >
27
27
<dependency >
28
28
<groupId >org.springframework.boot</groupId >
29
- <artifactId >spring-boot-starter-actuator </artifactId >
29
+ <artifactId >spring-boot-starter-test </artifactId >
30
30
</dependency >
31
31
<dependency >
32
32
<groupId >io.dapr.spring</groupId >
33
33
<artifactId >dapr-spring-boot-starter</artifactId >
34
34
</dependency >
35
+ <dependency >
36
+ <groupId >io.dapr.spring</groupId >
37
+ <artifactId >dapr-spring-boot-starter-test</artifactId >
38
+ <scope >test</scope >
39
+ </dependency >
35
40
<dependency >
36
41
<groupId >org.springframework.cloud</groupId >
37
42
<artifactId >spring-cloud-starter-openfeign</artifactId >
56
61
<artifactId >rest-assured</artifactId >
57
62
<scope >test</scope >
58
63
</dependency >
64
+ <dependency >
65
+ <groupId >org.junit.jupiter</groupId >
66
+ <artifactId >junit-jupiter-api</artifactId >
67
+ <scope >test</scope >
68
+ </dependency >
69
+ <dependency >
70
+ <groupId >org.mockito</groupId >
71
+ <artifactId >mockito-core</artifactId >
72
+ <scope >test</scope >
73
+ </dependency >
59
74
</dependencies >
60
75
61
76
</project >
You can’t perform that action at this time.
0 commit comments