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

Enhancement request: Use JAR directories for dependencies #7

Closed
hseeberger opened this issue Aug 7, 2010 · 9 comments
Closed

Enhancement request: Use JAR directories for dependencies #7

hseeberger opened this issue Aug 7, 2010 · 9 comments

Comments

@hseeberger
Copy link

Currently for each JAR from lib_managed a dependency of its own is created. It would be nice to have (optional at least) lib_managed//compile, .../test, etc. as JAR directories.

@mpeltonen
Copy link
Owner

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?

@hseeberger
Copy link
Author

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?

@mpeltonen
Copy link
Owner

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).

@waywardmonkeys
Copy link

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.

@hseeberger
Copy link
Author

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

@mpeltonen
Copy link
Owner

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()".

@hseeberger
Copy link
Author

Oh, really? Sweet!

@ijuma
Copy link
Contributor

ijuma commented Sep 12, 2010

Heiko, if your sources are not configured properly see:

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

@mpeltonen
Copy link
Owner

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

This issue was closed.
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

4 participants