From d741aaf82f742c3efebfcb4772d797e9c80d8135 Mon Sep 17 00:00:00 2001 From: Yan Zhulanow Date: Fri, 25 Feb 2022 19:00:05 +0900 Subject: [PATCH] Fix pattern for filtering out services in compiler-tests-for-ide The original pattern wasn't enough for matching all files in the 'META-INF/services' directory, especially the 'TestExecutionListener' service registration that breaks tearDown() in JUnit5 tests in IDE. --- buildSrc/src/main/kotlin/artifacts.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/buildSrc/src/main/kotlin/artifacts.kt b/buildSrc/src/main/kotlin/artifacts.kt index 17319dfbb8b..ca91bda235e 100644 --- a/buildSrc/src/main/kotlin/artifacts.kt +++ b/buildSrc/src/main/kotlin/artifacts.kt @@ -225,7 +225,7 @@ fun Project.publishTestJarsForIde(projectNames: List) { idePluginDependency { // Compiler test infrastructure should not affect test running in IDE. // If required, the components should be registered on the IDE plugin side. - val excludedPaths = listOf("junit-platform.properties", "META-INF/services") + val excludedPaths = listOf("junit-platform.properties", "META-INF/services/**/*") publishTestJar(projectNames, excludedPaths) } configurations.all {