vert-x3 / vertx-lang-scala

Vert.x for Scala
http://vert-x3.github.io/vertx-lang-scala/
122 stars 41 forks source link

Getting error in building fat jar after upgrading to 3.5.1 #64

Closed gowravshekar closed 6 years ago

gowravshekar commented 6 years ago

Getting the below error on using sbt assembly.

java.lang.RuntimeException: deduplicate: different file contents found in the following
.ivy2/cache/io.vertx/vertx-service-discovery-scala_2.12/jars/vertx-service-discovery-scala_2.12-3.5.1.jar:vertx-service-discovery-js/service_importer.js
.ivy2/cache/io.vertx/vertx-service-discovery/jars/vertx-service-discovery-3.5.1.jar:vertx-service-discovery-js/service_importer.js
codepitbull commented 6 years ago

Ok, didn't see these new files.

open project/Build.scala in your project and look for assemblyMergeStrategy in assembly. At the top of the list add the following strategy: case PathList("vertx-service-discovery-js", xs @ _*) => MergeStrategy.first