Skip to content

Commit db0ba73

Browse files
committed
Don't override the default tasks in ForceDependencyResolutionPlugin
1 parent 1ec5dfc commit db0ba73

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

plugin-test/src/test/groovy/org/gradle/github/dependencygraph/BaseExtractorTest.groovy

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,10 @@ abstract class BaseExtractorTest extends Specification {
8080
return getTestDirectory().file(path)
8181
}
8282

83+
protected BuildResult run() {
84+
return run("GitHubDependencyGraphPlugin_generateDependencyGraph")
85+
}
86+
8387
protected BuildResult run(String... names) {
8488
executer.withTasks(names)
8589
result = getExecuter().run()

plugin/src/main/kotlin/org/gradle/github/dependencygraph/ForceDependencyResolutionPlugin.kt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ class ForceDependencyResolutionPlugin : Plugin<Gradle> {
1212
override fun apply(gradle: Gradle) {
1313
gradle.projectsEvaluated {
1414
val resolveAllDeps = gradle.rootProject.tasks.register(GENERATE_TASK)
15-
gradle.rootProject.defaultTasks = listOf(GENERATE_TASK)
1615

1716
// Depend on "dependencies" task in all projects
1817
gradle.allprojects { project ->

0 commit comments

Comments
 (0)