Hi,
We're currently facing some challenges with pants when it comes to handling both Scala 2 and Scala 3. The main issue is that each Scala compiler version requires a different set of arguments during compilation.
To address this, I've created a PR that introduces a new args_for_resolve configuration, similar to the plugins_for_resolve configuration
I'd appreciate your review and feedback on this approach. You can find the PR here:
https://github.com/pantsbuild/pants/pull/22419
Let me know if you have any questions or suggestions! 🙂