GithubHelp home page GithubHelp logo

Comments (8)

emartynov avatar emartynov commented on July 20, 2024 1

Wow, I made ticket so generic, that I can not find the real reference in my project. Let me try to find it first.

from dependency-analysis-gradle-plugin.

autonomousapps avatar autonomousapps commented on July 20, 2024

from dependency-analysis-gradle-plugin.

autonomousapps avatar autonomousapps commented on July 20, 2024

@emartynov I'm going to close this for now, but feel free to re-open if/when you have more information.

from dependency-analysis-gradle-plugin.

emartynov avatar emartynov commented on July 20, 2024

@autonomousapps I think I found one example.

Clone project https://github.com/chrisbanes/tivi.

Run advices plugin and find next advice:

  {
    "dependency": {
      "identifier": ":presenter-episodedetails"
    },
    "toConfiguration": "implementation"
  },

I found it only one place, in ui-episodedetails module.

I changed it from api to implementation and got:

e: Supertypes of the following classes cannot be resolved. Please make sure you have the required dependencies in the classpath:
    class app.tivi.episodedetails.EpisodeDetailsFragment, unresolved supertypes: app.tivi.episodedetails.EpisodeDetailsViewModel.FactoryProvider

from dependency-analysis-gradle-plugin.

autonomousapps avatar autonomousapps commented on July 20, 2024

Thanks, I'll take a look.

from dependency-analysis-gradle-plugin.

autonomousapps avatar autonomousapps commented on July 20, 2024

I believe there is a misunderstanding. I cloned the project and ran ./gradlew buildHealth and looked at advice-pretty.json and see this:

{
  ":app": [
    {
      "dependency": {
        "identifier": ":presenter-episodedetails"
      },
      "toConfiguration": "implementation"
    },
...

what this means is that the app module should add the :presenter-episodedetails project to the implementation configuration. It is NOT saying to remove it from any module's api configuration.

I'm going to close this is as not reproducible, but please feel free to re-open if you find a reproducer.

from dependency-analysis-gradle-plugin.

nwagu avatar nwagu commented on July 20, 2024

@autonomousapps I am running into this too. I made a simple reproducer here https://github.com/nwagu/dagpbrepro. An Android project, with two modules (librarya and libraryb) added. app depends on both librarya and libraryb, and librarya declares a data class that implements an interface declared in libraryb. When I run buildHealth on that project or app:projectHealth, it recommends to remove libraryb depedency from app, which should not be since the superclass (the interface in libraryb) is needed.

from dependency-analysis-gradle-plugin.

nwagu avatar nwagu commented on July 20, 2024

Oh I see buildHealth report also recommends to use api(project(":libraryb")) in librarya. But this is not clear by running app:projectHealth only. I am using this in a large project where for some reason I cannot run buildHealth on the entire project without errors, so I depend on running projectHealth on specific modules

from dependency-analysis-gradle-plugin.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.