use of org.springframework.boot.autoconfigure.condition.ConditionalOnExpression in project CzechIdMng by bcvsolutions.
the class AccFlywayConfig method flywayAcc.
@Bean
@DependsOn("flywayCore")
@ConditionalOnMissingBean(name = "flywayAcc")
@ConditionalOnExpression("${flyway.enabled:true} && '${flyway.acc.locations}'!=''")
@ConfigurationProperties(prefix = "flyway.acc")
public Flyway flywayAcc() {
Flyway flyway = super.createFlyway();
log.info("Starting flyway migration for module acc [{}]: ", flyway.getTable());
return flyway;
}
use of org.springframework.boot.autoconfigure.condition.ConditionalOnExpression in project CzechIdMng by bcvsolutions.
the class CoreFlywayConfig method flywayCore.
@Bean
@ConditionalOnMissingBean(name = NAME)
@DependsOn(IdmFlywayPostProcessor.NAME)
@ConditionalOnExpression("${flyway.enabled:true} && '${flyway.core.locations}'!=''")
@ConfigurationProperties(prefix = "flyway.core")
public Flyway flywayCore() {
Flyway flyway = super.createFlyway();
log.info("Starting flyway migration for module core [{}]: ", flyway.getTable());
return flyway;
}
use of org.springframework.boot.autoconfigure.condition.ConditionalOnExpression in project CzechIdMng by bcvsolutions.
the class ExampleFlywayConfig method flywayModuleExample.
@Bean
@DependsOn("flywayCore")
@ConditionalOnMissingBean(name = "flywayModuleExample")
@ConditionalOnExpression("${flyway.enabled:true} && '${flyway.example.locations}'!=''")
@ConfigurationProperties(prefix = "flyway.example")
public Flyway flywayModuleExample() {
Flyway flyway = super.createFlyway();
log.info("Starting flyway migration for example module [{}]: ", flyway.getTable());
return flyway;
}
use of org.springframework.boot.autoconfigure.condition.ConditionalOnExpression in project CzechIdMng by bcvsolutions.
the class RptFlywayConfig method flywayRpt.
@Bean
@DependsOn("flywayCore")
@ConditionalOnMissingBean(name = "flywayRpt")
@ConditionalOnExpression("${flyway.enabled:true} && '${flyway.rpt.locations}'!=''")
@ConfigurationProperties(prefix = "flyway.rpt")
public Flyway flywayRpt() {
Flyway flyway = super.createFlyway();
log.info("Starting flyway migration for module rpt [{}]: ", flyway.getTable());
return flyway;
}
use of org.springframework.boot.autoconfigure.condition.ConditionalOnExpression in project CzechIdMng by bcvsolutions.
the class VirtualSystemFlywayConfig method flywayModuleVirtualSystem.
@Bean
@DependsOn("flywayCore")
@ConditionalOnMissingBean(name = "flywayModuleVirtualSystem")
@ConditionalOnExpression("${flyway.enabled:true} && '${flyway.vs.locations}'!=''")
@ConfigurationProperties(prefix = "flyway.vs")
public Flyway flywayModuleVirtualSystem() {
Flyway flyway = super.createFlyway();
log.info("Starting flyway migration for vs module [{}]: ", flyway.getTable());
return flyway;
}
Aggregations