Make Liquibase AutoCloseable

Description

Hi,

I am working on the Liquibase extension for the QuarkusIO framework.
Liquibase extension PR: quarkusio/quarkus#6334
For better integration and handling of the database connection it would be much better if the liquibase.Liquibase implements AutoClosable interface.

public class Liquibase implements AutoCloseable {
@Override
public void close() throws Exception {
if (database != null) {
database.close();
}
}
}
Would it suit you?

Liquibase PR: https://github.com/liquibase/liquibase/pull/978

Regards,
Andrej

Environment

All systems

Reporter

Andrej Petras

Components

Affects versions

Priority

Major
Configure