Hey folks. What's some recommended advice for setting up a Scala project that has to compile against multiple versions of Scala? Would it be to make each version of Scala a feature?
c
Caleb Cushing
10/25/2024, 9:27 PM
are you publishing multiple artifacts? testing, or? if you're testing I'd look at
JvmTestSuite
's
k
Kelvin Chung
10/25/2024, 9:29 PM
Publishing different jars, such that they conform to that Scala convention where they have jars with the Scala version in their name.
c
Caleb Cushing
10/25/2024, 9:30 PM
hmm... not certain 😕 sorry I know nothing about scala and whether or not it supports any of the features like javaToolchain does
Caleb Cushing
10/25/2024, 9:30 PM
which you can override some things in various other extensions and whatever
Caleb Cushing
10/25/2024, 9:31 PM
you might also be able to do some shenanigans with your CI, but yeah, this involves a lot of "how does the scala plugin/compiler" work. Hope someone else know's more