Questions tagged [dependencies]

A dependency exists between two elements if changes to the definition of one element may cause changes to the other.

A dependency exists between two elements if changes to the definition of one element may cause changes to the other.

To quote from the 3rd edition of UML Distilled:

An element C (the client) depends on an element S (the supplier) if and only if changes to the definition of S may cause changes to C.

If the elements are classes, only the direct cause for change (i.e. not through a ripple effect) is called a dependency, i.e. the relation is not transitive.

For packages, C depends on S if a class in C depends on a class in S. Sometimes, the transitive closure is taken, i.e. the dependency of C on a package T can be caused by C depending on S depending on T via class dependencies.

References:

  1. Understanding Dependencies
  2. What is the difference between dependency and association?
12826 questions
5
votes
1 answer

how to load the dependencies from the pom into classpath of eclipse project?

Am using eclipse helios with m2eclipse plugin. For a maven project checked out from CVS, how do i tell eclipse to automatically fetch all the jars needed for that project from the dependencies mentioned in the pom. Thanks for your time
Rajan
  • 626
  • 3
  • 8
  • 18
5
votes
2 answers

Automatically Install Package-Based Perl Modules in Ubuntu

I would like to install the Perl modules required by a specific Perl script, such as those listed by the perl-depends tool. However, I would like to do that in Ubuntu using the apt-get, meaning installing the modules through the package repository…
Alan Turing
  • 12,223
  • 16
  • 74
  • 116
5
votes
4 answers

How do you pass 'this' as an argument to another class constructor without circular dependencies?

I'm thinking specifically of the Strategy pattern (Design Patterns, GoF94), where it is suggested that the context passed to the strategy constructor can be the object which contains the strategy (as a member) itself. But the following won't…
Matt Phillips
  • 9,465
  • 8
  • 44
  • 75
5
votes
1 answer

Gradle Kotlin DSL: Inspection "Newer Library Versions Available" not working

I have converted my Gradle build scripts to the Kotlin DSL. Since I was starting with a small new project, everything went according to plan. When referencing more and more dependencies I wanted to put their version numbers in the script as…
ceedee
  • 371
  • 1
  • 11
5
votes
3 answers

Bundler compatible versions for gem "jekyll"

I'm trying to setup github page using Jekyll, currently it is using minima theme, and I want to change it to jekyll-theme-hacker. So, I went to Gemfile, I added gem "github-pages", group:jekyll_plugins under the gem "minima", "~>2.5" And after…
Sambo Kim
  • 1,383
  • 2
  • 11
  • 12
5
votes
2 answers

Best practice to install dependencies?

I am thinking of a good way to ship my application which is a python package. Installing my package is easy making use of pythons distutils package. The trouble comes with the dependencies my package relies on. If the dependencies are python…
Woltan
  • 13,723
  • 15
  • 78
  • 104
5
votes
2 answers

How to check each header file includes required include files?

I'm developing my application using C++ and cmake. I'd like to check each C++ header file includes required include files correctly. Here is an example: a.hpp inline void func_a() { } b.hpp // #include "a.hpp" is missing inline void func_b() { …
Takatoshi Kondo
  • 3,111
  • 17
  • 36
5
votes
4 answers

How do I enable dependency management for PlayFramework behind a proxy?

Hi all I'm trying to add new dependency to Play application, but it fails to resolve dependencies. I've added a line: - org.fusesource.scalate -> scalate-core 1.4.1 Now when I'm trying to run 'play dependencies --verbose' I receive following: …
Yura Taras
  • 1,293
  • 14
  • 26
5
votes
2 answers

Installing Raqm (Libraqm) Windows 10

I'm trying to change the direction of text on an image using pil on python3, but I am unable to do so, because the dependency libraqm isn't installed. I can't find a way to install libraqm. I tried to install it through pip, but it didnt work. I…
5
votes
2 answers

Byte-buddy and cglib not available in Spock test

I started playing around with Spock testing framework and my build.gradle dependencies section looks like this: dependencies { testCompile "org.spockframework:spock-core:1.3-groovy-2.5" } I have a (useless) Spock test that requires creation of…
user2340612
  • 10,053
  • 4
  • 41
  • 66
5
votes
1 answer

Can a java 8 project depend on a java 11 dependency in gradle

I have a project in Java 8 and attempting to utilise a library written in Java 11. I am getting an error: class file has wrong version 55.0, should be 52.0 Is this something that is basically not possible or is there some Gradle configuration…
Andy Cribbens
  • 1,370
  • 2
  • 11
  • 22
5
votes
1 answer

How to use requirements.txt or similar for a pickle object

Problem How can I dump a pickle object with its own dependencies? The pickle object is generally generated from a notebook. I tried creating virtualenv for the notebook to track dependencies, however this way I don't get only the imports of the…
U. Bulle
  • 1,075
  • 9
  • 20
5
votes
1 answer

Duplicate class com.google.android.gms.location.places.zza found

These are my dependencies in manifest file implementation fileTree(dir: 'libs', include: ['*.jar']) implementation 'com.android.support:appcompat-v7:28.0.0' implementation 'com.android.support.constraint:constraint-layout:1.1.3' …
5
votes
1 answer

Difference between sun.* vs com.sun.*

I have recently migrated from Java 8 to Java 11. for jax.ws I had to add following external dependency to my pom.xml as it's no longer available in Java 11. However, I came across some argument that com.sun.* package classes should not be used and…
Sagar
  • 5,315
  • 6
  • 37
  • 66
5
votes
4 answers

.Net Deployment Project's Detected Dependencies magically un-excluded

I have a Visual Studio 2005 .NET solution that has 20+ sub projects including a deployment project. The VS2005 .NET deployment project has a number of detected dependences, that have been manually excluded and corrected values manually added…
BrianH
  • 1,082
  • 1
  • 16
  • 23