mirror of
https://gitee.com/dcren/initializr.git
synced 2025-09-19 18:22:26 +08:00
Add default dependency if no spring-boot starters are added
This commit is contained in:
@@ -174,7 +174,8 @@ class ProjectRequest {
|
||||
resolvedDependencies << metadata.dependencies.get('web')
|
||||
facets << 'web'
|
||||
}
|
||||
if (resolvedDependencies.isEmpty()) {
|
||||
if (!resolvedDependencies.find { it.artifactId.startsWith('spring-boot-starter') }) {
|
||||
// There's no spring-boot-* dependency so we add the default one
|
||||
addDefaultDependency()
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user