mirror of
https://gitee.com/dcren/initializr.git
synced 2025-11-28 17:32:34 +08:00
Prior to this commit, only spring boot starters can be added as project dependency using a simple String denoting the suffix of the artifactId. The standard 'org.springframework.boot' and 'spring-boot-starter-' artifactId prefix were assumed. This commit allows to define arbitrary dependencies with arbitrary identifiers; the groupId, artifactId and version of the dependency can be specified. Internally, all dependencies are converted to that format even the ones defined as standard spring boot starters. To allow that, a ProjectRequest is now resolved against the initializr metadata. If a request defines an unknown dependency, a simple String will be still considered a spring-boot-starter but a more complex unknown id will lead to an exception (e.g. 'org.foo:bar'). Fixes gh-17