Skip to content

Commit

Permalink
remove LocaleConfiguration
Browse files Browse the repository at this point in the history
remove LocaleConfiguration due to be a leftover from angularjs

Fix #20106
  • Loading branch information
shrralis committed Apr 29, 2024
1 parent 7cf3c1f commit b837857
Show file tree
Hide file tree
Showing 13 changed files with 4 additions and 553 deletions.
12 changes: 0 additions & 12 deletions generators/server/__snapshots__/generator.spec.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,6 @@ exports[`generator - server composing databaseType option no with jwt should mat
"src/main/java/com/mycompany/myapp/config/JacksonConfiguration.java": {
"stateCleared": "modified",
},
"src/main/java/com/mycompany/myapp/config/LocaleConfiguration.java": {
"stateCleared": "modified",
},
"src/main/java/com/mycompany/myapp/config/LoggingAspectConfiguration.java": {
"stateCleared": "modified",
},
Expand Down Expand Up @@ -289,9 +286,6 @@ exports[`generator - server composing databaseType option no with oauth2 should
"src/main/java/com/mycompany/myapp/config/JacksonConfiguration.java": {
"stateCleared": "modified",
},
"src/main/java/com/mycompany/myapp/config/LocaleConfiguration.java": {
"stateCleared": "modified",
},
"src/main/java/com/mycompany/myapp/config/LoggingAspectConfiguration.java": {
"stateCleared": "modified",
},
Expand Down Expand Up @@ -525,9 +519,6 @@ exports[`generator - server composing databaseType option no with session should
"src/main/java/com/mycompany/myapp/config/JacksonConfiguration.java": {
"stateCleared": "modified",
},
"src/main/java/com/mycompany/myapp/config/LocaleConfiguration.java": {
"stateCleared": "modified",
},
"src/main/java/com/mycompany/myapp/config/LoggingAspectConfiguration.java": {
"stateCleared": "modified",
},
Expand Down Expand Up @@ -815,9 +806,6 @@ exports[`generator - server with entities should match files snapshot 1`] = `
"src/main/java/com/mycompany/myapp/config/LiquibaseConfiguration.java": {
"stateCleared": "modified",
},
"src/main/java/com/mycompany/myapp/config/LocaleConfiguration.java": {
"stateCleared": "modified",
},
"src/main/java/com/mycompany/myapp/config/LoggingAspectConfiguration.java": {
"stateCleared": "modified",
},
Expand Down
3 changes: 0 additions & 3 deletions generators/server/support/__snapshots__/needles.spec.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -113,9 +113,6 @@ exports[`generator - server - support - needles generated project should match s
"src/main/java/com/mycompany/myapp/config/JacksonConfiguration.java": {
"stateCleared": "modified",
},
"src/main/java/com/mycompany/myapp/config/LocaleConfiguration.java": {
"stateCleared": "modified",
},
"src/main/java/com/mycompany/myapp/config/LoggingAspectConfiguration.java": {
"stateCleared": "modified",
},
Expand Down

This file was deleted.

This file was deleted.

6 changes: 0 additions & 6 deletions generators/spring-boot/__snapshots__/generator.spec.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,6 @@ exports[`generator - spring-boot with jwt should match generated files snapshot
"src/main/java/com/mycompany/myapp/config/JacksonConfiguration.java": {
"stateCleared": "modified",
},
"src/main/java/com/mycompany/myapp/config/LocaleConfiguration.java": {
"stateCleared": "modified",
},
"src/main/java/com/mycompany/myapp/config/LoggingAspectConfiguration.java": {
"stateCleared": "modified",
},
Expand Down Expand Up @@ -427,9 +424,6 @@ exports[`generator - spring-boot with oauth2 should match generated files snapsh
"src/main/java/com/mycompany/myapp/config/JacksonConfiguration.java": {
"stateCleared": "modified",
},
"src/main/java/com/mycompany/myapp/config/LocaleConfiguration.java": {
"stateCleared": "modified",
},
"src/main/java/com/mycompany/myapp/config/LoggingAspectConfiguration.java": {
"stateCleared": "modified",
},
Expand Down
4 changes: 4 additions & 0 deletions generators/spring-boot/cleanup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -204,4 +204,8 @@ export default asWritingTask(function cleanupTask(this, taskParam) {
this.removeFile('gradle/sonar.gradle');
}
}

if (this.isJhipsterVersionLessThan('8.4.0')) {
this.removeFile(`${application.javaPackageSrcDir}config/LocaleConfiguration.java`);
}
});
5 changes: 0 additions & 5 deletions generators/spring-boot/files.ts
Original file line number Diff line number Diff line change
Expand Up @@ -423,11 +423,6 @@ export const baseServerFiles = {
renameTo: moveToJavaPackageSrcDir,
templates: ['config/Constants.java'],
},
{
path: `${SERVER_MAIN_SRC_DIR}_package_/`,
renameTo: moveToJavaPackageSrcDir,
templates: [data => `config/LocaleConfiguration_${data.imperativeOrReactive}.java`],
},
],
serverJavaDomain: [
{
Expand Down
Loading

0 comments on commit b837857

Please sign in to comment.