File tree Expand file tree Collapse file tree 6 files changed +40
-15
lines changed
codegen/src/main/java/software/amazon/awssdk/codegen/poet/builder Expand file tree Collapse file tree 6 files changed +40
-15
lines changed Original file line number Diff line number Diff line change @@ -73,11 +73,14 @@ public TypeSpec poetSpec() {
73
73
builder .addMethod (serviceConfigurationConsumerBuilderMethod ());
74
74
}
75
75
76
- if (hasClientContextParams () && endpointRulesSpecUtils .isEndpointRulesEnabled ()) {
76
+ if (endpointRulesSpecUtils .isEndpointRulesEnabled ()) {
77
77
builder .addMethod (endpointProviderMethod ());
78
- model .getClientContextParams ().forEach ((n , m ) -> {
79
- builder .addMethod (clientContextParamSetter (n , m ));
80
- });
78
+
79
+ if (hasClientContextParams ()) {
80
+ model .getClientContextParams ().forEach ((n , m ) -> {
81
+ builder .addMethod (clientContextParamSetter (n , m ));
82
+ });
83
+ }
81
84
}
82
85
83
86
if (generateTokenProviderMethod ()) {
Original file line number Diff line number Diff line change 489
489
<ignoredUnusedDeclaredDependency >org.junit.vintage:*</ignoredUnusedDeclaredDependency >
490
490
<ignoredUnusedDeclaredDependency >software.amazon.awssdk:aws-sdk-java</ignoredUnusedDeclaredDependency >
491
491
<!-- Declared by the codegen maven plugins (lite and normal). Not used directly but used to override a transitive dependecy -->
492
- <ignoredUnusedDeclaredDependency >org.codehaus.plexus:plexus-utils</ignoredUnusedDeclaredDependency >
492
+ <ignoredUnusedDeclaredDependency >software.amazon.awssdk:json-utils</ignoredUnusedDeclaredDependency >
493
+ <ignoredUnusedDeclaredDependency >software.amazon.awssdk:endpoints-spi</ignoredUnusedDeclaredDependency >
494
+ <ignoredUnusedDeclaredDependency >software.amazon.awssdk:aws-sdk-java</ignoredUnusedDeclaredDependency >
493
495
</ignoredUnusedDeclaredDependencies >
494
496
</configuration >
495
497
</plugin >
Original file line number Diff line number Diff line change 56
56
<artifactId >aws-json-protocol</artifactId >
57
57
<version >${awsjavasdk.version} </version >
58
58
</dependency >
59
+ <dependency >
60
+ <groupId >software.amazon.awssdk</groupId >
61
+ <artifactId >json-utils</artifactId >
62
+ <version >${awsjavasdk.version} </version >
63
+ </dependency >
64
+ <dependency >
65
+ <groupId >software.amazon.awssdk</groupId >
66
+ <artifactId >endpoints-spi</artifactId >
67
+ <version >${awsjavasdk.version} </version >
68
+ </dependency >
59
69
<!-- Test Dependencies -->
60
70
<dependency >
61
71
<groupId >software.amazon.awssdk</groupId >
Original file line number Diff line number Diff line change 368
368
<artifactId >http-client-spi</artifactId >
369
369
<version >${awsjavasdk.version} </version >
370
370
</dependency >
371
- <dependency >
372
- <groupId >software.amazon.awssdk</groupId >
373
- <artifactId >endpoints-spi</artifactId >
374
- <version >${awsjavasdk.version} </version >
375
- </dependency >
376
371
<dependency >
377
372
<groupId >software.amazon.awssdk</groupId >
378
373
<artifactId >regions</artifactId >
388
383
<artifactId >utils</artifactId >
389
384
<version >${awsjavasdk.version} </version >
390
385
</dependency >
391
- <dependency >
392
- <groupId >software.amazon.awssdk</groupId >
393
- <artifactId >json-utils</artifactId >
394
- <version >${awsjavasdk.version} </version >
395
- </dependency >
396
386
<dependency >
397
387
<artifactId >aws-core</artifactId >
398
388
<groupId >software.amazon.awssdk</groupId >
Original file line number Diff line number Diff line change 75
75
<artifactId >profiles</artifactId >
76
76
<version >${awsjavasdk.version} </version >
77
77
</dependency >
78
+ <dependency >
79
+ <groupId >software.amazon.awssdk</groupId >
80
+ <artifactId >json-utils</artifactId >
81
+ <version >${awsjavasdk.version} </version >
82
+ </dependency >
83
+ <dependency >
84
+ <groupId >software.amazon.awssdk</groupId >
85
+ <artifactId >endpoints-spi</artifactId >
86
+ <version >${awsjavasdk.version} </version >
87
+ </dependency >
78
88
<dependency >
79
89
<groupId >software.amazon.awssdk.crt</groupId >
80
90
<artifactId >aws-crt</artifactId >
Original file line number Diff line number Diff line change 71
71
<artifactId >profiles</artifactId >
72
72
<version >${awsjavasdk.version} </version >
73
73
</dependency >
74
+ <dependency >
75
+ <groupId >software.amazon.awssdk</groupId >
76
+ <artifactId >json-utils</artifactId >
77
+ <version >${awsjavasdk.version} </version >
78
+ </dependency >
79
+ <dependency >
80
+ <groupId >software.amazon.awssdk</groupId >
81
+ <artifactId >endpoints-spi</artifactId >
82
+ <version >${awsjavasdk.version} </version >
83
+ </dependency >
74
84
<!-- Test Dependencies -->
75
85
<dependency >
76
86
<artifactId >commons-io</artifactId >
You can’t perform that action at this time.
0 commit comments