Skip to content

Commit d50291b

Browse files
committed
Remove custom value for applied workarounds
1 parent c2441a6 commit d50291b

File tree

2 files changed

+0
-95
lines changed

2 files changed

+0
-95
lines changed

src/main/groovy/org/gradle/android/AndroidCacheFixPlugin.groovy

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ import org.gradle.util.VersionNumber
2020
import org.slf4j.Logger
2121
import org.slf4j.LoggerFactory
2222

23-
import java.lang.reflect.Method
2423
import java.util.concurrent.atomic.AtomicBoolean
2524

2625
import static org.gradle.android.Versions.SUPPORTED_ANDROID_VERSIONS
@@ -85,19 +84,6 @@ class AndroidCacheFixPlugin implements Plugin<Project> {
8584
workaround.apply(context)
8685
appliedWorkarounds += workaround.getClass().simpleName - "Workaround"
8786
}
88-
89-
// We do this rather than trigger off of the plugin application because in Gradle 6.x the plugin is
90-
// applied to the Settings object which we don't have access to at this point
91-
project.afterEvaluate {
92-
def extension = project.rootProject.getExtensions().findByName("buildScan")
93-
if (extension) {
94-
Method valueMethod = extension.class.getMethod("value", String.class, String.class)
95-
if (valueMethod) {
96-
valueMethod.invoke(extension, "${project.path} applied workarounds".toString(), appliedWorkarounds.join("\n"))
97-
LOGGER.debug("Added build scan custom value for ${project.path} applied workarounds")
98-
}
99-
}
100-
}
10187
}
10288

10389
static List<Workaround> getWorkaroundsToApply(

src/test/groovy/org/gradle/android/BuildScanValueSanityTest.groovy

Lines changed: 0 additions & 81 deletions
This file was deleted.

0 commit comments

Comments
 (0)