From 77dcaa8435a411a1fe83aa8e9fefc25f0d6b825d Mon Sep 17 00:00:00 2001 From: Gareth Coles Date: Thu, 5 Oct 2023 18:09:27 +0100 Subject: [PATCH] CI: Try depending on task output --- plugins/plugin-load-test/build.gradle.kts | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/plugins/plugin-load-test/build.gradle.kts b/plugins/plugin-load-test/build.gradle.kts index 83c00e247e..bfb3384a2c 100644 --- a/plugins/plugin-load-test/build.gradle.kts +++ b/plugins/plugin-load-test/build.gradle.kts @@ -46,15 +46,13 @@ val copyTestJars = tasks.register("copyTestJars") { val root = rootProject.rootDir val pluginDir = root.resolve("plugins/plugin-load-test/tmp/plugins") - val testOneJar = root.resolve("plugins/test-plugin-1/build/libs") - .listFiles() - ?.first { + val testOneJar = project(":plugins:test-plugin-1").tasks.jar.get().outputs.files + .first { it.name.matches(matchRegex) } - val testTwoJar = root.resolve("plugins/test-plugin-2/build/libs") - .listFiles() - ?.first { + val testTwoJar = project(":plugins:test-plugin-2").tasks.jar.get().outputs.files + .first { it.name.matches(matchRegex) }