Skip to content

Commit

Permalink
Temporary fix for broken build
Browse files Browse the repository at this point in the history
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
  • Loading branch information
tvernum committed Jun 14, 2018
1 parent 4d7447c commit 89a2469
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion x-pack/plugin/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 89a2469

Please sign in to comment.