Skip to content

Commit

Permalink
Merge pull request #24566 from nil-malh/fix/25460
Browse files Browse the repository at this point in the history
Do not prompt for feign clients when creating a monolith
  • Loading branch information
DanielFran authored Dec 15, 2023
2 parents 4965fd5 + 1156acf commit 68e4052
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 9 deletions.
4 changes: 4 additions & 0 deletions generators/server/command.ts
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,10 @@ const command: JHipsterCommandDefinition = {
prompt: {
type: 'confirm',
message: 'Do you want to generate a feign client?',
when: currentAnswer =>
currentAnswer.applicationType === APPLICATION_TYPE_MICROSERVICE &&
currentAnswer.reactive !== undefined &&
!currentAnswer.reactive,
},
default: false,
},
Expand Down
9 changes: 0 additions & 9 deletions generators/server/support/__snapshots__/needles.spec.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -89,12 +89,6 @@ exports[`generator - server - support - needles generated project should match s
"src/main/java/com/mycompany/myapp/aop/logging/package-info.java": {
"stateCleared": "modified",
},
"src/main/java/com/mycompany/myapp/client/UserFeignClientInterceptor.java": {
"stateCleared": "modified",
},
"src/main/java/com/mycompany/myapp/client/package-info.java": {
"stateCleared": "modified",
},
"src/main/java/com/mycompany/myapp/config/ApplicationProperties.java": {
"stateCleared": "modified",
},
Expand All @@ -116,9 +110,6 @@ exports[`generator - server - support - needles generated project should match s
"src/main/java/com/mycompany/myapp/config/DateTimeFormatConfiguration.java": {
"stateCleared": "modified",
},
"src/main/java/com/mycompany/myapp/config/FeignConfiguration.java": {
"stateCleared": "modified",
},
"src/main/java/com/mycompany/myapp/config/JacksonConfiguration.java": {
"stateCleared": "modified",
},
Expand Down

0 comments on commit 68e4052

Please sign in to comment.