Skip to content

Commit

Permalink
remove SpringDocConfiguration for microservices
Browse files Browse the repository at this point in the history
  • Loading branch information
yhao3 committed Sep 28, 2024
1 parent 283309c commit 66a437a
Show file tree
Hide file tree
Showing 8 changed files with 1 addition and 140 deletions.
11 changes: 1 addition & 10 deletions generators/spring-boot/files.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,7 @@
*/
import { SERVER_MAIN_RES_DIR, SERVER_MAIN_SRC_DIR, SERVER_TEST_RES_DIR, SERVER_TEST_SRC_DIR } from '../generator-constants.js';
import { addSectionsCondition, mergeSections } from '../base/support/index.js';
import {
javaMainPackageTemplatesBlock,
moveToJavaPackageSrcDir,
moveToJavaPackageTestDir,
moveToSrcMainResourcesDir,
} from '../java/support/index.js';
import { moveToJavaPackageSrcDir, moveToJavaPackageTestDir, moveToSrcMainResourcesDir } from '../java/support/index.js';

const imperativeConfigFiles = {
imperativeFiles: [
Expand Down Expand Up @@ -352,10 +347,6 @@ export const baseServerFiles = {
},
],
serverMicroservice: [
javaMainPackageTemplatesBlock({
condition: generator => generator.applicationTypeMicroservice,
templates: ['config/SpringDocConfiguration.java'],
}),
{
condition: generator => generator.applicationTypeMicroservice,
path: SERVER_MAIN_RES_DIR,
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -538,9 +538,6 @@ exports[`generator - cassandra microservice-jwt-reactive(false)-maven-enableTran
"src/main/java/tech/jhipster/config/SecurityJwtConfiguration.java": {
"stateCleared": "modified",
},
"src/main/java/tech/jhipster/config/SpringDocConfiguration.java": {
"stateCleared": "modified",
},
"src/main/java/tech/jhipster/config/WebConfigurer.java": {
"stateCleared": "modified",
},
Expand Down Expand Up @@ -885,9 +882,6 @@ exports[`generator - cassandra microservice-jwt-reactive(true)-gradle-enableTran
"src/main/java/com/mycompany/config/SecurityJwtConfiguration.java": {
"stateCleared": "modified",
},
"src/main/java/com/mycompany/config/SpringDocConfiguration.java": {
"stateCleared": "modified",
},
"src/main/java/com/mycompany/config/WebConfigurer.java": {
"stateCleared": "modified",
},
Expand Down Expand Up @@ -1232,9 +1226,6 @@ exports[`generator - cassandra microservice-oauth2-reactive(true)-gradle-enableT
"src/main/java/com/mycompany/config/SecurityConfiguration.java": {
"stateCleared": "modified",
},
"src/main/java/com/mycompany/config/SpringDocConfiguration.java": {
"stateCleared": "modified",
},
"src/main/java/com/mycompany/config/WebConfigurer.java": {
"stateCleared": "modified",
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -577,9 +577,6 @@ exports[`generator - couchbase microservice-jwt-reactive(false)-maven-enableTran
"src/main/java/tech/jhipster/config/SecurityJwtConfiguration.java": {
"stateCleared": "modified",
},
"src/main/java/tech/jhipster/config/SpringDocConfiguration.java": {
"stateCleared": "modified",
},
"src/main/java/tech/jhipster/config/WebConfigurer.java": {
"stateCleared": "modified",
},
Expand Down Expand Up @@ -921,9 +918,6 @@ exports[`generator - couchbase microservice-jwt-reactive(true)-gradle-enableTran
"src/main/java/com/mycompany/config/SecurityJwtConfiguration.java": {
"stateCleared": "modified",
},
"src/main/java/com/mycompany/config/SpringDocConfiguration.java": {
"stateCleared": "modified",
},
"src/main/java/com/mycompany/config/WebConfigurer.java": {
"stateCleared": "modified",
},
Expand Down Expand Up @@ -1268,9 +1262,6 @@ exports[`generator - couchbase microservice-oauth2-reactive(true)-gradle-enableT
"src/main/java/com/mycompany/config/SecurityConfiguration.java": {
"stateCleared": "modified",
},
"src/main/java/com/mycompany/config/SpringDocConfiguration.java": {
"stateCleared": "modified",
},
"src/main/java/com/mycompany/config/WebConfigurer.java": {
"stateCleared": "modified",
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -595,9 +595,6 @@ exports[`generator - elasticsearch microservice-jwt-reactive(false)-maven-enable
"src/main/java/tech/jhipster/config/SecurityJwtConfiguration.java": {
"stateCleared": "modified",
},
"src/main/java/tech/jhipster/config/SpringDocConfiguration.java": {
"stateCleared": "modified",
},
"src/main/java/tech/jhipster/config/WebConfigurer.java": {
"stateCleared": "modified",
},
Expand Down Expand Up @@ -993,9 +990,6 @@ exports[`generator - elasticsearch microservice-jwt-reactive(true)-gradle-enable
"src/main/java/com/mycompany/config/SecurityJwtConfiguration.java": {
"stateCleared": "modified",
},
"src/main/java/com/mycompany/config/SpringDocConfiguration.java": {
"stateCleared": "modified",
},
"src/main/java/com/mycompany/config/WebConfigurer.java": {
"stateCleared": "modified",
},
Expand Down Expand Up @@ -1376,9 +1370,6 @@ exports[`generator - elasticsearch microservice-oauth2-reactive(true)-gradle-ena
"src/main/java/com/mycompany/config/SecurityConfiguration.java": {
"stateCleared": "modified",
},
"src/main/java/com/mycompany/config/SpringDocConfiguration.java": {
"stateCleared": "modified",
},
"src/main/java/com/mycompany/config/WebConfigurer.java": {
"stateCleared": "modified",
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -544,9 +544,6 @@ exports[`generator - mongodb microservice-jwt-reactive(false)-maven-enableTransl
"src/main/java/tech/jhipster/config/SecurityJwtConfiguration.java": {
"stateCleared": "modified",
},
"src/main/java/tech/jhipster/config/SpringDocConfiguration.java": {
"stateCleared": "modified",
},
"src/main/java/tech/jhipster/config/WebConfigurer.java": {
"stateCleared": "modified",
},
Expand Down Expand Up @@ -879,9 +876,6 @@ exports[`generator - mongodb microservice-jwt-reactive(true)-gradle-enableTransl
"src/main/java/com/mycompany/config/SecurityJwtConfiguration.java": {
"stateCleared": "modified",
},
"src/main/java/com/mycompany/config/SpringDocConfiguration.java": {
"stateCleared": "modified",
},
"src/main/java/com/mycompany/config/WebConfigurer.java": {
"stateCleared": "modified",
},
Expand Down Expand Up @@ -1211,9 +1205,6 @@ exports[`generator - mongodb microservice-oauth2-reactive(true)-gradle-enableTra
"src/main/java/com/mycompany/config/SecurityConfiguration.java": {
"stateCleared": "modified",
},
"src/main/java/com/mycompany/config/SpringDocConfiguration.java": {
"stateCleared": "modified",
},
"src/main/java/com/mycompany/config/WebConfigurer.java": {
"stateCleared": "modified",
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -550,9 +550,6 @@ exports[`generator - neo4j microservice-jwt-reactive(false)-maven-enableTranslat
"src/main/java/tech/jhipster/config/SecurityJwtConfiguration.java": {
"stateCleared": "modified",
},
"src/main/java/tech/jhipster/config/SpringDocConfiguration.java": {
"stateCleared": "modified",
},
"src/main/java/tech/jhipster/config/WebConfigurer.java": {
"stateCleared": "modified",
},
Expand Down Expand Up @@ -882,9 +879,6 @@ exports[`generator - neo4j microservice-jwt-reactive(true)-gradle-enableTranslat
"src/main/java/com/mycompany/config/SecurityJwtConfiguration.java": {
"stateCleared": "modified",
},
"src/main/java/com/mycompany/config/SpringDocConfiguration.java": {
"stateCleared": "modified",
},
"src/main/java/com/mycompany/config/WebConfigurer.java": {
"stateCleared": "modified",
},
Expand Down Expand Up @@ -1214,9 +1208,6 @@ exports[`generator - neo4j microservice-oauth2-reactive(true)-gradle-enableTrans
"src/main/java/com/mycompany/config/SecurityConfiguration.java": {
"stateCleared": "modified",
},
"src/main/java/com/mycompany/config/SpringDocConfiguration.java": {
"stateCleared": "modified",
},
"src/main/java/com/mycompany/config/WebConfigurer.java": {
"stateCleared": "modified",
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2088,9 +2088,6 @@ exports[`generator - sql microservice-jwt-mariadb-reactive(true)-gradle-enableTr
"src/main/java/com/mycompany/config/SecurityJwtConfiguration.java": {
"stateCleared": "modified",
},
"src/main/java/com/mycompany/config/SpringDocConfiguration.java": {
"stateCleared": "modified",
},
"src/main/java/com/mycompany/config/WebConfigurer.java": {
"stateCleared": "modified",
},
Expand Down Expand Up @@ -2348,9 +2345,6 @@ exports[`generator - sql microservice-jwt-mssql-reactive(true)-gradle-enableTran
"src/main/java/com/mycompany/config/SecurityJwtConfiguration.java": {
"stateCleared": "modified",
},
"src/main/java/com/mycompany/config/SpringDocConfiguration.java": {
"stateCleared": "modified",
},
"src/main/java/com/mycompany/config/WebConfigurer.java": {
"stateCleared": "modified",
},
Expand Down Expand Up @@ -2599,9 +2593,6 @@ exports[`generator - sql microservice-jwt-mysql-reactive(false)-maven-enableTran
"src/main/java/tech/jhipster/config/SecurityJwtConfiguration.java": {
"stateCleared": "modified",
},
"src/main/java/tech/jhipster/config/SpringDocConfiguration.java": {
"stateCleared": "modified",
},
"src/main/java/tech/jhipster/config/WebConfigurer.java": {
"stateCleared": "modified",
},
Expand Down Expand Up @@ -2874,9 +2865,6 @@ exports[`generator - sql microservice-jwt-mysql-reactive(true)-gradle-enableTran
"src/main/java/com/mycompany/config/SecurityJwtConfiguration.java": {
"stateCleared": "modified",
},
"src/main/java/com/mycompany/config/SpringDocConfiguration.java": {
"stateCleared": "modified",
},
"src/main/java/com/mycompany/config/WebConfigurer.java": {
"stateCleared": "modified",
},
Expand Down Expand Up @@ -3122,9 +3110,6 @@ exports[`generator - sql microservice-jwt-oracle-reactive(false)-maven-enableTra
"src/main/java/tech/jhipster/config/SecurityJwtConfiguration.java": {
"stateCleared": "modified",
},
"src/main/java/tech/jhipster/config/SpringDocConfiguration.java": {
"stateCleared": "modified",
},
"src/main/java/tech/jhipster/config/WebConfigurer.java": {
"stateCleared": "modified",
},
Expand Down Expand Up @@ -3394,9 +3379,6 @@ exports[`generator - sql microservice-jwt-oracle-reactive(true)-gradle-enableTra
"src/main/java/com/mycompany/config/SecurityJwtConfiguration.java": {
"stateCleared": "modified",
},
"src/main/java/com/mycompany/config/SpringDocConfiguration.java": {
"stateCleared": "modified",
},
"src/main/java/com/mycompany/config/WebConfigurer.java": {
"stateCleared": "modified",
},
Expand Down Expand Up @@ -3630,9 +3612,6 @@ exports[`generator - sql microservice-jwt-postgresql-reactive(false)-maven-enabl
"src/main/java/tech/jhipster/config/SecurityJwtConfiguration.java": {
"stateCleared": "modified",
},
"src/main/java/tech/jhipster/config/SpringDocConfiguration.java": {
"stateCleared": "modified",
},
"src/main/java/tech/jhipster/config/WebConfigurer.java": {
"stateCleared": "modified",
},
Expand Down Expand Up @@ -3899,9 +3878,6 @@ exports[`generator - sql microservice-jwt-postgresql-reactive(true)-gradle-enabl
"src/main/java/com/mycompany/config/SecurityJwtConfiguration.java": {
"stateCleared": "modified",
},
"src/main/java/com/mycompany/config/SpringDocConfiguration.java": {
"stateCleared": "modified",
},
"src/main/java/com/mycompany/config/WebConfigurer.java": {
"stateCleared": "modified",
},
Expand Down Expand Up @@ -4147,9 +4123,6 @@ exports[`generator - sql microservice-oauth2-mariadb-reactive(false)-maven-enabl
"src/main/java/tech/jhipster/config/SecurityConfiguration.java": {
"stateCleared": "modified",
},
"src/main/java/tech/jhipster/config/SpringDocConfiguration.java": {
"stateCleared": "modified",
},
"src/main/java/tech/jhipster/config/WebConfigurer.java": {
"stateCleared": "modified",
},
Expand Down Expand Up @@ -4404,9 +4377,6 @@ exports[`generator - sql microservice-oauth2-mariadb-reactive(true)-gradle-enabl
"src/main/java/com/mycompany/config/SecurityConfiguration.java": {
"stateCleared": "modified",
},
"src/main/java/com/mycompany/config/SpringDocConfiguration.java": {
"stateCleared": "modified",
},
"src/main/java/com/mycompany/config/WebConfigurer.java": {
"stateCleared": "modified",
},
Expand Down Expand Up @@ -4640,9 +4610,6 @@ exports[`generator - sql microservice-oauth2-mssql-reactive(false)-maven-enableT
"src/main/java/tech/jhipster/config/SecurityConfiguration.java": {
"stateCleared": "modified",
},
"src/main/java/tech/jhipster/config/SpringDocConfiguration.java": {
"stateCleared": "modified",
},
"src/main/java/tech/jhipster/config/WebConfigurer.java": {
"stateCleared": "modified",
},
Expand Down Expand Up @@ -4897,9 +4864,6 @@ exports[`generator - sql microservice-oauth2-mssql-reactive(true)-gradle-enableT
"src/main/java/com/mycompany/config/SecurityConfiguration.java": {
"stateCleared": "modified",
},
"src/main/java/com/mycompany/config/SpringDocConfiguration.java": {
"stateCleared": "modified",
},
"src/main/java/com/mycompany/config/WebConfigurer.java": {
"stateCleared": "modified",
},
Expand Down Expand Up @@ -5145,9 +5109,6 @@ exports[`generator - sql microservice-oauth2-mysql-reactive(true)-gradle-enableT
"src/main/java/com/mycompany/config/SecurityConfiguration.java": {
"stateCleared": "modified",
},
"src/main/java/com/mycompany/config/SpringDocConfiguration.java": {
"stateCleared": "modified",
},
"src/main/java/com/mycompany/config/WebConfigurer.java": {
"stateCleared": "modified",
},
Expand Down Expand Up @@ -5399,9 +5360,6 @@ exports[`generator - sql microservice-oauth2-oracle-reactive(true)-gradle-enable
"src/main/java/com/mycompany/config/SecurityConfiguration.java": {
"stateCleared": "modified",
},
"src/main/java/com/mycompany/config/SpringDocConfiguration.java": {
"stateCleared": "modified",
},
"src/main/java/com/mycompany/config/WebConfigurer.java": {
"stateCleared": "modified",
},
Expand Down Expand Up @@ -5650,9 +5608,6 @@ exports[`generator - sql microservice-oauth2-postgresql-reactive(true)-gradle-en
"src/main/java/com/mycompany/config/SecurityConfiguration.java": {
"stateCleared": "modified",
},
"src/main/java/com/mycompany/config/SpringDocConfiguration.java": {
"stateCleared": "modified",
},
"src/main/java/com/mycompany/config/WebConfigurer.java": {
"stateCleared": "modified",
},
Expand Down

0 comments on commit 66a437a

Please sign in to comment.