Slackbot
05/20/2022, 8:23 AMFrançois Guillot
05/20/2022, 8:43 AMAndries Reurink
05/20/2022, 11:05 AM// Deprecated API
buildScan.setCaptureTaskInputFiles(true);
// New API
buildScan.getCapture().setTaskInputFiles(true);
// buildScan.getCapture() throws this error
buildScan is an instance of BuildScanExtensionFrançois Guillot
05/20/2022, 12:15 PMbuildScan
variable ?
which version of the Gradle Enterprise Gradle plugin are you using ?
Can you share a build scan (or build scan dump) (maybe just in DM with me) ?Andries Reurink
05/23/2022, 1:52 PMBuildScanExtension buildScan = target.getExtensions().getByType(BuildScanExtension.class);
where target is the parameter of our overwritten
org.gradle.api.Plugin.apply()
François Guillot
05/24/2022, 12:01 PMbuildScan.getCapture()
one was added in version 3.7. See https://docs.gradle.com/enterprise/gradle-plugin/api/com/gradle/scan/plugin/BuildScanExtension.html#getCapture()Andries Reurink
05/25/2022, 9:47 AMFrançois Guillot
05/25/2022, 9:48 AM