paulbutcher / ScalaMock

Native Scala mocking framework
http://scalamock.org/
MIT License
502 stars 99 forks source link

Scala 3 Support #429

Closed barkhorn closed 6 months ago

barkhorn commented 2 years ago

I am looking to upgrade to Scala 3 and I don't see any releases for that yet at https://repo1.maven.org/maven2/org/scalamock/ is that on the near term roadmap?

Originally posted by @simbo1905 in https://github.com/paulbutcher/ScalaMock/issues/423#issuecomment-1003968026

barkhorn commented 2 years ago

There is currently no active development of a Scala 3 version for this project. I think it would require a significant rewrite with how much the macro system has changed. Macros are a core part of ScalaMock, so this is no trivial matter/easy to port. I am not using Scala for work anymore these days so I can't invest that much time to start this piece of work with a reasonable roadmap.

custommonkey commented 2 years ago

Not sure if this is helpful, but I've created a draft PR which starts by cross building to 3.0.1 to see what fails.

Next step would be to look at how the existing macros work and how they'd need to implemented in 3.

goshacodes commented 11 months ago

I'm working on it https://github.com/paulbutcher/ScalaMock/pull/490

barkhorn commented 6 months ago

6.0.0-M1 has been released for those that do want to test compatibility. Thanks to @goshacodes for contributing it