Browse Source

Ensure Kotlin JMH folder is imported as test folder in Eclipse

Commit 9a180d1811 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
pull/28984/head
Sam Brannen 2 years ago
parent
commit
2872282d75
  1. 2
      gradle/ide.gradle

2
gradle/ide.gradle

@ -64,7 +64,7 @@ eclipse.classpath.file.whenMerged { @@ -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'
}
}

Loading…
Cancel
Save