<commit_before>Feature: The Cucumber plugin and Gradle deprecations

  # Unless we automate the retrieval of Gradle latest version, this will have to be updated by hand
  Scenario: The Cucumber plugin should run without warning with Gradle v1.11
    Given I have a new Gradle project (wrapper v1.11) using Cucumber v1.1.6 for compile
    And I write "src/cucumber/resources/com/my/the.feature" as follows
      """
      Feature: Feature Name

        Scenario: Scenario Uno
          Given precondition A
          Then assertion B
      """
    And I write "src/cucumber/java/com/my/MyStepDefinitions.java" as follows
      """
      package com.my;

      import cucumber.api.java.en.*;

      public class MyStepDefinitions {
        @Given("^precondition A$")
        public void precondition_A() throws Throwable {
        }

        @Then("^assertion B$")
        public void assertion_B() throws Throwable {
        }
      }
      """
    When I successfully run Gradle with "cucumber"
    Then I shouldn't see "deprecated"<commit_msg>test coverage for Gradle v2.0 and Cucumber v1.1.8<commit_after>Feature: The Cucumber plugin and Gradle deprecations

  # Unless we automate the retrieval of Gradle latest version, this will have to be updated by hand
  @current
  Scenario Outline: The Cucumber plugin should run without warning with Gradle v<gradle version>
    Given I have a new Gradle project (wrapper v<gradle version>) using Cucumber v<cucumber version> for compile
    And I write "src/cucumber/resources/com/my/the.feature" as follows
      """
      Feature: Feature Name

        Scenario: Scenario Uno
          Given precondition A
          Then assertion B
      """
    And I write "src/cucumber/java/com/my/MyStepDefinitions.java" as follows
      """
      package com.my;

      import cucumber.api.java.en.*;

      public class MyStepDefinitions {
        @Given("^precondition A$")
        public void precondition_A() throws Throwable {
        }

        @Then("^assertion B$")
        public void assertion_B() throws Throwable {
        }
      }
      """
    When I successfully run Gradle with "cucumber"
    Then I shouldn't see "deprecated"

    Examples:
      | gradle version | cucumber version |
      | 1.12           | 1.1.6            |
      | 1.12           | 1.1.8            |
      | 2.0            | 1.1.6            |
      | 2.0            | 1.1.8            |
{'fraction_non_alphanumeric': 0.0803312629399586, 'fraction_numerical': 0.014906832298136646, 'mean_word_length': 2.14993481095176, 'pattern_counts': {'":': 0, '<': 6, '<?xml version=': 0, '>': 6, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 1, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6963379', 'n_tokens_mistral': 722, 'n_tokens_neox': 679, 'n_words': 236}