Skip to content

Commit 7635f42

Browse files
committed
Pin bouncy castle for ADBC test. This is to address the build failure of:
Execution failed for task ':extensions-flight-sql:compileAdbcTestJava'. > Could not resolve all files for configuration ':extensions-flight-sql:adbcTestCompileClasspath'. > Could not resolve org.bouncycastle:bcutil-jdk18on:[1.80,1.81). Required by: project :extensions-flight-sql > org.apache.arrow.adbc:adbc-driver-flight-sql:0.23.0 > org.apache.arrow:flight-sql-jdbc-core:18.3.0 > org.bouncycastle:bcpkix-jdk18on:1.80 > Could not resolve org.bouncycastle:bcutil-jdk18on:[1.80,1.81): Resolution strategy disallows usage of dynamic versions > Could not resolve org.bouncycastle:bcprov-jdk18on:[1.80,1.81). Required by: project :extensions-flight-sql > org.apache.arrow.adbc:adbc-driver-flight-sql:0.23.0 > org.apache.arrow:flight-sql-jdbc-core:18.3.0 > org.bouncycastle:bcpkix-jdk18on:1.80 > org.bouncycastle:bcutil-jdk18on:1.80 > Could not resolve org.bouncycastle:bcprov-jdk18on:[1.80,1.81): Resolution strategy disallows usage of dynamic versions
1 parent 7dfbe0b commit 7635f42

2 files changed

Lines changed: 12 additions & 0 deletions

File tree

extensions/flight-sql/build.gradle

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,12 @@ dependencies {
5959
// grpc://localhost:10000
6060
adbcTestImplementation project(':server-jetty')
6161
adbcTestImplementation libs.adbc.flight.sql
62+
// The BouncyCastle provider must be pinned to a particular version, because otherwise we end up with a dynamic
63+
// range "org.bouncycastle:bcprov-jdk18on:[1.80,1.81)" from org.apache.arrow:flight-sql-jdbc-core:18.3.0 which is
64+
// not permitted by our build.
65+
adbcTestImplementation libs.bcprov.jdk18on
66+
adbcTestImplementation libs.bcutil.jdk18on
67+
adbcTestImplementation libs.bcpkix.jdk18on
6268

6369
adbcTestImplementation project(':server-test-utils')
6470
adbcTestAnnotationProcessor libs.dagger.compiler

gradle/libs.versions.toml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ avro = "1.12.1"
77
awssdk = "2.29.52"
88
aws-s3-tables-catalog-for-iceberg = "0.1.8"
99

10+
bouncycastle = "1.81"
11+
1012
# Note: when bumping Calcite version, see if we still need the version constraint for json-smart
1113
calcite = "1.41.0"
1214
json-smart = "2.5.2"
@@ -133,6 +135,10 @@ awssdk-sso = { module = "software.amazon.awssdk:sso" }
133135
awssdk-ssooidc = { module = "software.amazon.awssdk:ssooidc" }
134136
awssdk-netty-nio = { module = "software.amazon.awssdk:netty-nio-client" }
135137

138+
bcprov-jdk18on = { module = "org.bouncycastle:bcprov-jdk18on", version.ref = "bouncycastle" }
139+
bcutil-jdk18on = { module = "org.bouncycastle:bcutil-jdk18on", version.ref = "bouncycastle" }
140+
bcpkix-jdk18on = { module = "org.bouncycastle:bcpkix-jdk18on", version.ref = "bouncycastle" }
141+
136142
s3-tables-catalog-for-iceberg = { module = "software.amazon.s3tables:s3-tables-catalog-for-iceberg", version.ref = "aws-s3-tables-catalog-for-iceberg" }
137143

138144
calcite-core = { module = "org.apache.calcite:calcite-core", version.ref = "calcite" }

0 commit comments

Comments
 (0)