Skip to content

Commit 8305332

Browse files
committed
SQL: Fix build on Java 10
Due to a runtime classpath clash, featureAware task was failing on JVMs higher than 1.8 (since the ASM version from Painless was used instead which does not recognized Java 9 or 10 bytecode) causing the task to fail. This commit excludes the ASM dependency (since it's not used by SQL itself).
1 parent 0bf50b2 commit 8305332

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

x-pack/plugin/sql/build.gradle

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,10 @@ integTest.enabled = false
2020

2121
dependencies {
2222
compileOnly "org.elasticsearch.plugin:x-pack-core:${version}"
23-
compileOnly project(':modules:lang-painless')
23+
compileOnly(project(':modules:lang-painless')) {
24+
// exclude ASM to not affect featureAware task on Java 10+
25+
exclude group: "org.ow2.asm"
26+
}
2427
compile project('sql-proto')
2528
compile "org.elasticsearch.plugin:aggs-matrix-stats-client:${version}"
2629
compile "org.antlr:antlr4-runtime:4.5.3"

0 commit comments

Comments
 (0)