embedded-database-spring-test icon indicating copy to clipboard operation
embedded-database-spring-test copied to clipboard

Dependency error with org.testcontainers:testcontainers:1.17.1

Open blandir opened this issue 2 years ago • 1 comments

Hello,

I tried to upgrade to org.testcontainers:postgresql:1.17.1 today. Now builds fail with

UsagesRestControllerTest > initializationError FAILED
    java.lang.IllegalStateException at DefaultCacheAwareContextLoaderDelegate.java:132
        Caused by: org.springframework.beans.factory.BeanCreationException at ConstructorResolver.java:658
            Caused by: org.springframework.beans.BeanInstantiationException at SimpleInstantiationStrategy.java:185
                Caused by: io.zonky.test.db.shaded.com.google.common.util.concurrent.ExecutionError at Futures.java:1564
                    Caused by: java.lang.NoClassDefFoundError at MigrateFlywayDatabasePreparer.java:83
                        Caused by: java.lang.ClassNotFoundException at MigrateFlywayDatabasePreparer.java:83

MigrateFlywayDatabasePreparer.java:83 uses org.testcontainers.shaded.org.apache.commons.lang.StringUtils but org.testcontainers:testcontainers:1.17.1 now includes the Apache Commons lang3package instead of the lang package.

Could you please provide a new version with updated dependencies?

blandir avatar May 02 '22 10:05 blandir

Hi @blandir, thanks for the report. I'll take a look at it at the weekend and try to fix it as soon as possible.

tomix26 avatar May 02 '22 18:05 tomix26