Allow disabling shouldRun configuration via CDI integration

Description

As a liquibase-cdi user,
I want to disable the shouldRun flag via the CDI integration,
so that I can disable Liquibase via internal or external application configs.

Allowing user-programmers to disable Liquibase runs via the built-in CDI integration is a convenience to our development, testing & deployment practices, because it enables implementers to provide the shouldRun flag via their own application configurations, e.g., MicroProfile Config, Typesafe Config, etc.

For example, when using Hammock's Flyway module, we can install the following properties file in src/test/resources to run our tests against an in-memory database initialized with a validated dataset via JPA's sql-load-script-source.

META-INF/microprofile-config.properties

A PR for this improvement has been submitted for code review:
https://github.com/liquibase/liquibase/pull/804

Environment

CDI Integration

Reporter

Derek Moore

Fix versions

Affects versions

Priority

Major
Configure