From 2872282d75e62fb560a6f7a5e053c52cf72c2ffe Mon Sep 17 00:00:00 2001 From: Sam Brannen Date: Mon, 26 Sep 2022 14:21:49 +0200 Subject: [PATCH] Ensure Kotlin JMH folder is imported as test folder in Eclipse Commit 9a180d1811866b2abe8c2888cf7a3439d965c800 introduced Kotlin-based JMH benchmarks which prevent spring-beans from being imported into the Eclipse IDE. This commit ensures that src/jmh/kotlin is imported in Eclipse with the "test" attribute set. See gh-24104 --- gradle/ide.gradle | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gradle/ide.gradle b/gradle/ide.gradle index 71a03ad6884..09235f2c61e 100644 --- a/gradle/ide.gradle +++ b/gradle/ide.gradle @@ -64,7 +64,7 @@ eclipse.classpath.file.whenMerged { // so that they can see test fixtures. // https://github.com/melix/jmh-gradle-plugin/issues/157 eclipse.classpath.file.whenMerged { - entries.findAll { it.path =~ /src\/jmh\/(java|resources)/ }.each { + entries.findAll { it.path =~ /src\/jmh\/(java|kotlin|resources)/ }.each { it.entryAttributes['test'] = 'true' } }