@@ -118,14 +118,16 @@ void nativeImageConfiguration(
118118 runtimeInitialized .produce (new RuntimeInitializedClassBuildItem (
119119 liquibase .sqlgenerator .core .LockDatabaseChangeLogGenerator .class .getName ()));
120120
121- reflective .produce (new ReflectiveClassBuildItem ( false , true , false ,
122- liquibase .change .AbstractSQLChange .class . getName (),
123- liquibase . database . jvm . JdbcConnection . class . getName () ));
121+ reflective .produce (ReflectiveClassBuildItem
122+ . builder ( liquibase .change .AbstractSQLChange .class , liquibase . database . jvm . JdbcConnection . class ). methods ()
123+ . build ( ));
124124
125- reflective .produce (new ReflectiveClassBuildItem (true , false , false , "liquibase.command.LiquibaseCommandFactory" ,
126- liquibase .command .CommandFactory .class .getName ()));
125+ reflective .produce (ReflectiveClassBuildItem
126+ .builder ("liquibase.command.LiquibaseCommandFactory" ,
127+ liquibase .command .CommandFactory .class .getName ())
128+ .constructors ().build ());
127129
128- reflective .produce (new ReflectiveClassBuildItem ( true , true , true ,
130+ reflective .produce (ReflectiveClassBuildItem . builder (
129131 liquibase .parser .ChangeLogParserConfiguration .class .getName (),
130132 liquibase .hub .HubServiceFactory .class .getName (),
131133 liquibase .logging .core .DefaultLoggerConfiguration .class .getName (),
@@ -142,10 +144,13 @@ void nativeImageConfiguration(
142144 liquibase .sql .visitor .ReplaceSqlVisitor .class .getName (),
143145 liquibase .sql .visitor .AppendSqlVisitor .class .getName (),
144146 liquibase .sql .visitor .RegExpReplaceSqlVisitor .class .getName (),
145- liquibase .resource .PathHandlerFactory .class .getName ()));
147+ liquibase .resource .PathHandlerFactory .class .getName (),
148+ liquibase .logging .mdc .MdcManagerFactory .class .getName ())
149+ .constructors ().methods ().fields ().build ());
146150
147- reflective .produce (new ReflectiveClassBuildItem (false , false , true ,
148- liquibase .change .ConstraintsConfig .class .getName ()));
151+ reflective .produce (ReflectiveClassBuildItem .builder (
152+ liquibase .change .ConstraintsConfig .class .getName ())
153+ .fields ().build ());
149154
150155 // register classes marked with @DatabaseChangeProperty for reflection
151156 Set <String > classesMarkedWithDatabaseChangeProperty = new HashSet <>();
@@ -158,7 +163,8 @@ void nativeImageConfiguration(
158163 }
159164 }
160165 reflective .produce (
161- new ReflectiveClassBuildItem (true , true , true , classesMarkedWithDatabaseChangeProperty .toArray (new String [0 ])));
166+ ReflectiveClassBuildItem .builder (classesMarkedWithDatabaseChangeProperty .toArray (new String [0 ]))
167+ .constructors ().methods ().fields ().build ());
162168
163169 Collection <String > dataSourceNames = jdbcDataSourceBuildItems .stream ()
164170 .map (JdbcDataSourceBuildItem ::getName )
@@ -189,17 +195,20 @@ void nativeImageConfiguration(
189195 liquibase .snapshot .SnapshotGenerator .class ,
190196 liquibase .sqlgenerator .SqlGenerator .class ,
191197 liquibase .structure .DatabaseObject .class ,
192- liquibase .hub .HubService .class )
198+ liquibase .hub .HubService .class ,
199+ liquibase .logging .mdc .MdcManager .class )
193200 .forEach (t -> consumeService (t , (serviceClass , implementations ) -> {
194201 services .produce (
195202 new ServiceProviderBuildItem (serviceClass .getName (), implementations .toArray (new String [0 ])));
196- reflective .produce (new ReflectiveClassBuildItem (true , true , false , implementations .toArray (new String [0 ])));
203+ reflective .produce (ReflectiveClassBuildItem .builder (implementations .toArray (new String [0 ]))
204+ .constructors ().methods ().build ());
197205 }));
198206
199207 // Register Precondition services, and the implementation class for reflection while also registering fields for reflection
200208 consumeService (liquibase .precondition .Precondition .class , (serviceClass , implementations ) -> {
201209 services .produce (new ServiceProviderBuildItem (serviceClass .getName (), implementations .toArray (new String [0 ])));
202- reflective .produce (new ReflectiveClassBuildItem (true , true , true , implementations .toArray (new String [0 ])));
210+ reflective .produce (ReflectiveClassBuildItem .builder (implementations .toArray (new String [0 ]))
211+ .constructors ().methods ().fields ().build ());
203212 });
204213
205214 // CommandStep implementations are needed
@@ -208,7 +217,7 @@ void nativeImageConfiguration(
208217 .filter (not ("liquibase.command.core.StartH2CommandStep" ::equals ))
209218 .toArray (String []::new );
210219 services .produce (new ServiceProviderBuildItem (serviceClass .getName (), filteredImpls ));
211- reflective .produce (new ReflectiveClassBuildItem ( true , false , false , filteredImpls ));
220+ reflective .produce (ReflectiveClassBuildItem . builder ( filteredImpls ). constructors (). build ( ));
212221 for (String implementation : filteredImpls ) {
213222 runtimeInitialized .produce (new RuntimeInitializedClassBuildItem (implementation ));
214223 }
@@ -224,6 +233,11 @@ void nativeImageConfiguration(
224233 "www.liquibase.org/xml/ns/dbchangelog/dbchangelog-4.12.xsd" ,
225234 "www.liquibase.org/xml/ns/dbchangelog/dbchangelog-4.13.xsd" ,
226235 "www.liquibase.org/xml/ns/dbchangelog/dbchangelog-4.14.xsd" ,
236+ "www.liquibase.org/xml/ns/dbchangelog/dbchangelog-4.15.xsd" ,
237+ "www.liquibase.org/xml/ns/dbchangelog/dbchangelog-4.16.xsd" ,
238+ "www.liquibase.org/xml/ns/dbchangelog/dbchangelog-4.17.xsd" ,
239+ "www.liquibase.org/xml/ns/dbchangelog/dbchangelog-4.18.xsd" ,
240+ "www.liquibase.org/xml/ns/dbchangelog/dbchangelog-4.19.xsd" ,
227241 "www.liquibase.org/xml/ns/dbchangelog/dbchangelog-latest.xsd" ,
228242 "www.liquibase.org/xml/ns/dbchangelog/dbchangelog-ext.xsd" ,
229243 "liquibase.build.properties" ));
0 commit comments