Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [dependency-management]

The tag has no usage guidance.

1
vote
1answer
92 views

Best practice of c/C++ dependency management on build servers?

I develop largely in java which has maven or ant/ivy. Is there a recommended way to manage build dependencies for c++ projects? I'm setting up the build on our build server right now but the thing ...
1
vote
1answer
63 views

Managing a third party library that is used by multiple independent libraries

I am working on configuring the build environment for a C++ project that uses multiple libraries. These libraries are independent of each other, but they all depend on the same 3rd party library (...
1
vote
1answer
21 views

working with multiple libraries and versions using nuget local feed

so I am in a position where I doubt my solution to the following problem: - we are developing a wpf desktop application with c# and have a decent plugin system. This increases the libraries we have ...
0
votes
0answers
46 views

Structuring dependencies for .Net core across Nuget packages

I am working on a microservices system in c# (.Net Core) where for simplicity we place each microservice in it's own repo. Some services are very generic and some are very similar (although for ...
4
votes
3answers
748 views

Resolving circular dependency between two classes

I am trying to resolve a circular dependency between two components in my system. The Messenger component is responsible for sending and receiving messages on a web socket. The Controller component ...
0
votes
0answers
25 views

How to handle sharing of same context in Repositories-Unit of Work when using dependency injection

I have a problem that knocks out me. Background: I am inside the devolpment of a WinForms app that is not layered. Almost all the events are handled in the Form class. I have multiple IRepositories. ...
66
votes
9answers
15k views

Why prefer a package manager over a library folder?

When I think about the pros and cons of a static library folder and a package manager I feel like the library folder is a better approach. Pros I see with a library folder: No need for an external ...
0
votes
0answers
13 views

WebApplication depends on WebContainer or counterwise?

I saw this question on stackoverflow. I am not able to see any output. It is a good question and it is solved good too. Please check the well-voted answer focusing on what-depends-on-what. ...
0
votes
0answers
70 views

Combine output of mvn dependency tree with OWASP analysis results

In this question, I want to know whether a standard (in terms of the two described below) automated procedure exists I am not aware of or I have to build a custom solution. On one hand, we can call ...
2
votes
1answer
74 views

Efficient dependency management between components

Let's say my app depends on lib A that depends on B that depends on C (we are owners of them all). Now, you bump the version of C to 1.0.1 (a bug fix). How would you propagate the change of C to the ...
3
votes
0answers
156 views

Multiple Git repos practices for distributed environment

In a nutshell what I need is a simple good practice for multiple (loosely coupled or tightly coupled), git repositories I would love to hear there is a good framework for that, but I have read a ...
3
votes
2answers
662 views

“Crossing Boundaries” in Clean Architecture

I am a layman without any programming-like education but I spent the better part of my free time to get into programming bots for some games in first AutoIt and then C++. I was introduced to ...
0
votes
3answers
225 views

Inject type as dependency injection, when new instances are required on each method call - How to avoid?

I have a class public class CertificadoHandler : ICertHandler { Type typeAfirmaValidate; public CertificadoHandler(){ typeAfirmaValidate = typeof(AfirmaValidateCertificate); } ...
-1
votes
3answers
196 views

Refactoring - Resolve dependencies between legacy code used by third parties

I am developing two libraries in .Net Firs one it's a library with core functionality (named it Library.Core.dll) Let's focus in User class public class User { //set of constructors and ...
2
votes
1answer
2k views

Singleton with dependency injection ,is that a good practice in some cases?

It's a good idea to have a Singleton implementation with dependency injection? I have some classes that performs some heavy tasks on instantiation (related to database loading). I would like to use ...
1
vote
2answers
1k views

Remove circular dependency

I have 2 classes that have dependencies. public class AuditManager { //set of methods public static AuditManager Singleton= new AuditManager(); public int AuditEvent(int x){ ...
0
votes
1answer
147 views

Is it possible to ship libraries with code?

Is there any way to safely include libraries (either internal or external) in the directory of a project (say in a lib/ folder) when you ship or release code? As far as I can see it would be a lot ...
2
votes
3answers
145 views

Common libraries in build chain

Like many (most ?) people, we have multiple "common" libraries managing various things (business objects, utilities, external libraries...) for multiple projects (web service, admin/users site, ...
3
votes
1answer
96 views

Organizing code to minimize repetition and external references

I am struggling with how to organize external references in a C# program in order to minimize code repetition. I have application "A1" for which I want to use Microsoft's Unity IoC/Dependency ...
1
vote
1answer
150 views

Where is the composition root for a class library's internal classes?

How do we manage dependency injection in class libraries? Given the following class structure, we would like to inject an instance of Bar into Foo, and we would rather not make this the client's ...
2
votes
1answer
136 views

Automatically update and test npm dependencies

I would like to automate the following sequence of events; A new version of Angular is released on Github 'Something' triggers causing all our angular applications to update their npm dependencies ...
2
votes
1answer
118 views

Design/Architecture for passing cross-cutting parameters via constructors at composition roots?

We have an ASP.NET MVC application and a bunch of libraries that are used by the application. There are cross-cutting concerns and dependencies like loggers, repositories, user tokens etc that almost ...
0
votes
1answer
42 views

Using business objects with composite ID from a different module

We have two modules: D and S. S has a Web Service interface, which is being used by D. S's responsibility is managing a domain of objects held in a folder-like structure. So, it contains a method ...
25
votes
6answers
3k views

When should dependencies be updated?

We had two major dependency-related crises with two different code bases (Android, and a Node.js web app). The Android repo needed to migrate from Flurry to Firebase, which required updating the ...
9
votes
2answers
2k views

How to properly manage dependencies for C/C++ project?

I have a project which uses 3-4 different open source C/C++ libraries. I built these libraries for several platforms and checked in include files and static libs for different platforms in my project....
3
votes
1answer
929 views

What are common Java dependency management strategies?

I am currently preparing a presentation for my software engineering class, in which I want to present the idea of package dependency management in Java on the example of "radial encapsulation" (http://...
4
votes
1answer
529 views

Using private NuGet repository and Jenkins to handle dependencies

I am experimenting with using a private NuGet repository and jenkins to deal with dependencies. Let's say we have exe A and libraries B,C and D. Exe A depends on library B which depends on C and D. ...
4
votes
2answers
3k views

For which problems are dependency exclusions sensible solutions?

I've seen a few build tools in my career, and they've all had their quirks. I'm just now looking into Maven, and came across the idea of "dependency exclusions" for the first time. I honestly don't ...
5
votes
2answers
2k views

Policies on NuGet dependencies versions when developing a library

I'm building a C# library and have some dependencies through NuGet packages. I'm trying to minimise entry barrier and using the very early versions of dependency packages. For example I use Newtonsoft....
2
votes
2answers
560 views

How to keep track of maven dependency updates in projects?

How do you keep track of maven dependency versions? Let's say you are using version 1.0.5 of an library. <dependency> <groupId>groupIdName</groupId> <artifactId>...
1
vote
2answers
158 views

Is cache an optional dependency?

Recently, one of my colleagues stated that the cache should always be required dependency. We should require it in non-null constructor parameter. And we can't use null-object pattern with it. How to ...
3
votes
2answers
1k views

Eliminating cyclic dependency

I want to avoid cyclic dependency in this schema: DbRepository needs IUserDbEntityFactory to create User entity which needs IUserPublishedInfoInitializer to create UserPublishedInfo on request. And ...
2
votes
2answers
61 views

How can I track down a dependency that is causing an X509TrustManager error without having the source?

I am maintaining and Android app that now suffers from an unsafe X509 TrustManager implementation. Since the app doesn't make any HTTPS calls except through dependencies, one of the dependencies is ...
4
votes
2answers
169 views

Detecting breaking changes when modifying shared code

Currently we have about 20 solutions. The majority of these have multiple projects, including share utils projects, data access, etc. We've had a few problems where a contractor changed something in ...
2
votes
0answers
200 views

Is Nested Structure with Spread Responsibilities Not Logical?

Given the following code snippet in a Laravel Controller: $this->userRepository->saveByProject( $this->fileRepository->saveByProject( $this->metricRepository->...
2
votes
2answers
483 views

Why does the development team of IntelliJ IDEA‎ store its dependencies as jars (e.g. JUnit) inside their cvs?

The very popular IntelliJ IDEA‎ has currently saved a lot of dependencies as actual jar files in their git repository e.g.JUnit, which I don't understand. Build tools like Maven provide excellent ...
1
vote
1answer
331 views

How does maven internally manage package dependency?

Can some let me know how does maven internally manages package dependency? Is there any architecture diagram available on the net for the same? I also asked this in Quora and maven user mailing list ...
0
votes
1answer
50 views

Should I add library to my project requirements if this library is already required by other requirement? [duplicate]

Let's say I have some library "foo" and I have it listed as dependency of my project. For example in Python I have requirements file saying foo==1.0 foo library needs "bar" library and it lists it ...
2
votes
2answers
297 views

Revisiting Fowler's “Public versus Published Interfaces” article with regard to versioning and microservices

In this short article Public versus Published Interfaces from 2002, Martin Fowler distinguishes between easily changeable "public interfaces" and harder to change "published interfaces": The key ...
12
votes
2answers
588 views

Is it better to rely on transitive dependencies or explicitly declare them?

I have a project structure like this: My Project - Other Team's Project -Third Party Dependency My Project requires Other Team's Project to function, and both My Project and Other Team's ...
3
votes
1answer
327 views

What's a good way to manage my code's dependencies on libraries without releases?

I'm writing this small utility, FOSS but not intended for wide deployment, packaging in OS distributions etc. My utility depends on several libraries - some are header-only (it's C++), some are ...
1
vote
1answer
491 views

How to map references in different VB.Net solutions

I just come to a small company. There are more than 500 solutions in different VS.Net versions and even VB 6.0 projects. They share several dll. Is there a way to map relation between each program? ...
10
votes
3answers
5k views

Using Interfaces for Loosely Coupled Code

Background I have a project that depends on the usage of a certain type of hardware device, while it doesn't really matter who makes that hardware device as long as it does what I need it to do. With ...
5
votes
2answers
7k views

Communication between microservices - distinguishing internal calls safely

I am rearchitecturing and rewriting my monolithic BaaS solution into microservices regarding to scalability and single responsibility rules. Due to the internal dependencies, services are placed on ...
9
votes
1answer
2k views

Node.js dependencies weigh too much

Recently I started playing with node.js. Now, every node tutorial out there states that you should start with npm init and then, say you want some standard server framework, say you choose express: ...
1
vote
1answer
75 views

What Strategy to Employ when Updating a Dependency [closed]

I am working on an application which works with an old version of a dependency. Due to a recent change request, there is a need to update to a newer version. I have the option of not upgrading to the ...
1
vote
0answers
72 views

Does it makes sense to manage production/dev/test database dumps as a dependency?

I often struggle with the idea of deploying applications in productive, dev and test environments (not unit testing, I mean like a sandbox) when it comes to databases. And no, source control is not ...
2
votes
1answer
306 views

Using Spring in Java Project

I've got a question about a correct usage of Spring. I know that some people use the DI "aggressively" so that they always use spring and completely eliminate the usage of word "new" in the ...
1
vote
1answer
161 views

How to handle optional dependencies in php?

At my Job I'm currently on refactoring a very old php CMS. By now, "code handling" was done by simply copying the whole thing and modify it to fit whatever was needed for this job to be done (actually ...
0
votes
4answers
619 views

Circular dependencies: Recursive grammar parser (e.g. json)

(TLDR) To build a parser for a recursive grammar by composition of individual parsers (e.g. with a parser combinator framework), there are often circular dependencies between some of the individual ...