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.

2549 questions
1163
votes
10 answers

What's the difference between implementation 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: …
1056
votes
34 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…
Ozzie
  • 11,365
  • 3
  • 18
  • 24
931
votes
14 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
  • 9,858
  • 5
  • 15
  • 15
872
votes
13 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 version.…
hguser
  • 31,173
  • 49
  • 145
  • 269
759
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,057
  • 6
  • 39
  • 65
675
votes
17 answers

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

So 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',…
Wang-Zhao-Liu Q
  • 12,331
  • 27
  • 70
  • 106
461
votes
9 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
  • 7,021
  • 2
  • 20
  • 36
356
votes
5 answers

How to clear cache in Yarn?

I am doing some benchmark tests for Facebook's Yarn. For this, I need to clear my global Yarn cache. Is there a command available for this? I have force-removed my ~/.yarn-cache folder, but this seems to be quite manual.
nikjohn
  • 16,079
  • 9
  • 45
  • 78
157
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
  • 25,422
  • 13
  • 67
  • 104
152
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
  • 4,636
  • 8
  • 35
  • 44
147
votes
6 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
  • 7,534
  • 7
  • 19
  • 24
141
votes
6 answers

How do I add a Maven dependency in Eclipse?

I don't know how to use Maven at all. I've been developing for a couple years with Eclipse and haven't yet needed to know about it. However, now I'm looking at some docs that suggest I do the following: "To include it within your project, just…
Riley Lark
  • 19,952
  • 14
  • 75
  • 122
134
votes
5 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
  • 10,432
  • 9
  • 55
  • 80
122
votes
5 answers

composer: How to find the exact version of a package?

Suppose I'm writing a library A, that depends on another library, monolog for instance. I want to install the latest version of monolog, so I just put this inside composer.json: { "require": { "monolog/monolog": "*.*.*" } } Then I…
HappyDeveloper
  • 11,489
  • 18
  • 76
  • 115
117
votes
7 answers

In Gradle, how do I declare common dependencies in a single place?

In Maven there is a very useful feature when you can define a dependency in the section of the parent POM, and reference that dependency from child modules without specifying the version or scope or whatever. What are the…
Stanislav Bashkyrtsev
  • 11,403
  • 7
  • 33
  • 38
1
2 3
99 100