Use default and custom liquibase configurations in spring boot application
<p>I'd like to use two configurations of Liquibase in current project. The default configuration I'd like to use for DDL changes and second one for custom inserts where changelog will be in another location.</p>

<p>If I configure <code>SpringLiquibase</code> the default autoconfiguration will be skipped due to <code>@ConditionalOnClass(SpringLiquibase.class)</code> annotation in <code>LiquibaseAutoConfiguration</code> class. 
How can I use default autoconfiguration + my custom? Can I overwrite the @ConditionalOnClass annotation somehow? Or maybe is there way how to tell Liquibase that I have another changelog outside of application and run it only if it's present?</p>

<p>Thanks</p>

<p><strong>edit:</strong></p>

<p>This could be the solution for my problem, however I have problem with loading external files (files outside of classpath) in liquibase.</p>

<pre><code>@Configuration
@EnableConfigurationProperties(LiquibaseProperties.class)
public class LiquibaseConfiguration {

    @Bean
    SpringLiquibase liquibase(DataSource dataSource, LiquibaseProperties properties) {
        SpringLiquibase liquibase = new SpringLiquibase();
        liquibase.setChangeLog(properties.getChangeLog());
        liquibase.setContexts(properties.getContexts());
        liquibase.setDataSource(dataSource);
        liquibase.setDefaultSchema(properties.getDefaultSchema());
        liquibase.setDropFirst(properties.isDropFirst());
        liquibase.setShouldRun(properties.isEnabled());
        liquibase.setLabels(properties.getLabels());
        liquibase.setChangeLogParameters(properties.getParameters());
        liquibase.setRollbackFile(properties.getRollbackFile());
        return liquibase;
    }

    @Bean
    SpringLiquibase commandInitializerLiquibase(DataSource dataSource,
            @Value("${docu.system.initializer.command.liquibase.changeLog}") String changeLogPath,
            @Value("${docu.system.initializer.command.liquibase.contexts}") String contexts) {
        File changeLog = new File(changeLogPath);
        SpringLiquibase liquibase = new SpringLiquibase();
        liquibase.setDataSource(dataSource);
        liquibase.setContexts(contexts);
        liquibase.setIgnoreClasspathPrefix(true);
        liquibase.setChangeLog(changeLog.getAbsolutePath());
        liquibase.setShouldRun(changeLog.exists());
        //liquibase.setResourceLoader(liquibaseResourceLoader());
        addPathToClassloader(changeLogPath);
        return liquibase;
    }
}
</code></pre>