weso / shaclex

SHACL/ShEx implementation
http://weso.github.io/shaclex
MIT License
77 stars 17 forks source link

sbt assembly finds duplicate jars #9

Open labra opened 7 years ago

labra commented 7 years ago

When executing sbt assembly, I obtain lots of errors like the following:

[error] deduplicate: different file contents found in the following:
[error] ...\.coursier\cache\v1\https\repo1.maven.org\maven2\org\typelevel\scala-library\2.11.8\scala-library-2.11.8.jar:scala/sys/process/ProcessBuilderImpl$Simple$$anonfun$4.class
[error] ...\.coursier\cache\v1\https\repo1.maven.org\maven2\org\scala-lang\scala-library\2.11.8\scala-library-2.11.8.jar:scala/sys/process/ProcessBuilderImpl$Simple$$anonfun$4.class

It seems that there is a configuration problem where the typelevel and scala-lang libraries are mixed. As we are using only typelevel compiler, we probably need to configure something in sbt to remove the deplicate jars.

brinklec commented 7 years ago

I just encountered the same issue. Setting scalaOrganization explicitly in build.sbt did not help.