sbt / sbt-projectmatrix

MIT License
124 stars 14 forks source link

Warn if project sets crossScalaVersions #80

Open bpholt opened 1 year ago

bpholt commented 1 year ago

I've been bitten by this a couple times over the years, when converting a project to use sbt-projectmatrix, forgetting to remove all the crossScalaVersions settings previously in the project definition. This feels like it's always an error, and the resulting issues are usually not obviously linked to this setting. Could we add something to the plugin to detect this situation and at least print a warning, or if it truly is always an error, fail to load the project until the setting is removed?

If this seems like something that would be merged, I'd plan to work on it and contribute a PR, but I wanted to check to see if it made sense before starting.

eed3si9n commented 1 year ago

Sounds good to me.