Skip to content

Commit 89a2469

Browse files
committed
Temporary fix for broken build
x-pack/sql depends on lang-painless which depends on ASM 5.1 FeatureAwareCheck needs ASM 6 This is a hack to strip ASM5 from the classpath for FeatureAwareCheck
1 parent 4d7447c commit 89a2469

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

x-pack/plugin/build.gradle

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,9 @@ subprojects {
4343
final FileCollection classDirectories = project.files(files).filter { it.exists() }
4444

4545
doFirst {
46-
args('-cp', project.configurations.featureAwarePlugin.asPath, 'org.elasticsearch.xpack.test.feature_aware.FeatureAwareCheck')
46+
String cp = project.configurations.featureAwarePlugin.asPath
47+
cp = cp.replaceAll(":[^:]*/asm-debug-all-5.1.jar:", ":")
48+
args('-cp', cp, 'org.elasticsearch.xpack.test.feature_aware.FeatureAwareCheck')
4749
classDirectories.each { args it.getAbsolutePath() }
4850
}
4951
doLast {

0 commit comments

Comments
 (0)