Today we are going to learn initial setup step for cucumber functional automated testing in grails.
Add these lines of code in BuildConfig.groovy
Inside plugin use this line.

plugins{
test ":cucumber:0.8.0"
}

Inside dependency use this line.

dependencies {
compile "org.seleniumhq.selenium:selenium-chrome-driver:2.3.0"
compile "org.seleniumhq.selenium:selenium-firefox-driver:2.39.0"
}

Now we have to create a package inside test folder named as cucumber.You can use any name as your wish but it is good to give name as cucumber or gherkin.
And we have create a cucumberConfig.groovy file in config.
Create path to folder that is created inside test folder using this line inside cucumberConfig.groovy

cucumber {
    features = ["test/cucumber"]
    glue = features
}

Now we have completed all the initial setup for running our first cucumber functional automated test.