import cucumber.api.junit.Cucumber
import org.junit.runner.RunWith

@RunWith(Cucumber)
@Cucumber.Options(
    format=["pretty", "html:build/reports/cucumber"],
    strict=true,
    features=["features"],
    glue=["src/functional/steps"],
    tags = ["~@ignore"]
)
class RunCukes {}

import cucumber.api.CucumberOptions
import cucumber.api.junit.Cucumber
import org.junit.runner.RunWith

@RunWith(Cucumber)
@CucumberOptions(
    format=["pretty", "html:build/reports/cucumber"],
    strict=true,
    features=["features"],
    glue=["src/functional/steps"],
    tags = ["~@ignore"]
)
class RunCukes {}

Use Cucumber Options instead of Cucumber.Options annotation.
Use Cucumber Options instead of Cucumber.Options annotation.
