Comments (8)
I don't entirely follow this request. Could you share a sample of the expected output from such a feature?
from dependency-analysis-gradle-plugin.
This may be user error, but if you have a build that leverages java-test-fixtures
(Docs), it will add a dependency on a project with a capability rather than the normal project.
If you want to look at the "reason" output, i.e. figure out why that dependency is used in the project, there's no way to request it specifically today. Calling --id ':other-project'
will return all usages from all capabilities.
Edit: I had the output wrong in my initial comment, but it still stands that there's no way to differentiate teh different capabilities/artifacts.
from dependency-analysis-gradle-plugin.
Here's a project: https://github.com/Nava2/dependency-analysis-test-fixtures-project-example
$ ./gradlew :lib:reason --id ":other-project"
> Configure project :
WARNING: Unsupported Kotlin plugin version.
The `embedded-kotlin` and `kotlin-dsl` plugins rely on features of Kotlin `1.9.20` that might work differently than in the requested version `1.9.22`.
> Task :lib:reason
----------------------------------------
You asked about the dependency ':other-project'.
There is no advice regarding this dependency.
----------------------------------------
Shortest path from :lib to dependency-analysis-test-fixtures-project-example:other-project for compileClasspath:
:lib
\--- dependency-analysis-test-fixtures-project-example:other-project
Shortest path from :lib to dependency-analysis-test-fixtures-project-example:other-project for runtimeClasspath:
:lib
\--- dependency-analysis-test-fixtures-project-example:other-project
Shortest path from :lib to dependency-analysis-test-fixtures-project-example:other-project for testCompileClasspath:
:lib
\--- dependency-analysis-test-fixtures-project-example:other-project
Shortest path from :lib to dependency-analysis-test-fixtures-project-example:other-project for testRuntimeClasspath:
:lib
\--- dependency-analysis-test-fixtures-project-example:other-project
Source: main
------------
(no usages)
Source: test
------------
* Uses 1 class: com.example.dependency_analysis.TestFixture (implies testImplementation).
I'm unsure how to get advice for why the testFixture(project(":other-project"))
is applied
from dependency-analysis-gradle-plugin.
@autonomousapps I added some more context, I had my initial question incorrect as the test fixture content is there. It's just not marked/obvious what is coming from where. I updated the initial description and my previous comment! Apologies for confusion.
from dependency-analysis-gradle-plugin.
@jjohannes this might be something interesting for us to take a look at.
from dependency-analysis-gradle-plugin.
The capability
information appears to be in the JSON output, so I hope this is just a visualization change 😅
from dependency-analysis-gradle-plugin.
Hey, just noting here, I ran into this same issue today, the parameter proposed by @Nava2 would definitely be helpful to me as well!
from dependency-analysis-gradle-plugin.
This seems to be related #1170
from dependency-analysis-gradle-plugin.
Related Issues (20)
- Feature Request: Advice on modules that could/should be combined HOT 1
- Add an option to shush the AGP compatibility warning HOT 4
- Adviced to add transitive which is exposed as Kotlin default value in used lib function HOT 1
- `reason` task only shows used classes if there are no exposed classes HOT 3
- Support coreLibraryDesugaring configuration HOT 1
- Incorrect module structure advice HOT 1
- Add flag to silent the console output for the ProjectHealthTask HOT 2
- Provide modularization advice based on dependency information HOT 1
- JPMS HOT 7
- Annotations used to annotate and things (enum constants, class literals, ...) used for annotation member values should not count to ABI HOT 1
- explodeXmlSourceDebugandroidTest task fails with `Premature end of file` exception when androidTest sources include an xml file with no content HOT 3
- How to change buildHealth task's dependencies HOT 1
- How can I ignore specific flavor & build type? HOT 1
- Unable to load class 'org.jetbrains.kotlin.incremental.IncrementalJvmCompilerRunnerKt'
- CompileOnly false positive with annotations used at runtime HOT 3
- Bug: caching issues for included builds HOT 1
- Kotlin plugin must be loaded in same (or parent) classloader to DAGP: add check and print actionable error message HOT 4
- Lots of false positive under "Unused dependencies" : project doesn't compile anymore when removed HOT 1
- Please add support for TYPESAFE_PROJECT_ACCESSORS HOT 1
- Allow bundles to be configured in DependencyAnalysisSubExtension HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dependency-analysis-gradle-plugin.