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
Copy file name to clipboardExpand all lines: affectedmoduledetector/src/main/kotlin/com/dropbox/affectedmoduledetector/AffectedModuleDetectorPlugin.kt
+8-3Lines changed: 8 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -96,6 +96,7 @@ class AffectedModuleDetectorPlugin : Plugin<Project> {
96
96
val task = rootProject.tasks.register(taskType.commandByImpact).get()
97
97
task.group =CUSTOM_TASK_GROUP_NAME
98
98
task.description = taskType.taskDescription
99
+
disableConfigCache(task)
99
100
100
101
rootProject.subprojects { project ->
101
102
pluginIds.forEach { pluginId ->
@@ -136,9 +137,7 @@ class AffectedModuleDetectorPlugin : Plugin<Project> {
136
137
val task = rootProject.tasks.register(taskType.commandByImpact).get()
137
138
task.group = groupName
138
139
task.description = taskType.taskDescription
139
-
if (GradleVersion.current() >=GradleVersion.version("7.4")) {
140
-
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)")
141
-
}
140
+
disableConfigCache(task)
142
141
143
142
rootProject.subprojects { project ->
144
143
project.afterEvaluate {
@@ -155,6 +154,12 @@ class AffectedModuleDetectorPlugin : Plugin<Project> {
155
154
}
156
155
}
157
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