From e54877a7ab68d6ad87f32d951ec94ed428279d55 Mon Sep 17 00:00:00 2001 From: RedNesto Date: Tue, 30 Jul 2024 15:04:03 +0200 Subject: [PATCH] Add testLibs system properties directly in the task configuration This fixes a configuration cache error and works the same. The last config cache issue seems to be from the licenser plugin, which is already fixed in master but not released yet -_- --- build.gradle.kts | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/build.gradle.kts b/build.gradle.kts index cce2ac752..ced14b1b5 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -296,10 +296,9 @@ tasks.processResources { tasks.test { dependsOn(tasks.jar, testLibs) useJUnitPlatform() - doFirst { - testLibs.resolvedConfiguration.resolvedArtifacts.forEach { - systemProperty("testLibs.${it.name}", it.file.absolutePath) - } + + testLibs.resolvedConfiguration.resolvedArtifacts.forEach { + systemProperty("testLibs.${it.name}", it.file.absolutePath) } systemProperty("NO_FS_ROOTS_ACCESS_CHECK", "true") systemProperty("java.awt.headless", "true")