Giter Club home page Giter Club logo

Comments (9)

mpeltonen avatar mpeltonen commented on August 22, 2024

I considered this (and if my memory serves me, I think it was initially like this), but using the classpath computed by SBT, and that classpath may include also other locations and transitive dependencies, it is much easier to get the complete classpath this way.

What would be the main benefits of using jar directories instead of individual jars if SBT is managing dependencies?

from sbt-idea.

hseeberger avatar hseeberger commented on August 22, 2024

OK, you start with a simple project, only few dependencies. You create the IDEA files with your great plugin. Then you start adding more and more dependencies. How would you make them available to IDEA? Manually? Or would you recreate the IDEA files?

from sbt-idea.

mpeltonen avatar mpeltonen commented on August 22, 2024

I always recreate the files, i.e. run "sbt update; sbt idea" after adding new dependencies to project definition (or pom/ivy files). Idea notices the modification on the fly and offers you the choice of reloading project.

Of course this procedure has the limitation that any other non-plugin-generated idea configuration stored in ipr/iml files is lost when recreating, but I haven't found that to be much of a problem yet (i.e. haven't found any non-plugin-generated configuration worth preserving).

from sbt-idea.

waywardmonkeys avatar waywardmonkeys commented on August 22, 2024

The main thing that I wish I could preserve is having IDEA's git integration set up ... but that only takes 5 seconds to re-do each time.

from sbt-idea.

hseeberger avatar hseeberger commented on August 22, 2024

I use to work "withSources" and configure these in IDEA. Any chance that this plugin will do that for me?

from sbt-idea.

mpeltonen avatar mpeltonen commented on August 22, 2024

Do you mean sources of dependencies and/or scala library? Plugin should already configure scala library/compiler sources and sources of dependencies declared with "withSources()".

from sbt-idea.

hseeberger avatar hseeberger commented on August 22, 2024

Oh, really? Sweet!

from sbt-idea.

ijuma avatar ijuma commented on August 22, 2024

Heiko, if your sources are not configured properly see:

http://github.com/mpeltonen/sbt-idea-plugin/issues#issue/16

from sbt-idea.

mpeltonen avatar mpeltonen commented on August 22, 2024

Closing this for now. Let's get back to this (using jar directories) with another issue if needed.

from sbt-idea.

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.