Questions tagged [dependency-management]
The management of dependencies, for example third party libraries, that are used by a software project.
2,954
questions
0
votes
0
answers
22
views
Kotlin Gradle: add "compile ..."
I have an almost brand new Gradle based project:
plugins {
kotlin("jvm") version "1.9.20"
application
}
group = "me.arekbulski"
version = "1.0-SNAPSHOT"...
0
votes
0
answers
25
views
deduplicate (different file contents found in the following) of netty and jackson after changing to Kafka 2.4
I want to benchmark different versions of Kafka. I've already done some tests for Kafka 2.0 to 2.3. After changing to Kafka 2.4 (also tried for 2.5), I'm flooded with errors concerning deduplicates: ...
-1
votes
0
answers
32
views
Why is it that side-by-side versioning can be used only if DLLs have no shared dependencies?
This article describes the DLL hell problem and ways to solve it. One way is called side-by-side versioning:
The operating system places each shared library’s assembly at the central location we call ...
0
votes
0
answers
18
views
Can I include groups to install in path dependencies with Poetry?
I have a Poetry project where I have a path dependency, which also is managed with Poetry. This path dependency has optional groups which contain optional dependencies, and I would like to install one ...
-1
votes
0
answers
36
views
Should I use <dependencyManagement> tag in a non multi module Spring Boot project?
I'm learning about Spring Boot and I have a simple Spring Boot project with some problems, but the POM of this project looks different for me because it doesn't have <parent> tag, also it has ...
0
votes
0
answers
58
views
AWS MWAA conflicting dependencies between compatible versions requirements.txt
I am setting up a AWS Managed Workflows for Apache Airflow (MWAA) environment using airflow version 2.6.3, and I am using a requirements.txt file to install my desired python packages as suggested by ...
2
votes
2
answers
79
views
How to stop transitive dependency from appearing in your project
For example I use a library B from NuGet in my project A :
Referencing:
<PackageReference Include="B" Version="1.0.0"/>
Usage:
namespace A.Helpers
{
public interface ...
1
vote
0
answers
9
views
How to set changing=true on versionCatalogs in gradle
We have a in-house versionCatalog on our Nexus repository, and now (in development phase of the project) it is changing frequently.
In our projects settings.gradle we have following block:
...
1
vote
0
answers
12
views
How to properly declare optional dependencies both as extras and in dedicated groups in Poetry?
From Poetry documentation about the difference between groups and extras:
Dependency groups, other than the implicit main group, must only contain dependencies you need in your development process. ...
1
vote
0
answers
48
views
Maven child module does not inherit dependency versions from managed dependencies set in parent when running any maven task on parent
This issue is driving me crazy. I have a parent that defines a bunch dependency versions using dependency management. Then I have a child module that uses these dependencies. The problem is that while ...
1
vote
0
answers
59
views
pyproject.toml setuptools: How can I specify optional scripts (and modules)?
I have a python project with some modules, scripts and optional dependencies:
[project.optional-dependencies]
extra = [ "tqdm", "antspyx>=0.4.2", "scikit-image", "...
0
votes
0
answers
157
views
Poetry Update Fails: Unable to Find Installation Candidates for pyqt5-qt5 (5.15.11)
My Environment:
Operating System: [Windows 22H2]
Python Version: [3.11]
Poetry Version: [(version 1.7.1)]
Attempted Solutions:
Clearing Poetry's cache
Directly specified different versions of pyqt5-...
0
votes
1
answer
32
views
Maven: exclude transitive dependency in some modules
The project includes 7 modules.
And the task is to exclude transitive dependency for one library in 4 modules.
Seemingly simple way is to write in each of 4 pom files:
<dependency>
<groupId&...
0
votes
0
answers
17
views
difference between Spring Boot's dependency-management Gradle plugin and Gradle's dependencyResolutionManagement / versionCatalogs
We have a relatively large Java project (~20 modules) building with Gradle that we have been upgrading over the past few months to follow better practices.
One of the main issue we have is around ...
0
votes
1
answer
34
views
com.google.gdata - Maven Dependency
I am new to maven. My maven project has the following dependencies -
<dependency>
<groupId>com.google.gdata</groupId>
<artifactId>gdata-analytics</...
0
votes
0
answers
11
views
Third party dependency not loaded for class library I created and being referenced by a WPF project
I have a class library that has dependencies to a lot of packages from NuGet. Examples include Microsoft.Identity.Client, System.Diagnostics.DiagnosticSource, and System.Text.Json.
I reference this ...
0
votes
1
answer
53
views
forcing the version of a library's transitive Maven dependencies via the library itself
I'm familiar with how a Maven project such as my-app can force the version of transitive dependencies. Today I stumbled onto a related question: how can a library my-lib force the versions of its ...
0
votes
1
answer
77
views
Update old java project dependecies to the leatest [duplicate]
I have an old (~2005) java EE project which I would like to update to the latest dependencies.
The web project doesn't have any software project management tool like Maven or Gradle.
Some dependencies ...
0
votes
1
answer
23
views
python package's hash not found in poetry.lock file
i have 2 python projects named my-package and my-project. my-package acts as a framework and is a dependency of my-project. I use poetry to manage dependencies and i host my-package on a private ...
0
votes
0
answers
52
views
Conan 1.X and CMake disagree on toolchain
I have a C++ project that has some 3rd party dependencies that I build on the fly using
cd build
conan install .. --build=missing
cmake ..
However the last command produces this error:
CMake Error at ...
0
votes
0
answers
35
views
Poetry unable to install plenty of packages
I am trying to install the pytorch3d library directly from Github via poetry. I noticed, however, that apparently this library is not PEP-517 compliant. It has a build-time dependency on torch but ...
0
votes
1
answer
52
views
In Android Studio mavenCentral PocketSphinx library is not working
I created an app like AI assistance for my Android version 13 phone in Android Studio and I am having trouble importing the "PocketSphinx" library to use it for offline custom wake word ...
0
votes
0
answers
32
views
How to solve the path conflicts in two jar
I have two jars with same class path:
jar1: com.xxx.events.EventFamily, com.yyy.OtherClass1
jar2: com.xxx.events.EventFamily, com.yyy.OtherClass2
I want to keep them both in my project and jar2 ...
0
votes
0
answers
62
views
Why does Dependabot always have merge conflicts with lock file (pnpm-lock.yaml)?
I have a monorepo which I manage with turborepo. I use Dependabot on GitHub to manage dependencies.
As far as I can tell, the Dependabot pull requests always have merge conflicts for the lock file (in ...
0
votes
0
answers
7
views
Gradle Dependency Conflict: "the unnamed module reads package from both" Errors
I'm encountering a series of dependency-related errors after adding implementation 'com.google.firebase:firebase-admin:6.11.0' to my Gradle project. These errors seem to be related to conflicts ...
0
votes
0
answers
27
views
Can dependency:build-classpath build from a template?
I use dependency:build-classpath to produce the cp.txt listing the dependency JARs which I don't want bundled together with mine.
The shell-script launching my program is a one-liner:
#!/bin/sh
exec ...
0
votes
1
answer
605
views
Best practice to update dependencies in Python with Poetry
What is the best practice to automatically update python dependices when working with poetry on github?
I would simply set up an action that runs poetry update (https://python-poetry.org/docs/cli/#...
0
votes
1
answer
35
views
Updating jackson dependency in spring-boot project
My project has spring dependency bom as <dependencyManagement> since this comes with jackson 2.13.4 bom and it has some vulnerabilities, I would like to update this dependency.
Unfortunately, ...
0
votes
0
answers
22
views
Accessing BOM information from a Maven projet using that BOM
I have a BOM project which contains some information for some dependencies, with a pom.xml like this for example :
[...]
<dependencyManagement>
<dependencies>
<dependency>
...
0
votes
0
answers
18
views
CMake 3.27 ExternalProject_Add not downloading
I've been using CMakes ExternalProject_Add functionality to handle dependencies for some time now. Today I decided to use a different workstation which had the newer CMakes 3.27 installed.
I noticed ...
0
votes
2
answers
421
views
How to set up Renovate Bot for Gitlab including private dependencies?
I have successfully configured Renovate Bot to run on a schedule by following the instructions presented in this GitLab repository - https://gitlab.com/renovate-bot/renovate-runner. The problem is ...
0
votes
1
answer
50
views
How to Manage Many Depdencies with DevContainers
I'm currently building a development environment based on VS Code DevContainers. To build all configurations of the software I would need roughly 50GB of tooling dependencies. This in and of itself is ...
0
votes
1
answer
151
views
Gradle dependencyManagement from spring.dependency-management is not working
I have a multimodule project, with such build.gradle in the root:
plugins {
id "io.spring.dependency-management" version "1.1.3"
id "org.springframework.boot" ...
0
votes
1
answer
44
views
Catching a Dependency Issue in an Apache HBase Project in Java
While I am diving today in the source code of apache hbase project, I encountered some difficulties to follow up with a dependency to access its source code: HBase Unsafe, which is mentioned in the ...
1
vote
2
answers
114
views
Dealing with direct dependency that's also a transitive dependency
I have a Maven project with two direct dependencies, let's call them dep-a and dep-b, that are both used heavily in the project. dep-a itself has a transitive dependency on dep-b. For compatibility ...
1
vote
2
answers
55
views
Strange version string / number error when using pillow
This simple python program:
import pyautogui
# Get the screen size
screen_size = pyautogui.size()
# Capture the screen and save it to a file
screenshot = pyautogui.screenshot()
screenshot.save("...
0
votes
1
answer
81
views
What is exactly a bundler?
I am pretty confused about what a bundler really is and mostly its difference, if there is, between a package manager? Is bun for instance a bundler?
I haven't found yet a clear explanation resolving ...
0
votes
0
answers
74
views
BigQuery Storage Read API Dependencies
I am working on a project that uses storage read api to retreive data from big query tables, I notice that official guide suggests to specify both the bom and dependency, like this:
implementation ...
0
votes
1
answer
43
views
Ignite PeerClassLoading for Transitive Dependencies
I am using ignite compute task to retreive data from BigQuery. Here is the configuration on both thick client and server sides:
<property name="peerClassLoadingEnabled" value="true&...
1
vote
0
answers
46
views
Dependabot only looks at manifest files in default branch?
I'm trying to set up dependabot (dependency version updates specifically) and want to test it in a side branch before merging it into the default branch, but I can't get it to "look at" the ...
0
votes
0
answers
131
views
Adding two branches of a single git repository as dependency in pyproject.toml for python-poetry
Imagine we possess an individual, private Git repository that's included in the pyproject.toml file as a dependency in a second repo, managed by python-poetry. The development branch of this ...
2
votes
1
answer
1k
views
npm ERESOLVE Error When Installing @agm/core with Angular 16.2.3
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: [email protected]
npm ERR! Found: @angular/[email protected]
npm ERR! node_modules/@angular/...
0
votes
2
answers
164
views
Using the versionCatalog plugin within a Multi Module Project - Gradle kts
I have a Gradle Kotlin mutli module project and want to be able to use the versionCatalog that is built in one of the modules within the same project.
The versionCatalog is built using the version-...
0
votes
0
answers
16
views
Fix 'java.lang.NoSuchMethodError' conflict between ReportPortal & com.fasterxml.jackson in Maven Cucumber project
I'm using the Report Portal dependency in my Maven Cucumber project, along with a separate JAR library that I've incorporated by installing it in the M2 folder. Both of these libraries internally rely ...
2
votes
1
answer
478
views
Addressing critical vulnerabilities in Maven dependencies
I'm working on a Java Jersey application. In my pom.xml file, I've included certain Maven dependencies that have critical vulnerabilities.
Even after upgrading to the latest versions, some of these ...
0
votes
2
answers
48
views
color.dart not getting imported in the other files
In my project(flutter app) there is a file named color.dart inside the folder helper which is inside the lib folder. The content of the color.dart file is not getting imported in the other files(...
2
votes
1
answer
46
views
How to add alternative HSQLDB jar as a gradle dependency?
Context: I am working on Apache Calcite (repo: github.com/apache/calcite) and am trying to update the HSQLDB version to 2.7.1 to address https://nvd.nist.gov/vuln/detail/CVE-2022-41853 (the issue is ...
0
votes
1
answer
67
views
How to change Spring Boot starter dependency to newer version in Maven?
I need to update library's version to the latest because of vulnerability. For example, I have a starter (but it can be related not only to starter, it can be any library that relates on other ...
0
votes
0
answers
46
views
How to manage dependencies in a shared git subtree?
Lets say I have four git repos named A,B,C, & D
A,B, & C (customer repos):
Each repo contains a Django project for customers 1, 2, & 3 respectively
Each customer exists in an air gapped ...
0
votes
0
answers
44
views
Maven dependency resolved, but still not working in my maven project
I two maven projects A and B. B is meant to be a service for A, therefore A should depend on B, because it needs to create some objects to send in as an api request to B. Everything seems to work fine:...