You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@daffodil.apache.org by "stevedlawrence (via GitHub)" <gi...@apache.org> on 2025/12/02 15:41:28 UTC
[PR] Simplify setting scalaVersion [daffodil-sbt]
stevedlawrence opened a new pull request, #144:
URL: https://github.com/apache/daffodil-sbt/pull/144
The way we currently set scalaVersionis complex--we try to use the version of scala that was distributed with daffodilVersion, but will potentially upgrade to new scala versions depending on the JDK version.
But all this is pretty unnecessary. Scala patch updates guarantee binary compatability, so we can just always use the latest scala patch version that is compatable with daffodilVersion and things shoudl always work. This ensures that users of the plugin always use the latest Scala version, including bug fixes and JDK compatability.
This means we no longer need to maintain JDK compatability versions or a full mapping of all Daffodil version to Scala version.
Note that this also uses ModuleId.version, which seems to help scala-steward recognize that these are scala versions and will auto update them when new versions are relased.
Also uses a more simplifed syntax for disabling scala-steward for the daffodil dependencies.
Also updates all scala versions to their latest available patch versions.
Closes #143
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@daffodil.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] Simplify setting scalaVersion [daffodil-sbt]
Posted by "stevedlawrence (via GitHub)" <gi...@apache.org>.
stevedlawrence commented on PR #144:
URL: https://github.com/apache/daffodil-sbt/pull/144#issuecomment-3602839046
> Just double checking, these are still essentially default values that can easily be overridden if someone wants to target an older version of Scala, correct?
Yep, a project can always set `scalaVersion := ...` in their SBT config to override this if they need an older version of scala. This probably isn't generally recommended since the latest scala version *should* always work, but it is an option if there is a problem.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@daffodil.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] Simplify setting scalaVersion [daffodil-sbt]
Posted by "stevedlawrence (via GitHub)" <gi...@apache.org>.
stevedlawrence merged PR #144:
URL: https://github.com/apache/daffodil-sbt/pull/144
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@daffodil.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org