From 89a24698b1e60abc0d5021a02bbc4bc411fdc59c Mon Sep 17 00:00:00 2001 From: Tim Vernum Date: Thu, 14 Jun 2018 18:22:24 +1000 Subject: [PATCH] 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 --- x-pack/plugin/build.gradle | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/x-pack/plugin/build.gradle b/x-pack/plugin/build.gradle index ac423c42811..de4d3ada51a 100644 --- a/x-pack/plugin/build.gradle +++ b/x-pack/plugin/build.gradle @@ -43,7 +43,9 @@ subprojects { final FileCollection classDirectories = project.files(files).filter { it.exists() } doFirst { - args('-cp', project.configurations.featureAwarePlugin.asPath, 'org.elasticsearch.xpack.test.feature_aware.FeatureAwareCheck') + String cp = project.configurations.featureAwarePlugin.asPath + cp = cp.replaceAll(":[^:]*/asm-debug-all-5.1.jar:", ":") + args('-cp', cp, 'org.elasticsearch.xpack.test.feature_aware.FeatureAwareCheck') classDirectories.each { args it.getAbsolutePath() } } doLast {