From 7f65cf2bfe2acd8d86773651527e2371492422db Mon Sep 17 00:00:00 2001 From: Vladimir Sitnikov Date: Wed, 24 Mar 2021 10:12:17 +0300 Subject: [PATCH] Repalce testRuntime with runtimeElements and testRuntimeClasspath for Gradle 7 compatibility --- build.gradle.kts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/build.gradle.kts b/build.gradle.kts index 138a39108b32..a0d2ca6d4aa3 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -790,7 +790,10 @@ allprojects { } val testClasses by configurations.creating { - extendsFrom(configurations["testRuntime"]) + isCanBeConsumed = true + isCanBeResolved = false + extendsFrom(configurations["runtimeElements"]) + extendsFrom(configurations["testRuntimeClasspath"]) } val archives by configurations.getting