Skip to content

Commit

Permalink
Fix bwc build issue on jdk17 (#520)
Browse files Browse the repository at this point in the history
Signed-off-by: penghuo <[email protected]>
  • Loading branch information
penghuo authored Mar 29, 2022
1 parent 69affa5 commit 2dbfc18
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions integ-test/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -189,8 +189,8 @@ task compileJdbc(type: Exec) {
String bwcVersion = "1.13.2.0";
String baseName = "sqlBwcCluster"
String bwcFilePath = "src/test/resources/bwc/"
String bwcOpenDistroPlugin = "opendistro-sql-1.13.2.0.zip"
String bwcRemoteFile = 'https://d3g5vo6xdbdb9a.cloudfront.net/downloads/elasticsearch-plugins/opendistro-sql/opendistro-sql-1.13.2.0.zip'
String bwcOpenDistroPlugin = "opendistro-sql-" + bwcVersion + ".zip"
String bwcRemoteFile = 'https://d3g5vo6xdbdb9a.cloudfront.net/downloads/elasticsearch-plugins/opendistro-sql/' + bwcOpenDistroPlugin

2.times { i ->
testClusters {
Expand All @@ -208,7 +208,7 @@ String bwcRemoteFile = 'https://d3g5vo6xdbdb9a.cloudfront.net/downloads/elastics
if (!dir.exists()) {
dir.mkdirs()
}
File f = new File(bwcOpenDistroPlugin, dir)
File f = new File(dir, bwcOpenDistroPlugin)
if (!f.exists()) {
new URL(bwcRemoteFile).withInputStream{ ins -> f.withOutputStream{ it << ins }}
}
Expand Down

0 comments on commit 2dbfc18

Please sign in to comment.