Comments (6)
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.
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.
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.
[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.
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.
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.
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)
- excludedModules is not working with custom task. HOT 4
- CustomTask should use Gradle's NamedDomainObjectContainer or NamedDomainObjectSet HOT 1
- Support exotic non standard Gradle project structures
- DependencyTracker written in Groovy
- Add an option to exclude jvm test paths HOT 1
- Assemble only affected Apps in multimodle project HOT 1
- Mixing java libraries with android libraries HOT 1
- Getting a list of changed/dependent modules without running tests HOT 1
- Unable to get Log files to generate HOT 7
- When running with clean Task, all the tests are run HOT 1
- A version bump to a runtimeOnly dependency does not mark module as affected HOT 2
- Help debugging why unnecessary tasks are running HOT 4
- Depends on gradle tasks only if project is affected HOT 3
- Dry run of gradle cmd HOT 1
- Sample project fails to compile HOT 2
- Custom task executed on all modules instead of only affected modules HOT 8
- Slashes in current branch name being replaced with backslashes on windows HOT 1
- running all tests everytime HOT 1
- Weird behavior on git commands HOT 4
- Non-java Modules don't get tested
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 affectedmoduledetector.