Skip to content

Instantly share code, notes, and snippets.

@deependhamecha
Last active April 16, 2016 11:34
Show Gist options
  • Save deependhamecha/91c9d1f54047a28b3fe7cd1fa35687dd to your computer and use it in GitHub Desktop.
Save deependhamecha/91c9d1f54047a28b3fe7cd1fa35687dd to your computer and use it in GitHub Desktop.
Grails 3 (Gradle) Profile Error

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
        }
    }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment