Comments (9)
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.
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.
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.
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.
I use to work "withSources" and configure these in IDEA. Any chance that this plugin will do that for me?
from sbt-idea.
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.
Oh, really? Sweet!
from sbt-idea.
Heiko, if your sources are not configured properly see:
http://github.com/mpeltonen/sbt-idea-plugin/issues#issue/16
from sbt-idea.
Closing this for now. Let's get back to this (using jar directories) with another issue if needed.
from sbt-idea.
Related Issues (20)
- Wrong resolution of transitive dependencies from invalidated snapshot dependencies
- projects using sbt-multi-jvm dont get set up correctly HOT 3
- Plugin apparently ignoring custom repositories configuration
- Multi-project "test" dependency listed as "compile" dependency in IntelliJ HOT 1
- Source generators trigger creation of incorrect source folders HOT 1
- Is there a way to mark `gen` as Generated Sources Root after SBT refresh? HOT 3
- Download sbt plugins' sources, too? HOT 4
- An error to find a sources/jar file should not stop project file generation HOT 1
- Configuration of java annotation processors
- Account for multiple project dependency configurations and ideaExtraTestConfigurations
- support for intellij idea 14 HOT 12
- Multimodule project in Intellij 14 fails to build
- generate idea 14 project HOT 4
- 1.6.0 not found
- REQUEST: add more details to readme.md HOT 2
- Problem on Java8/OS X 10.10
- The pluginPaths option is output as absolute path and not relative path
- bundle dependencies downloaded into jars folder as well as bundles folder
- Sbt-idea for scala 2.12 HOT 3
- how to use it in Idea 2018? HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sbt-idea.