title: Deprecated Gradle features were used in this build, making it incompatible with Gradle 5.0
body: <p>I've got a gradle FAILURE:</p>
  
  <pre><code>..."Deprecated Gradle features were used in this build, making it incompatible with Gradle 5.0."
  </code></pre>
  
  <p>Case description:</p>
  
  <ul>
  <li>Attached to the project codebase the next libs:</li>
  </ul>
  
  <p><strong>APP/build.gradle</strong></p>
  
  <pre><code>    //(Required) Writing and executing Unit Tests on the JUnit Platform 
  testImplementation "org.junit.jupiter:junit-jupiter-api:5.2.0"
  testRuntimeOnly "org.junit.jupiter:junit-jupiter-engine:5.2.0"
      // (Optional) If you need "Parameterized Tests"
  testImplementation "org.junit.jupiter:junit-jupiter-params:5.2.0"
      // (Optional) If you also have JUnit 4-based tests
  testImplementation "junit:junit:4.12"
  testRuntimeOnly "org.junit.vintage:junit-vintage-engine:5.2.0"
  
  testImplementation "io.mockk:mockk:1.8.5"
  </code></pre>
  
  <ul>
  <li><p>Updated the <strong>gradle-wrapper.properties</strong></p>
  
  <p>distributionUrl=https....gradle-<strong>4.4-all</strong>.zip to <strong>4.7-all</strong></p></li>
  <li><p>after all of that gradle was built success</p></li>
  <li><p>created the test calss</p>
  
  <pre><code>@TestInstance(TestInstance.Lifecycle.PER_CLASS)
    class TestClass {
  
    @Test
    internal fun testName() {
      Assert.assertEquals(2, 1 + 1)
    }
  }
  </code></pre></li>
  <li><p>ran the test and got the FAILURE message.
  <a href="https://i.stack.imgur.com/7nZ04.png" rel="noreferrer"><img src="https://i.stack.imgur.com/7nZ04.png" alt="enter image description here"></a></p></li>
  <li><p>ran the Gradle build with a command line argument <code>./gradlew --warning-mode=all</code> to see what exactly the deprecated features are.
  <a href="https://i.stack.imgur.com/TxV5L.png" rel="noreferrer"><img src="https://i.stack.imgur.com/TxV5L.png" alt="enter image description here"></a></p></li>
  </ul>
  
  <p>As a result I couldn't build the app and I've got that FAILURE: message.</p>