From 78b339a52bb04e486544b7b79f8d3955077b68a7 Mon Sep 17 00:00:00 2001 From: Nikolay Krasko Date: Wed, 15 Mar 2023 18:30:18 +0100 Subject: [PATCH] Fix configuration cache for Test Generation tasks It's not allowed `project` during the execution. But removing project doesn't change the result anyway. KTI-1092 --- buildSrc/src/main/kotlin/SmartJavaExec.kt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/buildSrc/src/main/kotlin/SmartJavaExec.kt b/buildSrc/src/main/kotlin/SmartJavaExec.kt index b91be3d349a..933c832c692 100644 --- a/buildSrc/src/main/kotlin/SmartJavaExec.kt +++ b/buildSrc/src/main/kotlin/SmartJavaExec.kt @@ -28,7 +28,9 @@ fun JavaExec.passClasspathInJar() { destinationDirectory.set(temporaryDir) doFirst { - val classPathString = classpath.joinToString(" ") { project.file(it).toURI().toString() } + val classPathString = classpath.joinToString(" ") { + it.toURI().toString() + } manifest { attributes( mapOf(