Skip to content

Commit

Permalink
Merge pull request #33217 from geoand/#33209
Browse files Browse the repository at this point in the history
Fix liquibase quickstart issue in native mode
  • Loading branch information
gsmet authored May 9, 2023
2 parents a7c87d4 + 704687f commit aef6ab1
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
import java.util.Map;
import java.util.Optional;
import java.util.Set;
import java.util.concurrent.ConcurrentHashMap;
import java.util.function.BiConsumer;
import java.util.stream.Collectors;
import java.util.stream.Stream;
Expand Down Expand Up @@ -152,6 +153,9 @@ void nativeImageConfiguration(
liquibase.change.ConstraintsConfig.class.getName())
.fields().build());

// liquibase seems to instantiate these types reflectively...
reflective.produce(ReflectiveClassBuildItem.builder(ConcurrentHashMap.class, ArrayList.class).build());

// register classes marked with @DatabaseChangeProperty for reflection
Set<String> classesMarkedWithDatabaseChangeProperty = new HashSet<>();
for (AnnotationInstance databaseChangePropertyInstance : combinedIndex.getIndex()
Expand Down

0 comments on commit aef6ab1

Please sign in to comment.