You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi! I've just upgraded my testcontainers for postgres from 1.6.0 to 1.7.1 and there is problem with resolving commons-io and commons-lang dependencies wich are required in testcontainers.
They are shaded in build.gradle of testcontainers, so I have:
Caused by: java.lang.NoClassDefFoundError: org/apache/commons/io/IOUtils at org.testcontainers.jdbc.ContainerDatabaseDriver.runInitScriptIfRequired(ContainerDatabaseDriver.java:234) at org.testcontainers.jdbc.ContainerDatabaseDriver.connect(ContainerDatabaseDriver.java:158) at com.zaxxer.hikari.util.DriverDataSource.getConnection(DriverDataSource.java:117) at com.zaxxer.hikari.util.DriverDataSource.getConnection(DriverDataSource.java:123)
If I add these deps in my pom, problem is solved.
Why are these deps shaded?
The text was updated successfully, but these errors were encountered:
Hi @eksd,
Thanks for reporting this one, nice catch!
We shade our internal dependencies (e.g. utils), but apparently the shading was only applied to the main module.
I've submitted a PR with a fix, will be released soon 👍
This fixes build failures on Travis-CI.
There is an additional test depency to apache commons necessary due to a bug in the testcontainers version.
See also: testcontainers/testcontainers-java#656
Hi! I've just upgraded my testcontainers for postgres from 1.6.0 to 1.7.1 and there is problem with resolving commons-io and commons-lang dependencies wich are required in testcontainers.
They are shaded in build.gradle of testcontainers, so I have:
Caused by: java.lang.NoClassDefFoundError: org/apache/commons/io/IOUtils at org.testcontainers.jdbc.ContainerDatabaseDriver.runInitScriptIfRequired(ContainerDatabaseDriver.java:234) at org.testcontainers.jdbc.ContainerDatabaseDriver.connect(ContainerDatabaseDriver.java:158) at com.zaxxer.hikari.util.DriverDataSource.getConnection(DriverDataSource.java:117) at com.zaxxer.hikari.util.DriverDataSource.getConnection(DriverDataSource.java:123)
If I add these deps in my pom, problem is solved.
Why are these deps shaded?
The text was updated successfully, but these errors were encountered: