Open bpholt opened 2 years ago
Thanks, I'm glad it's (almost) useful to you! The module that's most tied to Scala 3 is BigQuery because it uses shapeless 3 to derive encoders/decoders.
Everything else should cross-compile easily I think, if all the syntax is rewritten 🙃
If you're willing to try one more experiment, in topic/2.13 I tried building a Scala 3 core against all 2.13 dependencies. This will avoid the conflicting suffix problem. I think you will need to add the -Ytasty-reader
flag as well (or something like that).
Sadly I had to disable one of the tests to get it to publish, I'll try and take a deeper look at it later. Not sure why it's broken.
Thanks! It looks like it imports into sbt ok—at least, the conflicting cross-version suffixes stuff doesn't come up anymore. I probably won't have a chance to dig deeper until next week though.
Btw, if you have a chance to put up a branch with the changes you made to the DiscoveryPlugin
to get it to work on Scala 2.13, that would be really helpful to figuring out how viable a 2.13 cross of this project is :)
Oh yeah, sure thing!
Good news! The failing test was just a very silly typo. https://github.com/armanbilge/gcp4s/commit/e4b7179084eeb5810341ec78edec882cf807ad08
This is pretty cool! I was able to copy
DiscoveryPlugin
into another project and generate the model for the Google Drive API (using its discovery JSON document). Unfortunately, that project is stuck on Scala 2.13. (Generating compilable code took a little tweaking but it was pretty straightforward.)I'm curious if you have any interest in supporting Scala 2 in this project, or if you're aware of any workarounds for using the core artifact from 2.13. I tried using
but ran into errors with transitive dependencies:
I poked around a little more beyond that but it feels like it's spiraling a little bit and I'm not really sure where to focus (or if this is even likely to work at all).