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> </exclusion>
</exclusions> </exclusions>
</dependency> </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> <dependency>
<groupId>org.keycloak</groupId> <groupId>org.keycloak</groupId>
<artifactId>keycloak-authz-policy-common</artifactId> <artifactId>keycloak-authz-policy-common</artifactId>

View file

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