mirror of
https://gitee.com/dcren/initializr.git
synced 2025-09-20 10:38:12 +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')
|
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()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user