By using jvmArgs instead of setJvmArgs we keep the jvmArgs that were configured on the Gradle task before.
This makes debugging Liquibase itself easier because it allows setting breakpoints in e.g. IntelliJ and simply enabling Gradle script debugging.
IntelliJ will populate jvmArgs with the (random) port where the JDWP server is listening.
Using setJvmArgs we overwrite this setting and debugging doesn't work.
By using
jvmArgs
instead ofsetJvmArgs
we keep thejvmArgs
that were configured on the Gradle task before.This makes debugging Liquibase itself easier because it allows setting breakpoints in e.g. IntelliJ and simply enabling Gradle script debugging. IntelliJ will populate jvmArgs with the (random) port where the JDWP server is listening.
Using
setJvmArgs
we overwrite this setting and debugging doesn't work.