stevedlawrence commented on PR #826:
URL: https://github.com/apache/daffodil/pull/826#issuecomment-1233236970

   I dug a little bit into this looking for a solution. The issue is that 
sbt-native-packager was updated to depend on scala-xml 2.1.0, but sbt-scoverage 
depends on scala-xml 1.3.0. Because of the major version change, SBT views 
these is incompatible and requires a change somewhere.
   
   One solution is to manually override this by putting this in the plugins.sbt 
file:
   ```
   dependencyOverrides ++= Seq(
     "org.scala-lang.modules" %% "scala-xml" % "2.1.0",
   )
   ```
   I've tested this and it seems to work: 
https://github.com/stevedlawrence/daffodil/runs/8119251364?check_suite_focus=true
   
   One downside is I don't think scala-steward updates these 
dependencyOverrides, so this version will never be updated unless we manually 
update it. It's also possible there actually is a binary incompatibility that 
just isn't showing up.
   
   Another option is to just wait for sbt-scoverage to update to scala-xml 2.x. 
Though, they don't currently have a ticket for this, and it's unclear when/if 
it will happen. 
   
   


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to