Could not resolve all dependencies for configuration ':profile'. Type 'gradle dependencies' for more information.
This is due to mismatching profiles in grails (web,web-plugin etc.). By default, it is specified in application.yml
when we create grails 3 application. However, when we change from application.yml
file to application.groovy
, it would have been missed.
Just add this to application.groovy
,
grails{
profile = 'web-plugin'
codegen{
defaultPackage = 'any.package.name'
}
}
info{
app{
name = '@info.app.name@'
version = '@info.app.version@'
grailsVersion = '@info.app.grailsVersion@'
}
}
spring {
groovy{
template {
"check-template-location" = false
}
}
}