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
3
votes
1 answer

Gradle replace transitive dependency log4j with logback

is it possible to replace log4j from a transitive dependency with logback? Here are my gradle dependencies (https://github.com/geoHeil/lab04/blob/master/build.gradle): dependencies { compile group: 'org.apache.hadoop', name: 'hadoop-common',…
Georg Heiler
  • 16,916
  • 36
  • 162
  • 292
3
votes
2 answers

Don't use later library version from transitive dependency in Gradle

in my Android project I use compile 'com.squareup.okhttp:okhttp:2.2.0' I need okhttp in version 2.2.0 for my code to work properly. But I have a problem when I add compile('io.intercom.android:intercom-sdk:1.1.2@aar') { transitive =…
bakua
  • 13,704
  • 7
  • 43
  • 62
3
votes
1 answer

Can I use an Android AAR's resources in an APK that depends on it?

Can I use resources (strings, assets, drawables) from an Android AAR (lib1) in an APK that depends on it? What about resources in a transitive AAR (lib2) that lib1 depends on?
Heath Borders
  • 30,998
  • 16
  • 147
  • 256
3
votes
1 answer

maven - How to solve this error : "The POM for XXX is invalid"?

I'm building a simple project with maven. I'm unable to get it to build because a transitive dependencies is missing, namely objenesis 1.0. I run maven in debug mode and got this message: [DEBUG]…
Stephan
  • 41,764
  • 65
  • 238
  • 329
2
votes
0 answers

How to make annotationProcessor transitive from custom lib

I'm using my own lib, which configuring core dependencies and other stuff for micro-service product (some kind of custom starter). To make dependencies transitive (auto-import in inherited projects) i'm using gradle api(dependency) in lib…
2
votes
0 answers

How to control which transitive dependency versions get installed for a NuGet package?

In my solution, I have two Class Library projects targeting .NET 5. When I install the NuGet package Microsoft.Azure.Management.DataFactory to both projects, they install separate dependency versions for that package. For example, Project A will…
Stefan
  • 249
  • 1
  • 10
2
votes
0 answers

When Should I Disable Transitive References in C#?

Let's say that I have the following projects: Project A Project B - References Project A Project C - References Project B If I set true in Project C's .csproj, Project C will…
Tea
  • 160
  • 7
2
votes
0 answers

Android Gradle Dependency Duplicate Class Error

After installing Square's Reader SDK into my app, I'm running into duplicate class errors between some Gradle dependencies as shown below. My app module dependencies: dependencies { def readerSdkVersion = "1.3.5" implementation…
2
votes
1 answer

How to get, resolve and verify transitive/cyclic dependency

I need some custom way to resolve variable which might have transitive and verify cyclic/un-resolvable fields. e.g. var v1 = 'asd'; var v2 = '@@{v1}@@'; var v3 = '@@{v2}@@'; var v4 = '@@{v3}@@'; var v5 = '@@{v4}@@'; var v6 =…
Akhilesh Kumar
  • 9,085
  • 13
  • 57
  • 95
2
votes
1 answer

Gradle: How to allow only specific transitive dependency

I would like to globally disable all transitive dependencies. I am using the following and it works fine. configurations.all { transitive = false } Problem is that I need to allow transitive dependencies for one specific dependency. Is there a…
2
votes
1 answer

Maven Repository on Github not downloading transitive dependencies

I have created a maven repository and uploaded it to Github. When I add it as a dependency to a sample project, the gradle sync completes successfully. But when I try to run the app, it crashes with a java.lang.NoClassDefFoundError. Link to…
Rishabh Jain
  • 297
  • 2
  • 13
2
votes
1 answer

How Java 9 modules solve problems associated with transitive dependencies?

I read that java 9 modules helps solving the problems that appears when pulling several versions of the same dependency due to transitive dependencies. I cannot see why. If you bring several modules you can obtain also the same problem. I mean, if…
user1065569
2
votes
1 answer

Android - Gradle - How to download transitive dependencies for an included jar

I have included a jar in my android project, build.gradle as implementation files('libs/dependency_a.jar'); But there are dependencies with are needed by this jar file, which can be downloaded from the internet but don't get downloaded while…
2
votes
0 answers

Program type already present: android.arch.lifecycle.LiveData

Program type already present: android.arch.lifecycle.LiveData$1 Message{kind=ERROR, text=Program type already present: android.arch.lifecycle.LiveData$1, sources=[Unknown source file], tool name=Optional.of(D8)} Im currently studying android…
Marc Ebra
  • 43
  • 4
2
votes
2 answers

Maven-Assembly-Plugin include specific dependency and its transitive dependencies

I want to include only a specific jar and its dependencies using maven-assembly-plugin something like below. My expectation is to copy apache-cxf-2.7.11 and all its dependency jars into "lib/apache-cxf-2.7.11"
Shankar Anand
  • 223
  • 1
  • 3
  • 11