Spring Boot auto-configures Hazelcast IMDG when it finds relevant configuration file on the classpath or root directory. Hazelcast Jet wraps IMDG and uses the very same configuration files(in addition to Hazelcast Jet specific configuration file) to configure and create Hazelcast Jet instances. This PR disables Hazelcast IMDG auto-configuration if Jet presents by checking a certain file (hazelcast-jet-default.yaml
) is on the classpath.
See discussion on this PR https://github.com/spring-projects/spring-boot/pull/19483
fixes https://github.com/hazelcast/hazelcast-jet/issues/1835
See Hazelcast Jet Starter Spring Boot Starter
Comment From: snicoll
@gurbuzali are you aware a colleague of yours has already submitted an attempt? see #19483. Ignoring the class check, I think it's more aligned with what we need to do there (besides testing as I've mentioned in a comment).
Comment From: gurbuzali
Hi @snicoll, I've tried to address your review comments, please take a look.
Comment From: snicoll
Thank you for making your first contribution to Spring Boot.