Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Duplicated classes between different packages. #808

Open
pocorall opened this issue Jun 17, 2019 · 2 comments
Open

Duplicated classes between different packages. #808

pocorall opened this issue Jun 17, 2019 · 2 comments

Comments

@pocorall
Copy link
Contributor

pocorall commented Jun 17, 2019

object BuildInfo exists in both spire-platform_2.11-0.16.0.jar and spire-util_2.11-0.16.0.jar.

Classes in package spire.scalacompat exists in both spire-platform_2.11-0.16.2.jar and spire-util_2.11-0.16.2.jar.

This duplication prevents me to use R8 Android build tool.

@pierzchalski
Copy link

I'm hitting this as well:

Execution failed for task 'checkReleaseDuplicateClasses'.
> 1 exception was raised by workers:
  java.lang.RuntimeException: java.lang.RuntimeException: Duplicate class scala.annotation.nowarn found in modules scala-collection-compat_2.12-2.2.0.jar (org.scala-lang.modules:scala-collection-compat_2.12:2.2.0) and scala-library-2.12.14.jar (org.scala-lang:scala-library:2.12.14)
  Duplicate class scala.annotation.nowarn$ found in modules scala-collection-compat_2.12-2.2.0.jar (org.scala-lang.modules:scala-collection-compat_2.12:2.2.0) and scala-library-2.12.14.jar (org.scala-lang:scala-library:2.12.14)
  Duplicate class spire.scalacompat.BuilderCompat found in the following modules: spire-macros_2.12-0.17.0.jar (org.typelevel:spire-macros_2.12:0.17.0), spire-platform_2.12-0.17.0.jar (org.typelevel:spire-platform_2.12:0.17.0), spire-util_2.12-0.17.0.jar (org.typelevel:spire-util_2.12:0.17.0) and spire_2.12-0.17.0.jar (org.typelevel:spire_2.12:0.17.0)
  Duplicate class spire.scalacompat.IterableLikeCompat found in the following modules: spire-macros_2.12-0.17.0.jar (org.typelevel:spire-macros_2.12:0.17.0), spire-platform_2.12-0.17.0.jar (org.typelevel:spire-platform_2.12:0.17.0), spire-util_2.12-0.17.0.jar (org.typelevel:spire-util_2.12:0.17.0) and spire_2.12-0.17.0.jar (org.typelevel:spire_2.12:0.17.0)
  Duplicate class spire.scalacompat.ScalaOrderingWrapperCompat found in the following modules: spire-macros_2.12-0.17.0.jar (org.typelevel:spire-macros_2.12:0.17.0), spire-platform_2.12-0.17.0.jar (org.typelevel:spire-platform_2.12:0.17.0), spire-util_2.12-0.17.0.jar (org.typelevel:spire-util_2.12:0.17.0) and spire_2.12-0.17.0.jar (org.typelevel:spire_2.12:0.17.0)
  Duplicate class spire.scalacompat.package found in the following modules: spire-macros_2.12-0.17.0.jar (org.typelevel:spire-macros_2.12:0.17.0), spire-platform_2.12-0.17.0.jar (org.typelevel:spire-platform_2.12:0.17.0), spire-util_2.12-0.17.0.jar (org.typelevel:spire-util_2.12:0.17.0) and spire_2.12-0.17.0.jar (org.typelevel:spire_2.12:0.17.0)
  Duplicate class spire.scalacompat.package$ found in the following modules: spire-macros_2.12-0.17.0.jar (org.typelevel:spire-macros_2.12:0.17.0), spire-platform_2.12-0.17.0.jar (org.typelevel:spire-platform_2.12:0.17.0), spire-util_2.12-0.17.0.jar (org.typelevel:spire-util_2.12:0.17.0) and spire_2.12-0.17.0.jar (org.typelevel:spire_2.12:0.17.0)
  Duplicate class spire.scalacompat.package$FactoryCompatOps found in the following modules: spire-macros_2.12-0.17.0.jar (org.typelevel:spire-macros_2.12:0.17.0), spire-platform_2.12-0.17.0.jar (org.typelevel:spire-platform_2.12:0.17.0), spire-util_2.12-0.17.0.jar (org.typelevel:spire-util_2.12:0.17.0) and spire_2.12-0.17.0.jar (org.typelevel:spire_2.12:0.17.0)

Did you ever figure out a fix @pocorall ?

@pocorall
Copy link
Contributor Author

@pierzchalski I am not using spire right now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants