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?

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.

1 Like