This message was deleted.
# develocity
s
This message was deleted.
f
Hi @Andries Reurink Can you share the code snippets where you configured the deprecated and the new API ?
a
Hey @François Guillot thank you:
Copy code
// Deprecated API
buildScan.setCaptureTaskInputFiles(true);
// New API
buildScan.getCapture().setTaskInputFiles(true);
// buildScan.getCapture() throws this error
buildScan is an instance of BuildScanExtension
f
how did you get hold of the
buildScan
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) ?
a
Hey @François Guillot, I found we use buildScan {} section in a *.gradle file separately so I was able to set the flag that way, so my question is not blocking me anymore. I'm still interested in the issue however. We're on "com.gradle.enterprise" version "3.4.1", I'm getting the variable from this line
Copy code
BuildScanExtension buildScan = target.getExtensions().getByType(BuildScanExtension.class);
where target is the parameter of our overwritten
Copy code
org.gradle.api.Plugin.apply()
f
Hi @Andries Reurink The
buildScan.getCapture()
one was added in version 3.7. See https://docs.gradle.com/enterprise/gradle-plugin/api/com/gradle/scan/plugin/BuildScanExtension.html#getCapture()
a
Hey @François Guillot, that is embarrassing, thank you for the help! My IDE was referencing 3.7.3 also for some reason
f
no worries 🙂