Skip to content

Commit

Permalink
Do not build yet quarkusio/quarkus#39169
Browse files Browse the repository at this point in the history
  • Loading branch information
dcdh committed Mar 5, 2024
1 parent 7ea41c4 commit f334b33
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -54,21 +54,22 @@ List<ValidationErrorBuildItem> validateDataSourcesDefinitionsWhenJdbcShedLockIsU
.toList();
}

// FIXME do not build due to this issue: https://github.com/quarkusio/quarkus/issues/39169
// Fixed and should be released in the next release
@BuildStep
@Record(ExecutionTime.STATIC_INIT)
List<SyntheticBeanBuildItem> registerJdbcLockProviderInitializer(
final ApplicationIndexBuildItem applicationIndexBuildItem,
final DataSourceNameRecorder dataSourceNameRecorder) {
final List<String> dataSourceNames = getDataSourcesNameFromJdbcSchedulerLocks(applicationIndexBuildItem);
List<SyntheticBeanBuildItem> list = dataSourceNames.stream()
return dataSourceNames.stream()
.map(dataSourceName -> SyntheticBeanBuildItem.configure(DataSourceName.class)
.scope(Singleton.class)
.identifier(dataSourceName)
.supplier(dataSourceNameRecorder.dataSourceNameSupplier(dataSourceName))
.unremovable()
.done())
.toList();
return list;
}

private List<String> getDataSourcesNameFromJdbcSchedulerLocks(ApplicationIndexBuildItem applicationIndexBuildItem) {
Expand Down

0 comments on commit f334b33

Please sign in to comment.