AffectedModuleDetector: Task 'runAffectedUnitTests' not found in root project
Whenever I apply the plugin to a project and run the ./gradlew runAffectedUnitTests -Paffected_module_detector.enable command, I get the following error:
FAILURE: Build failed with an exception.
* What went wrong:
Task 'runAffectedUnitTests' not found in root project 'my-project'.
Running ./gradle tasks or ./gradlew tasks -Paffected_module_detector.enable results in no tasks added by this plugin either.
I have tried with multiple Android/Java only projects which all have different configurations, but all come up with the same results. I even copy pasted this entire block into the root build.gradle (thus having two buildscript blocks) to no success.
buildscript {
repositories {
maven {
url "https://plugins.gradle.org/m2/"
}
}
dependencies {
classpath "com.dropbox.affectedmoduledetector:affectedmoduledetector:0.1.0"
}
}
apply plugin: "com.dropbox.affectedmoduledetector"
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Comments: 15 (8 by maintainers)
new snapshot is up, will verify internally then do a real release
I think my last change was racy, we’ve seen this before where the modules tasks did not exist before we ran our plugin task creation. Thanks for reporting I’ll replicate and fix in am.
0.1.1-SNAPSHOT was just pushed, 0.1.2 will be out sometime tomorrow