Skip to content

Commit

Permalink
include ConfigurationValueProvider in native image; delete Substitute…
Browse files Browse the repository at this point in the history
…EnvironmentValueProvider
  • Loading branch information
gcw-it committed Jul 24, 2024
1 parent 7ab7002 commit c818ffa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 26 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -97,9 +97,6 @@ class LiquibaseProcessor {
private static final String LIQUIBASE_PROPERTIES_PATH = "";
private static final String LIQUIBASE_DB_CHANGELOG_XSD_PATH = "www.liquibase.org/xml/ns/dbchangelog";
private static final String LIQUIBASE_SERVICE_PATH = "META-INF/services/";
// see: https://github.com/quarkusio/quarkus/pull/41928#issuecomment-2242353134
private static final Set<String> EXCLUDED_SERVICES = Set.of(
liquibase.configuration.ConfigurationValueProvider.class.getName());

private static final DotName DATABASE_CHANGE_PROPERTY = DotName.createSimple(DatabaseChangeProperty.class.getName());

Expand All @@ -116,7 +113,7 @@ IndexDependencyBuildItem indexLiquibase() {
@BuildStep(onlyIf = NativeOrNativeSourcesBuild.class)
@Record(STATIC_INIT)
void nativeImageConfiguration(
LiquibaseRecorder recorder,
LiquibaseRecorder ignored,
LiquibaseBuildTimeConfig liquibaseBuildConfig,
List<JdbcDataSourceBuildItem> jdbcDataSourceBuildItems,
CombinedIndexBuildItem combinedIndex,
Expand Down Expand Up @@ -296,8 +293,7 @@ private void loadLiquibaseServiceProviderConfig(
BuildProducer<ServiceProviderBuildItem> services,
BuildProducer<ReflectiveClassBuildItem> reflective) {

getResourceNames(tree, LIQUIBASE_SERVICE_PATH, "", true).stream()
.filter(not(EXCLUDED_SERVICES::contains))
getResourceNames(tree, LIQUIBASE_SERVICE_PATH, "", true)
.forEach(t -> consumeService(t, (serviceClassName, implementations) -> {
services.produce(new ServiceProviderBuildItem(
serviceClassName,
Expand Down

This file was deleted.

0 comments on commit c818ffa

Please sign in to comment.