zonkyio / embedded-database-spring-test

A library for creating isolated embedded databases for Spring-powered integration tests.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Dependency error with org.testcontainers:testcontainers:1.17.1

blandir opened this issue · 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?

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.