title: TestNG with Cucumber Gradle, not able to overide cucumberoptions from command line
body: <p>IDE: IntelliJ
  Build Tool: Gradle
  Test Framework: TestNG with Cucumber</p>
  <p>I have CucumberOptions specified in my runner class.  I am looking to override it from command line and provide different tags.  So many videos and help i saw and followed but can't seem to make it work.  My project just contains gradle.properties file and no testng.xml or cucumber.xml file.  The command line i have been trying to use &gt;&gt;&gt;&gt; ./gradlew test -Dcucumber.options=&quot;--tags @something&quot;.  My runner class looks like this....</p>
  <pre><code>@CucumberOptions(tags = &quot;@nothing&quot;
          , features = {&quot;src/test/resources/features&quot;}
          , glue = &quot;steps&quot;
          , plugin = {&quot;pretty&quot;, &quot;json:target/cucumber-report.json&quot;})
  @Test
  public class TestRunner extends AbstractTestNGCucumberTests {
  
      @Override
      @DataProvider(parallel = true)
      public Object[][] scenarios() {
          return super.scenarios();
      }
  }
  </code></pre>
  <p>My build.gradle file looks like this.....</p>
  <pre><code>test {
      systemProperty &quot;cucumber.options&quot;, System.getProperty(&quot;cucumber.options&quot;)
      useTestNG()
      jvmArgs([&quot;-Ddataproviderthreadcount=${System.getProperty(&quot;threads&quot;)}&quot;,&quot;-Dcucumber.options=${System.getProperty(&quot;cucumber.options&quot;)}&quot;])
      scanForTestClasses = false
      testLogging.showStandardStreams = true
      systemProperties System.getProperties()
  
  }
  </code></pre>
  <p>What am i missing?  Hoping that someone with new set of eyes will see what i am not seeing.  Really appreciate whatever help i can get.</p>