Questions tagged [transitive-dependency]

A transitive dependency refers to a code path or datasource which has an indirect dependency, such as an object, function, record, or file.

A transitive dependency requires implicit code or data to exist as a prerequisite to access itself.

References

238 questions
4
votes
2 answers

Gradle cannot resolve transitive dependency, but direct dependency works

I have a Gradle build script containing the following dependencies (and not much else): dependencies { testCompile "com.foo:lib-foo:2.0.0-SNAPSHOT" testCompile "com.foo:lib-bar:2.0.2-SNAPSHOT" } The dependencies are resolved from a Maven…
Björn Pollex
  • 75,346
  • 28
  • 201
  • 283
3
votes
1 answer

Gradle maven-publish dependency scope

I have a pretty simple Gradle Kotlin project. plugins { id 'application' id 'maven-publish' } repositories { mavenCentral() } dependencies { compile 'com.google.guava:guava:31.1-jre' // 'compile' is deprecated } publishing { …
Marcel
  • 4,054
  • 5
  • 36
  • 50
3
votes
0 answers

Can two dependencies in Gradle be assigned different transitive dependency versions?

We have a Gradle Java project, and our build.gradle has various module dependencies. Suppose two of those module dependencies are dependencyA and dependencyB: dependencies { implementation 'org.example.dependency:dependencyA:0.13.0' …
erj2code
  • 301
  • 5
  • 9
  • 19
3
votes
0 answers

How to exclude transitive runtime dependency in Gradle

I have a dependency that transitively includes a runtime dependency org.springframework.boot:spring-boot-starter-log4j2 which I want to exclude. I have tried: dependencies { "implementation" ("com.meanwhileinhell.common:my-lib:${commonVersion}")…
MeanwhileInHell
  • 6,780
  • 17
  • 57
  • 106
3
votes
2 answers

Gradle include transitive dependencies in directory

I have a java project which has a couple of dependencies, e.g.: dependencies { compile("com.whatever.jar:jar-1:1.2.3") compile("com.whatever.jar:jar-2:4.5.6") compile("com.whatever.jar:jar-3:7.8.9") } I package it as a jar library and…
zenn1337
  • 481
  • 1
  • 5
  • 25
3
votes
2 answers

Maven Enforcer plugin identifies Dependency Convergence issue within Camel-CXF

The Maven enforcer plugin is identifying a code convergence issue with a 3rd party library I'm using. How can I ignore this whilst still running the enforcer plugin on the project over the rest of the project or how else should I resolve the issue…
3
votes
2 answers

Updating a dependency breaks another one that is using it too (transitive)

In my angular project, I recently upgraded rxjs to version 6. Now, a module from npm (inside the node_modules folder) is failing because of some breaking changes (old imports don't work anymore). I adapted the imports for my code, but how can I fix…
codepleb
  • 10,086
  • 14
  • 69
  • 111
3
votes
1 answer

When using PackageReference as RestoreProjectStyle, how do I avoid type exposure from transitive dependencies?

ProjectA references ProjectB ProjectB references ProjectC ProjectA has PackageReference in the .csproj Given the above, it is possible to directly reference ProjectC types in ProjectA. This is undesirable…
Max
  • 39
  • 1
  • 4
3
votes
1 answer

Transitive dependencies are not visible?

I have customModule which is dependant on user-portal app. user-portal is dependent on util module Here are the relevant POM's customModule POM
scott miles
  • 1,511
  • 2
  • 21
  • 36
3
votes
1 answer

Differences between dependencyManagement and dependencies in maven for "provided" scope

I referred to this thread differences between dependencymanagement and dependencies in maven but this question is specific. Parent POM: com.company.rtdp.rtds
user104309
  • 690
  • 9
  • 20
3
votes
3 answers

Why Maven dependency exclusion would not cause compile error?

Newly exposed to Maven, I can understand the use case of the tag, but not sure why it wouldn't cause compile error: org.apache.maven maven-embedder
sthbuilder
  • 561
  • 1
  • 7
  • 22
3
votes
1 answer

Exclude transitive dependency in Gradle

During build via Gradle I got this POM relocation to an other version number is not fully supported in Gradle : xml-apis:xml-apis:2.0.2 relocated to xml-apis:x ml-apis:1.0.b2. Please update your dependency to directly use the correct version…
m_Z
  • 41
  • 1
  • 1
  • 2
3
votes
1 answer

Maven - installed to local repo, not getting transitive dependencies

I have a maven project that I'd like to share with several of my other projects. It has some custom code, and then a few dependencies on things like log4j, jasypt, etc. I build it and install it to my local maven repo. I can see it's successfully…
medloh
  • 941
  • 12
  • 33
3
votes
1 answer

Gradle: Do not let transitive dependencies to be used in project sources

In a project using Java 8, joda-time is a transitive dependency of a project dependency. I want to enforce use of java time instead of joda-time in project source. How can joda-time classes be restricted to be used in project source in a gradle…
TheKojuEffect
  • 20,103
  • 19
  • 89
  • 125
3
votes
1 answer

Gradle transitive dependencies not working?

So I have a project over here that has the following build.gradle: // PLUGINS plugins { id 'java' // or 'groovy' Must be explicitly applied id 'com.github.johnrengelman.shadow' version '1.2.2' } apply plugin: 'application' apply plugin:…