This commit is contained in:
Hynek Mlnarik 2022-05-26 15:47:18 +02:00 committed by Hynek Mlnařík
parent d41764b19b
commit 64b1e976af
2 changed files with 31 additions and 2 deletions

View file

@ -211,6 +211,36 @@
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.keycloak</groupId>
<artifactId>keycloak-model-legacy</artifactId>
<exclusions>
<exclusion>
<groupId>*</groupId>
<artifactId>*</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.keycloak</groupId>
<artifactId>keycloak-model-legacy-private</artifactId>
<exclusions>
<exclusion>
<groupId>*</groupId>
<artifactId>*</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.keycloak</groupId>
<artifactId>keycloak-model-legacy-services</artifactId>
<exclusions>
<exclusion>
<groupId>*</groupId>
<artifactId>*</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.keycloak</groupId>
<artifactId>keycloak-authz-policy-common</artifactId>

View file

@ -47,7 +47,6 @@ public class QuarkusKeycloakApplication extends KeycloakApplication {
@Override
protected void startup() {
initializeKeycloakSessionFactory();
setupScheduledTasks(sessionFactory);
createAdminUser();
}
@ -66,7 +65,7 @@ public class QuarkusKeycloakApplication extends KeycloakApplication {
QuarkusKeycloakSessionFactory instance = QuarkusKeycloakSessionFactory.getInstance();
sessionFactory = instance;
instance.init();
sessionFactory.publish(new PostMigrationEvent());
sessionFactory.publish(new PostMigrationEvent(sessionFactory));
}
private void createAdminUser() {