Gradle 7.0 Configuration with name 'testCompile' not found.

I upgraded my javafx application from java 13 to openjdk 16 and gradle 6.1.1 to gradle 7.0
As testCompile configuration is no more available,I am using testImplementation

Expected Behavior


Current Behavior

Task :compileTestJava FAILED

FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ‘:compileTestJava’.

Configuration with name ‘testCompile’ not found.

workaround I found

When I declared testCompile configuration it worked fine.
configurations {

Your Environment

Gradle 7.0

Build time: 2021-04-09 22:27:31 UTC
Revision: d5661e3f0e07a8caff705f1badf79fb5df8022c4

Kotlin: 1.4.31
Groovy: 3.0.7
Ant: Apache Ant™ version 1.10.9 compiled on September 27 2020
JVM: 16 (Oracle Corporation 16+36-2231)
OS: Windows 10 10.0 amd64