You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* This plugin creates and registers all affected test tasks.
@@ -95,6 +96,7 @@ class AffectedModuleDetectorPlugin : Plugin<Project> {
95
96
val task = rootProject.tasks.register(taskType.commandByImpact).get()
96
97
task.group =CUSTOM_TASK_GROUP_NAME
97
98
task.description = taskType.taskDescription
99
+
disableConfigCache(task)
98
100
99
101
rootProject.subprojects { project ->
100
102
pluginIds.forEach { pluginId ->
@@ -125,6 +127,7 @@ class AffectedModuleDetectorPlugin : Plugin<Project> {
125
127
)
126
128
}
127
129
130
+
@Suppress("UnstableApiUsage")
128
131
@VisibleForTesting
129
132
internalfunregisterInternalTask(
130
133
rootProject:Project,
@@ -134,6 +137,7 @@ class AffectedModuleDetectorPlugin : Plugin<Project> {
134
137
val task = rootProject.tasks.register(taskType.commandByImpact).get()
135
138
task.group = groupName
136
139
task.description = taskType.taskDescription
140
+
disableConfigCache(task)
137
141
138
142
rootProject.subprojects { project ->
139
143
project.afterEvaluate { evaluatedProject ->
@@ -150,6 +154,12 @@ class AffectedModuleDetectorPlugin : Plugin<Project> {
150
154
}
151
155
}
152
156
157
+
privatefundisableConfigCache(task:Task) {
158
+
if (GradleVersion.current() >=GradleVersion.version("7.4")) {
159
+
task.notCompatibleWithConfigurationCache("AMD requires knowledge of what has changed in the file system so we can not cache those values (https://github.com/dropbox/AffectedModuleDetector/issues/150)")
0 commit comments