Skip to content

Commit

Permalink
Fix liquibase quickstart issue in native mode
Browse files Browse the repository at this point in the history
Fixes: #33209
  • Loading branch information
geoand committed May 9, 2023
1 parent ee44439 commit 704687f
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 704687f

Please sign in to comment.