From 26a05c51337e6b25a271a0b7312a581bc732cf76 Mon Sep 17 00:00:00 2001 From: Alexey Tsvetkov <654232+AlexeyTsvetkov@users.noreply.github.com> Date: Tue, 26 Oct 2021 11:46:27 +0300 Subject: [PATCH] Add jar with embedded dependencies to test runtime classpath (#1313) --- gradle-plugins/compose/build.gradle.kts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gradle-plugins/compose/build.gradle.kts b/gradle-plugins/compose/build.gradle.kts index 3350930d39..47997dbe2c 100644 --- a/gradle-plugins/compose/build.gradle.kts +++ b/gradle-plugins/compose/build.gradle.kts @@ -96,6 +96,8 @@ val isWindows = getCurrentOperatingSystem().isWindows val gradleTestsPattern = "org.jetbrains.compose.gradle.*" tasks.test { + dependsOn(jar) + classpath = project.files(jar.map { it.archiveFile }) + classpath filter { excludeTestsMatching(gradleTestsPattern) }