flapdoodle-oss / de.flapdoodle.embed.mongo.spring

embedded mongo spring integration
Apache License 2.0
30 stars 7 forks source link

Spring Boot 3.0 support? #2

Closed odrotbohm closed 1 year ago

odrotbohm commented 2 years ago

It looks like the binaries built from the 2.7.x branch do not work on Boot 3.0 snapshots as they refer to API removed. Will there be an updated version compatible with 3.0 at some point?

michaelmosmann commented 2 years ago

@odrotbohm i think so .. i hope that it will be not as hard..

michaelmosmann commented 2 years ago

@odrotbohm btw: i did not remove an API, the used some accessible code in an unintended way and after a longer discussion they decided that the will remove the support in 2.7 ...

This has also some benefits.. there is a major refactoring ahead and this can not be done in any way without code change on the spring side:)

Heatmanofurioso commented 1 year ago

Any idea on when/how will this be worked on?

Or anyone has an idea on a workaround with 3.0.0?

michaelmosmann commented 1 year ago

@Heatmanofurioso i will start with this today.. maybe this is something easy .. any NOT working sample project?

Heatmanofurioso commented 1 year ago

@michaelmosmann I've made a sample repo. This code was working fine with 2.7.0

https://github.com/Heatmanofurioso/sample-spring-mongo-repo

michaelmosmann commented 1 year ago

@Heatmanofurioso cool.. thanks.. :)

michaelmosmann commented 1 year ago

@Heatmanofurioso .. have something working. Had fun with something like this: https://github.com/spring-projects/spring-boot/wiki/Spring-Boot-3.0-Migration-Guide#auto-configuration-files .. i do not get it why there was no warning in spring 2.7 ..

michaelmosmann commented 1 year ago

@Heatmanofurioso made an pull request: https://github.com/Heatmanofurioso/sample-spring-mongo-repo/pull/1

michaelmosmann commented 1 year ago

@Heatmanofurioso spring 3.0 release done:) reopen if needed..

Heatmanofurioso commented 1 year ago

Thanks for your help @michaelmosmann I've tested on several of my repos, and it's working perfectly