GithubHelp home page GithubHelp logo

SBT assembly about play-mailer HOT 3 CLOSED

mmesar avatar mmesar commented on June 9, 2024
SBT assembly

from play-mailer.

Comments (3)

raboof avatar raboof commented on June 9, 2024

i guess problem is in play-mailer

Well, the problem is that the resources in different dependencies overlap and aren't identical.

In the case of mailcap.default and mimetypes.default, I suspect the files are actually really similar and you can configure the assemblyMergeStrategy to just pick one.

In case of the overlap between jakarta.activation-api and javax.activation, I guess it would be best to pick one and exclude the other dependency from your dependency tree?

from play-mailer.

mmesar avatar mmesar commented on June 9, 2024

I succeed in making jar with following code added in build.sbt

excludeDependencies ++= Seq(
  ExclusionRule("javax.activation")
)

Again following question may not be appropriate to this place. Again would be grateful with advice where to look and ask next.
I am curious what exactly is happening here so I could understand the situation better. This is my take on it.
At some point while 'building' jar, 'engine' will download all dependencies from all 'components' that are used in the project. At some other point while injecting the objects 'engine' will stumble upon an object, that has to be injected, that is typed as an interface. Next, the engine will search in, I assume, classpath for a class that implement that interface but will find multiple classes that implement given interface and that's where a collision occurs.

Am I on the right path of understanding this or?
Thx

from play-mailer.

mkurz avatar mkurz commented on June 9, 2024

This is not play-mailer specific, you should ask further questions in https://github.com/sbt/sbt-assembly

from play-mailer.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.