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
This commit is contained in:
Tim Vernum 2018-06-14 18:22:24 +10:00
parent 4d7447cb5e
commit 89a24698b1
1 changed files with 3 additions and 1 deletions

View File

@ -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 {