forked from spring-io/initializr
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Previously, if a user choose 'SpringBoot' or 'Spring' as the name of the project, the service will generate a `SpringBootApplication` or `SpringApplication` respectively. Both of which leads to a compilation failure since those names are already used in the current context. The generation of the application name based on the project's name have been moved to InitializrMetadata and two new properties have been introduced: * env.fallbackApplicationName defines the name of the application if the one that was generated was invalid for some reasons * env.invalidApplicationNames defines a list of application names that should flagged as invalid. When the current candidate is equal to one of them, the fallback should be used instead These properties have default values that prevent such issue to happen by default. Fixes spring-iogh-79
- Loading branch information
Showing
7 changed files
with
155 additions
and
127 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,7 @@ | ||
initializr: | ||
env: | ||
artifactRepository: https://repo.spring.io/lib-release | ||
forceSsl: false | ||
forceSsl: false | ||
fallbackApplicationName: FooBarApplication | ||
invalidApplicationNames: | ||
- InvalidApplication |