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 2026/02/18 14:16:33 UTC

[I] crossPaths is disabled, making it difficult to have scala/daffodil version specific code [daffodil-sbt]

stevedlawrence opened a new issue, #161:
URL: https://github.com/apache/daffodil-sbt/issues/161

   The plugin sets `crossPaths := false`, the intention is to avoid the scala binary version suffix in jars doesn't really provide any value. This is because non-plugin projects contain no code so will work with any scala version, and plugins add a daffodilXYZ classifier to indicate which verison of Daffodil it works with, and that implies a scala binary version since each daffodil version only works with a specific scala version.
   
   However, in some cases, like in tests or plugins, it is useful to have source directories that are scala version specific, often used for shim code to deal with API differences in different versions o Daffodil. SBT will add these directories automatically, but setting `crossPaths := false` disables this.
   
   One possible solution is to set `crossPaths := true`, which adds back those directories, but then set `crossVersion := CrossVersion.disabled`, which disables adding the cross version to artifact jars, which was the original intention.


-- 
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.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] crossPaths is disabled, making it difficult to have scala/daffodil version specific code [daffodil-sbt]

Posted by "stevedlawrence (via GitHub)" <gi...@apache.org>.
stevedlawrence closed issue #161: crossPaths is disabled, making it difficult to have scala/daffodil version specific code
URL: https://github.com/apache/daffodil-sbt/issues/161


-- 
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