diff --git a/generators/server/command.ts b/generators/server/command.ts index 027b63ae8287..0f3c92476f25 100644 --- a/generators/server/command.ts +++ b/generators/server/command.ts @@ -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, }, diff --git a/generators/server/support/__snapshots__/needles.spec.ts.snap b/generators/server/support/__snapshots__/needles.spec.ts.snap index 2d3193621a13..09a1a9d90443 100644 --- a/generators/server/support/__snapshots__/needles.spec.ts.snap +++ b/generators/server/support/__snapshots__/needles.spec.ts.snap @@ -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", }, @@ -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", },