Skip to content

Commit 7209e71

Browse files
committed
Upgrade Gradle Plugin so we can have knowledge of how to disable config cache
1 parent 6c2b902 commit 7209e71

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

affectedmoduledetector/src/main/kotlin/com/dropbox/affectedmoduledetector/AffectedModuleDetectorPlugin.kt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ import org.gradle.api.Project
99
import org.gradle.api.Task
1010
import org.gradle.api.tasks.testing.Test
1111
import org.gradle.internal.impldep.org.jetbrains.annotations.VisibleForTesting
12+
import org.gradle.util.GradleVersion
1213

1314
/**
1415
* This plugin creates and registers all affected test tasks.
@@ -125,6 +126,7 @@ class AffectedModuleDetectorPlugin : Plugin<Project> {
125126
)
126127
}
127128

129+
@Suppress("UnstableApiUsage")
128130
@VisibleForTesting
129131
internal fun registerInternalTask(
130132
rootProject: Project,
@@ -134,6 +136,9 @@ class AffectedModuleDetectorPlugin : Plugin<Project> {
134136
val task = rootProject.tasks.register(taskType.commandByImpact).get()
135137
task.group = groupName
136138
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+
}
137142

138143
rootProject.subprojects { project ->
139144
project.afterEvaluate {

gradle/wrapper/gradle-wrapper.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
33
distributionPath=wrapper/dists
44
zipStoreBase=GRADLE_USER_HOME
55
zipStorePath=wrapper/dists
6-
distributionUrl=https\://services.gradle.org/distributions/gradle-7.2-bin.zip
6+
distributionUrl=https\://services.gradle.org/distributions/gradle-7.5-rc-4-bin.zip

sample/gradle/wrapper/gradle-wrapper.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
33
distributionPath=wrapper/dists
44
zipStoreBase=GRADLE_USER_HOME
55
zipStorePath=wrapper/dists
6-
distributionUrl=https\://services.gradle.org/distributions/gradle-7.2-all.zip
6+
distributionUrl=https\://services.gradle.org/distributions/gradle-7.4.2-all.zip

0 commit comments

Comments
 (0)