Skip to content

Commit 2d63bcd

Browse files
committed
Add derbytools dependency for testLatestDeps
In Derby 10.17.1.0+, the JDBC driver classes (including EmbeddedDriver) were moved from the main derby artifact to the derbytools artifact. When testLatestDeps=true, Derby gets upgraded to the latest version, causing NoClassDefFoundError for EmbeddedDriver. Adding derbytools as a testLibrary dependency ensures the driver classes are available in both regular and latest-deps test runs.
1 parent 9d2feb2 commit 2d63bcd

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

instrumentation/jdbc/library/build.gradle.kts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ dependencies {
1616

1717
testLibrary("com.h2database:h2:1.3.169")
1818
testLibrary("org.apache.derby:derby:10.6.1.0") // first version jdk 1.6 compatible
19+
testLibrary("org.apache.derby:derbytools:10.6.1.0")
1920
testLibrary("org.hsqldb:hsqldb:2.0.0")
2021

2122
testLibrary("org.apache.tomcat:tomcat-jdbc:7.0.19")

0 commit comments

Comments
 (0)