Support for graal native-image

Description

I tried generating a graal native-imge micronaut project which uses liquibase and I am getting this

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 01-09-2019 20:54:10.466 [main] INFO l.database.core.UnsupportedDatabase.info - Error getting default schema liquibase.exception.UnexpectedLiquibaseException: liquibase.exception.ServiceNotFoundException: liquibase.exception.ServiceNotFoundException: Could not find unique implementation of liquibase.executor.Executor. Found 0 implementations at liquibase.executor.ExecutorService.getExecutor(ExecutorService.java:30) at liquibase.database.AbstractJdbcDatabase.getConnectionSchemaName(AbstractJdbcDatabase.java:327) at liquibase.database.AbstractJdbcDatabase.getDefaultSchemaName(AbstractJdbcDatabase.java:292) at liquibase.changelog.ChangeLogParameters.<init>(ChangeLogParameters.java:54) at liquibase.Liquibase.<init>(Liquibase.java:110) at io.micronaut.configuration.dbmigration.liquibase.LiquibaseMigrationRunner.createLiquibase(LiquibaseMigrationRunner.java:225) at io.micronaut.configuration.dbmigration.liquibase.LiquibaseMigrationRunner.migrate(LiquibaseMigrationRunner.java:141) at io.micronaut.configuration.dbmigration.liquibase.LiquibaseMigrationRunner.run(LiquibaseMigrationRunner.java:105) at io.micronaut.configuration.dbmigration.liquibase.LiquibaseMigrationRunner.lambda$null$0(LiquibaseMigrationRunner.java:87) at java.util.Optional.ifPresent(Optional.java:159) at io.micronaut.configuration.dbmigration.liquibase.LiquibaseMigrationRunner.lambda$onCreated$1(LiquibaseMigrationRunner.java:87) at java.util.Optional.ifPresent(Optional.java:159) at io.micronaut.configuration.dbmigration.liquibase.LiquibaseMigrationRunner.onCreated(LiquibaseMigrationRunner.java:84) at io.micronaut.configuration.dbmigration.liquibase.LiquibaseMigrationRunner.onCreated(LiquibaseMigrationRunner.java:60) at io.micronaut.context.DefaultBeanContext.doCreateBean(DefaultBeanContext.java:1587) at io.micronaut.context.DefaultBeanContext.createAndRegisterSingleton(DefaultBeanContext.java:2248) at io.micronaut.context.DefaultBeanContext.getBeanForDefinition(DefaultBeanContext.java:1917) at io.micronaut.context.DefaultBeanContext.getBeanInternal(DefaultBeanContext.java:1892) at io.micronaut.context.DefaultBeanContext.getBean(DefaultBeanContext.java:1021) at io.micronaut.context.AbstractBeanDefinition.getBeanForConstructorArgument(AbstractBeanDefinition.java:985) at io.micronaut.configuration.hibernate.jpa.$EntityManagerFactoryBean$HibernateStandardServiceRegistry0Definition.doBuild(Unknown Source) at io.micronaut.context.AbstractParametrizedBeanDefinition.build(AbstractParametrizedBeanDefinition.java:117) at io.micronaut.context.BeanDefinitionDelegate.build(BeanDefinitionDelegate.java:201) at io.micronaut.context.DefaultBeanContext.doCreateBean(DefaultBeanContext.java:1535) at io.micronaut.context.DefaultBeanContext.createAndRegisterSingleton(DefaultBeanContext.java:2248) at io.micronaut.context.DefaultBeanContext.getBeanForDefinition(DefaultBeanContext.java:1917) at io.micronaut.context.DefaultBeanContext.getBeanInternal(DefaultBeanContext.java:1892) at io.micronaut.context.DefaultBeanContext.getBean(DefaultBeanContext.java:1021) at io.micronaut.context.AbstractBeanDefinition.getBeanForConstructorArgument(AbstractBeanDefinition.java:985) at io.micronaut.configuration.hibernate.jpa.$EntityManagerFactoryBean$HibernateMetadataSources1Definition.doBuild(Unknown Source) at io.micronaut.context.AbstractParametrizedBeanDefinition.build(AbstractParametrizedBeanDefinition.java:117) at io.micronaut.context.BeanDefinitionDelegate.build(BeanDefinitionDelegate.java:201) at io.micronaut.context.DefaultBeanContext.doCreateBean(DefaultBeanContext.java:1535) at io.micronaut.context.DefaultBeanContext.createAndRegisterSingleton(DefaultBeanContext.java:2248) at io.micronaut.context.DefaultBeanContext.getBeanForDefinition(DefaultBeanContext.java:1917) at io.micronaut.context.DefaultBeanContext.getBeanInternal(DefaultBeanContext.java:1892) at io.micronaut.context.DefaultBeanContext.getBean(DefaultBeanContext.java:1021) at io.micronaut.context.AbstractBeanDefinition.getBeanForConstructorArgument(AbstractBeanDefinition.java:985) at io.micronaut.configuration.hibernate.jpa.$EntityManagerFactoryBean$HibernateSessionFactoryBuilder2Definition.build(Unknown Source) at io.micronaut.context.BeanDefinitionDelegate.build(BeanDefinitionDelegate.java:205) at io.micronaut.context.DefaultBeanContext.doCreateBean(DefaultBeanContext.java:1535) at io.micronaut.context.DefaultBeanContext.createAndRegisterSingleton(DefaultBeanContext.java:2248) at io.micronaut.context.DefaultBeanContext.getBeanForDefinition(DefaultBeanContext.java:1917) at io.micronaut.context.DefaultBeanContext.getBeanInternal(DefaultBeanContext.java:1892) at io.micronaut.context.DefaultBeanContext.getBean(DefaultBeanContext.java:1021) at io.micronaut.context.AbstractBeanDefinition.getBeanForConstructorArgument(AbstractBeanDefinition.java:985) at io.micronaut.configuration.hibernate.jpa.$EntityManagerFactoryBean$HibernateSessionFactory3Definition.build(Unknown Source) at io.micronaut.context.BeanDefinitionDelegate.build(BeanDefinitionDelegate.java:205) at io.micronaut.context.DefaultBeanContext.doCreateBean(DefaultBeanContext.java:1535) at io.micronaut.context.DefaultBeanContext.createAndRegisterSingleton(DefaultBeanContext.java:2248) at io.micronaut.context.DefaultBeanContext.loadContextScopeBean(DefaultBeanContext.java:1819) at io.micronaut.context.DefaultBeanContext.initializeContext(DefaultBeanContext.java:1196) at io.micronaut.context.DefaultApplicationContext.initializeContext(DefaultApplicationContext.java:236) at io.micronaut.context.DefaultBeanContext.readAllBeanDefinitionClasses(DefaultBeanContext.java:2399) at io.micronaut.context.DefaultBeanContext.start(DefaultBeanContext.java:199) at io.micronaut.context.DefaultApplicationContext.start(DefaultApplicationContext.java:187) at io.micronaut.runtime.Micronaut.start(Micronaut.java:69) at io.micronaut.runtime.Micronaut.run(Micronaut.java:303) at io.micronaut.runtime.Micronaut.run(Micronaut.java:289) at com.myproject.MainApplication.main(MainApplication.java:9) Caused by: liquibase.exception.ServiceNotFoundException: liquibase.exception.ServiceNotFoundException: Could not find unique implementation of liquibase.executor.Executor. Found 0 implementations at liquibase.servicelocator.ServiceLocator.newInstance(ServiceLocator.java:216) at liquibase.executor.ExecutorService.getExecutor(ExecutorService.java:26) ... 59 common frames omitted Caused by: liquibase.exception.ServiceNotFoundException: Could not find unique implementation of liquibase.executor.Executor. Found 0 implementations at liquibase.servicelocator.ServiceLocator.findClass(ServiceLocator.java:188) at liquibase.servicelocator.ServiceLocator.newInstance(ServiceLocator.java:214) ... 60 common frames omitted

See attached resource-config.json and reflect-config.json.

And I have this in my native-image arg -H:IncludeResourceBundles=liquibase/i18n/liquibase-core.

Environment

graalvm ce 19.2.0

Status

Assignee

Unassigned

Reporter

franz_see_net_ph

Labels

None

Affects versions

3.6.3

Priority

Major