Coder Social home page Coder Social logo

Comments (6)

joshafeinberg avatar joshafeinberg commented on July 22, 2024 1

Alright, then I will close this but feel free to put up a PR for you includeBuild support if you are interested

And thank you for the note on how to better handle dependencies

from affectedmoduledetector.

digitalbuddha avatar digitalbuddha commented on July 22, 2024

Sounds interesting, How would we get the git data for the external build? We would need it to find which files are changed.

from affectedmoduledetector.

rougsig avatar rougsig commented on July 22, 2024

Sample https://github.com/rougsig/AffectedModuleDetector/tree/main/sample

I've add failing test to includeBuild to that file sample/include-util/common/src/test/java/com/dropbox/detector/sample_util/ExampleUnitTest.kt. Run task for check. Task was green.

logs

[INFO] [amd] unknownFiles: [sample/build.gradle, sample/include-util/common/src/test/java/com/dropbox/detector/sample_util/ExampleUnitTest.kt], changedProjects: [], buildAll: false

In gradle dependencies to module in includeBuild realised like external dependency.
Like that: implementation "com.example.includeutil:common".

More info can be found here.


Expected behaviour is:

Project structure is:
app -> utils-module (in includeBuild)

Change in utils-module (in includeBuild).
Test will be executed for: app and utils-module (in includeBuild)

from affectedmoduledetector.

rougsig avatar rougsig commented on July 22, 2024

To find module from include build, we need to know group of that module.

I can try to make PR with that logic, but it have one problem. We need to register group id and path of include build.

from affectedmoduledetector.

joshafeinberg avatar joshafeinberg commented on July 22, 2024

Sorry for the delay here but can you explain what you mean by "We need to register group id and path of include build" @rougsig? Are you saying that we would need to have them manually state any included builds?

I've played around with this a bit and it seems like the only way to get what included builds programmatically is to do gradle.includedBuilds but then we still don't get information of what dependencies those are replacing. I'm just not sure if this is feasible with the current gradle system

from affectedmoduledetector.

rougsig avatar rougsig commented on July 22, 2024

I've implemented my own version of affected-module-detector with includeBuild support. Actually affected-module-detecktor should resolve dependencies, not iterate by them as now.

from affectedmoduledetector.

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.