Questions tagged [dependency-resolution]

Dependency resolution is the process of resolving declared/required dependencies and any potential transitive dependency through the concerned dependencies graph, for instance during a build of a software product.

Dependency resolution is the process of resolving declared/required dependencies and any potential transitive dependency through the concerned dependencies graph, for instance during a build of a software product.

Well known build tools like , or make use of dependencies and handle dependencies resolution as part of their core mechanisms.

More Info

41 questions
2
votes
2 answers

Yarn workspaces -- package alias

TL;DR How can I create an alias for a local yarn workspace dependency? I've tried yarn workspaces before and never succeeded, and I'm giving it another try. I've set "workspaces": ["packages/*"] in package.json. For each package, I decided to use…
David Callanan
  • 5,601
  • 7
  • 63
  • 105
2
votes
0 answers

Gradle resolution strategy cacheDynamicVersionsFor isn't working

I want to push Gradle to redownload my SNAPSHOT dependencies every time. It's possible to do it via --refresh-dependencies. But I want to do it programmatically in a next way: configurations.all { resolutionStrategy.cacheDynamicVersionsFor 0,…
2
votes
1 answer

how to specify the number of threads used by SBT during any command?

Maven has the -T option. Is there anything similar for SBT? How can make it download my dependencies in parallel threads rather than doing it sequentially?
MozenRath
  • 9,652
  • 13
  • 61
  • 104
2
votes
1 answer

Gradle transitive dependency doesn't respect version

I have a Gradle 3.5 project, and in that project I depend on an artifact: compile "a.b.c:depProject:1.1.0" "depProject" is a Maven project, where in that project's pom file, it depends on another artifact:
billjamesdev
  • 14,554
  • 6
  • 53
  • 76
2
votes
0 answers

Dependency resolution take too much time. How to reduce?

Gradle build report html showed the Dependency Resolution total time over 30s for every time I run my app no matter how many things I modified. I feel it is unreasonable to take so long time for resolving dependencies for each time I run, cause the…
KFJK
  • 115
  • 6
2
votes
1 answer

Eclipse - failure to find parent pom, but maven build actually works from Eclipse itself

Eclipse keeps telling me it can't find the parent pom of my project, but if I run mvn -U install on my project, from Eclipse, the build works. I'm using Eclipse Neon.1 Release (4.6.1), and configured it to use my external maven, which is maven…
Henrique Ordine
  • 3,337
  • 4
  • 44
  • 70
2
votes
1 answer

DependencyResolutionException when upgrading from Maven 2.2.1 to Maven 3.0.4

I'm trying to upgrade my project from Maven 2.2.1 to Maven 3.0.4 but am running into problems with a dependency resolution. I spent a full day trying to research this by looking through Maven documentation and similar posts, but I'm still stuck.…
Brain Dump
  • 29
  • 1
  • 3
1
vote
0 answers

Gradle: A ResolvingStrategy that would behave like Maven's `nearest first`?

I came to set of projects built by Gradle, where upgrading only happens when something stops building, or an infamous CVE appears. Which leads to very wild range of incompatible versions, which just happen not to collide by coincidence (not…
1
vote
2 answers

Unity Android plugin: error: resource android:attr/IStar not found

I'm developing an Android Bluetooth plugin for Unity using Kotlin. I included the .aar file of my Kotlin library (which works perfectly in an app running in Android Studio), and since I was getting some dependency errors in runtime, I started using…
1
vote
0 answers

How to generate python pip dependency ranges?

I am working on a python library and we are currently using pip-tools to pin dependencies. E.g. a basic requirements.in: black pandas torch Running pip-compile on this file will generate a requirements.txt something like the following (which has…
amin_nejad
  • 989
  • 10
  • 22
1
vote
1 answer

Forbid runtime dependency on package in Nix overlay

Task description I want to make sure that no derivation I install has no run-time dependency on specified set of derivation. If I ask nix-env to install package that has such run-time dependency, I want it to say that I am asking for impossible.…
KAction
  • 587
  • 2
  • 10
1
vote
1 answer

Sbt and maven using local artifactory server

Similar to Getting both Maven and SBT use local Artifactory-server I want to get sbt and maven to use the local artifactory server. For SBT I am facing some problems: (o.a.r.RemoteRepoBase:766) - IO error while trying to download resource…
Georg Heiler
  • 16,916
  • 36
  • 162
  • 292
1
vote
1 answer

SBT transitive dependency resolution conflict

I have a problem in SBT resolving transitive dependencies. The error is: java.lang.NoSuchMethodError: com.vividsolutions.jts.index.strtree.STRtree.queryBoundary()Ljava/util/List Geospark is using jts2geojson…
Georg Heiler
  • 16,916
  • 36
  • 162
  • 292
1
vote
2 answers

Resolve Service Implementation from Autofac based on Runtime Session Value

Need some help trying to solve a problem resolving an implementation of a service at runtime based on a parameter. In other words use a factory pattern with DI. We have Autofac wired in to our MVC application. I am trying to figure out how we can…
JDBennett
  • 1,323
  • 17
  • 45
1
vote
2 answers

using POJO domain jar in Grails 3

I'm trying to port a Grails 2.x project to Grails 3. The 2.x based project has domain made up of POJOs in a JAR but now v3 does not have a /lib directory any more and doc suggest the following: 4.7 Dependency Resolution Dependency resolution is…
vector
  • 7,334
  • 8
  • 52
  • 80