title: Gradle cannot find testCompile despite the fact I added java plugin
body: <p>since a few days tests in Jenkins are being canceled. The error I got in there is:</p>
  <p>A problem occurred configuring root project 'MyAutomationTests'.</p>
  <blockquote>
  <p>Configuration with name 'testCompile' not found.</p>
  </blockquote>
  <p>This is my build.gradle file:</p>
  <pre><code>buildscript {
      repositories {
          jcenter()
      }
      dependencies {
          classpath &quot;io.qameta.allure:allure-gradle:2.3&quot;
  
      }
  }
  
  group 'xyz'
  version '1.0-SNAPSHOT'
  
  apply plugin: 'io.qameta.allure'
  
  repositories {
      mavenCentral()
  }
  
  
  def props = new Properties()
  file(&quot;testsConfig.properties&quot;).withInputStream { props.load(it) }
  
  allure {
      version = '2.4.1'
      aspectjweaver = true
      autoconfigure = true
      resultsDir = file(props.getProperty(&quot;projectPath&quot;)+'/allure-results')
      reportDir = file('raport/allure-results')
      clean
  }
  
  apply plugin: 'java'
  apply plugin: 'idea'
  sourceCompatibility = 1.8
  
  subprojects {
      dependencies {
          testCompile 'junit:junit:4.12'
          testCompile 'io.appium:java-client:7.0.0'
          testCompile 'org.assertj:asertj-core:3.12.2'
          testCompile 'org.testng:testng:6.14.3'
          testCompile 'io.qameta.allure:allure-testng:2.13.1'
          testCompile 'log4j:log4j:1.2.17'
          testCompile 'com.jcabi:jcabi-log:0.17.2'
          testCompile 'org.slf4j:slf4j-log4j12:1.7.30'
          testCompile 'org.testobject:testobject-appium-java-api:0.1.14'
          testCompile 'io.rest-assured:rest-assured:4.3.2'
      }
  
  }
  
  test {
      System.setProperty(&quot;log4j.defaultInitOverride&quot;, &quot;false&quot;)
      dependsOn cleanTest
      test.testLogging.showStandardStreams = false
      useTestNG() {
          systemProperties(props)
          systemProperties = System.getProperties()
          options.suites(&quot;src/test/resources/testng.xml&quot;)
      }
  }
  </code></pre>
  <p>Our automatic tests in Jenkins were working fine until a few days ago. Since then they do not compile with error given on the very beginning of this issue. There was 'implementation group' in the dependencies block of code but I recently changed it to testCompile. 'implementation group' was working just fine but it started to pop out error with the testCompile. In my understanding after I apply java plugin to the dependencies the configuration should be there but somehow it does not work.</p>
  <p>What I tried:</p>
  <ol>
  <li>Tried to manuver with testCompile() or testImplementation, testImplementation group etc, also changed name convention from  'junit', name: 'junit', version: '4.12' to the version that it is there right now.</li>
  <li>Applied idea plugin</li>
  <li>Applied java plugin in the very top of the gradle build</li>
  <li>Changed testCompile to testImplementation</li>
  <li>Applied java plugin in every block of code (primitive but I ran out of ideas)</li>
  <li>Updated dependencies in our project</li>
  </ol>
  <p>I can see it uses /path/to/.gradle/daemon/7.0 but receive information on the end: Deprecated Gradle features were used in this build, making it incompatible with Gradle 8.0 however I do not suppose the Gradle itself is a problem. Before we had an gradle 7.0 and it was working perfectly fine with the given confioguration and it was always popping the same error.</p>
  <p>Please help if it is possible.</p>
  <p>Regards</p>