Changed path on build in IDEA cause reapply all migrations

Description

Liquibase tends to distinct files by full path in a project which causes a problem if build path is different for example IntelliJ add

out/production/resources/'

when it runs in DEBUG. Which cause different path and recognized as 'new' changesets all dynamically included files

<includeAll path="changesets" relativeToChangelogFile="true"/>

In liquibase-core-3.6.2-sources.jar!/liquibase/integration/spring/SpringLiquibase.java:533 It will be resolved with this prefix after classpath:/ so instead of

database/changesets/

I'll have

out/production/resources/database/changesets

Which caused reapplying everything once again and fail on restrictions. Is it somehow possible save only 'relative' part of the path? Like liquidbase know about 'changesets' dir and can start to save migration files from this point but not by full path in the project?

Environment

IDEA 2018.2.3 JDK 9 linux

Activity

Show:

Details

Reporter

Components

Affects versions

Priority

Created September 20, 2018 at 7:18 AM
Updated September 20, 2018 at 7:18 AM