Questions tagged [dependency-management]

The management of dependencies, for example third party libraries, that are used by a software project.

The management of dependencies, for example third party libraries, that are used by a software project. This handles storage and distribution of these dependency artifacts, as well as version management for them.

2928 questions
1899
votes
8 answers

What is the difference between Bower and npm?

What is the fundamental difference between bower and npm? Just want something plain and simple. I've seen some of my colleagues use bower and npm interchangeably in their projects.
Games Brainiac
  • 80,178
  • 33
  • 141
  • 199
1280
votes
12 answers

What's the difference between implementation, api and compile in Gradle?

After updating to Android Studio 3.0 and creating a new project, I noticed that in build.gradle there is a new way to add new dependencies instead of compile there is implementation and instead of testCompile there is testImplementation. Example: …
1074
votes
35 answers

Android Studio: Add jar as library?

I'm trying to use the new Android Studio but I can't seem to get it working correctly. I'm using the Gson library to serialize/deserialize JSON-objects. But the library somehow isn't included in the build. I had created a new project with just a…
1072
votes
15 answers

What exactly is a Maven Snapshot and why do we need it?

I am a bit confused about the meaning of a Maven Snapshot and why we build one?
meisam
  • 11,346
  • 5
  • 17
  • 15
1051
votes
15 answers

Differences between dependencyManagement and dependencies in Maven

What is the difference between dependencyManagement and dependencies? I have seen the docs at Apache Maven web site. It seems that a dependency defined under the dependencyManagement can be used in its child modules without specifying the…
hguser
  • 35,079
  • 54
  • 159
  • 293
985
votes
26 answers

How can I force Gradle to redownload dependencies?

How can I tell Gradle to redownload dependencies from repositories?
fedor.belov
  • 22,343
  • 26
  • 89
  • 134
812
votes
11 answers

Dealing with "Xerces hell" in Java/Maven?

In my office, the mere mention of the word Xerces is enough to incite murderous rage from developers. A cursory glance at the other Xerces questions on SO seem to indicate that almost all Maven users are "touched" by this problem at some point. …
Justin Garrick
  • 14,767
  • 7
  • 41
  • 66
808
votes
21 answers

How to add local .jar file dependency to build.gradle file?

I have tried to add my local .jar file dependency to my build.gradle file: apply plugin: 'java' sourceSets { main { java { srcDir 'src/model' } } } dependencies { runtime files('libs/mnist-tools.jar',…
letter Q
  • 14,735
  • 33
  • 79
  • 118
641
votes
7 answers

How to install a specific version of package using Composer?

I am trying to install a specific version of a package using Composer. I tried composer install and composer require but they are installing the latest version of the package. What if I want an older version?
gdaras
  • 9,401
  • 2
  • 23
  • 39
450
votes
14 answers

Does it make sense to use Require.js with Angular.js?

I'm a newbie to Angular.js and trying to understand how it's different from Backbone.js... We used to manage our packages dependencies with Require.js while using Backbone. Does it make sense to do the same with Angular.js?
Franck
  • 4,575
  • 3
  • 15
  • 4
249
votes
7 answers

What do square brackets mean in pip install?

I see more and more commands like this: $ pip install "splinter[django]" What do these square brackets do?
Babken Vardanyan
  • 14,090
  • 13
  • 68
  • 87
189
votes
13 answers

Force re-download of release dependency using Maven

I'm working on a project with dependency X. X, in turn, depends on Y. I used to explicitly include Y in my project's pom. However, it was not used and to make things cleaner, I instead added it to X's pom as a dependency. X is marked as a release…
volni
  • 5,196
  • 8
  • 38
  • 44
189
votes
7 answers

How to find/remove unused dependencies in Gradle

I wanted to find unused dependencies in my project. Is there a feature for this in Gradle, like in Maven?
Alexander Bezrodniy
  • 8,474
  • 7
  • 22
  • 24
171
votes
5 answers

Easy way to have Homebrew list all package dependencies

Is there anyway to have the command brew show all the installed or optional dependencies for any given package? It would also be helpful to see which of the install packages are themselves the dependencies of others packages.
oliver
  • 2,467
  • 3
  • 14
  • 29
165
votes
5 answers

Maven equivalent for python

I'm a java developer/python beginner, and I'm missing my maven features, particularly dependency management and build automation (I mean you don't build, but how to create a package for deployment?) Is there a python equivalent to achieve these…
Enno Shioji
  • 26,542
  • 13
  • 70
  • 109
1
2 3
99 100