This repository was archived by the owner on Apr 8, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
src/main/groovy/org/grails/plugins/databasemigration/liquibase Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -21,9 +21,9 @@ import liquibase.database.Database
2121import liquibase.exception.DatabaseException
2222import liquibase.exception.LiquibaseException
2323import liquibase.integration.spring.SpringLiquibase
24- import liquibase.resource.ClassLoaderResourceAccessor
2524import liquibase.resource.ResourceAccessor
2625import org.springframework.context.ApplicationContext
26+ import org.springframework.core.io.DefaultResourceLoader
2727
2828import java.sql.Connection
2929
@@ -42,11 +42,12 @@ class GrailsLiquibase extends SpringLiquibase {
4242
4343 GrailsLiquibase (ApplicationContext applicationContext ) {
4444 this . applicationContext = applicationContext
45+ this . resourceLoader = new DefaultResourceLoader ()
4546 }
4647
4748 @Override
4849 protected Liquibase createLiquibase (Connection connection ) throws LiquibaseException {
49- Liquibase liquibase = new Liquibase (getChangeLog(), new ClassLoaderResourceAccessor (), createDatabase
50+ Liquibase liquibase = new Liquibase (getChangeLog(), createResourceOpener (), createDatabase
5051 (connection, null ))
5152 liquibase. setIgnoreClasspathPrefix(isIgnoreClasspathPrefix())
5253 if (parameters != null ) {
You can’t perform that action at this time.
0 commit comments