mirror of
https://gitee.com/dcren/initializr.git
synced 2025-07-18 22:35:48 +08:00
Add default dependency if no spring-boot starters are added
This commit is contained in:
parent
736ef6d2fe
commit
d715066a5e
@ -174,7 +174,8 @@ class ProjectRequest {
|
|||||||
resolvedDependencies << metadata.dependencies.get('web')
|
resolvedDependencies << metadata.dependencies.get('web')
|
||||||
facets << '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()
|
addDefaultDependency()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user