Cross-publishing Scala 3.0 and 3.1

When publishing, both Scala 3.0 and 3.1 binaries publish to the same location, but 3.1 binaries use different format, so 3.1 can overwrite 3.0. This is later causing issue when that binary is used by 3.0 compiler (is fails to read it).

What should be a proper publishing strategy in an SBT project? Should only 3.0 binaries be published? Can 3.1 generate 3.0 binaries?

1 Like

I’ve been sticking to publishing with Scala 3.0.2 - https://twitter.com/SethTisue/status/1450260785762947076 is the only real discussion I’ve seen about this.

2 Likes

see the “Compatibility notice” section of Scala 3.1.0 released! | The Scala Programming Language

1 Like