InfoKotlinProcess icon indicating copy to clipboard operation
InfoKotlinProcess copied to clipboard

BuildScanExtension is not accessible

Open xiahl33 opened this issue 2 years ago • 4 comments

Since BuildScanExtension is not accessible, it only output info at the end of build even if we using grade enterprise.

xiahl33 avatar Mar 16 '23 04:03 xiahl33

Hi @xiahl33, thanks for the report. Which Gradle and Gradle Enterprise plugin versions are you using?

cdsap avatar Mar 17 '23 01:03 cdsap

Hi @xiahl33, thanks for the report. Which Gradle and Gradle Enterprise plugin versions are you using?

Hi @cdsap , Thanks for reply! We use Gradle 7.6 and Gradle Enterprise plugin 3.7.1

xiahl33 avatar Mar 21 '23 19:03 xiahl33

@xiahl33 tested with Gradle 7.6, GE plugin 3.7.1 and latest version 0.1.3: output is reported: https://ge.solutions-team.gradle.com/s/6a23noe6ygys2/custom-values

can you test with latest version please(0.1.3)?

cdsap avatar Mar 22 '23 02:03 cdsap

@cdsap Hi, Thanks for quick reply! I tested with latest version (0.1.3), and it still only output at the end of build. Now we downgraded the GE plugin. And Use Gradle 7.6.1, Gradle Enterprise plugin 3.10, Android Gradle plugin 7.4.1

I think the problem is project.extensions.findByType(com.gradle.scan.plugin.BuildScanExtension::class.java) doesn't work in our product. I tried it in our plugin and it return null. We are currently using ScanApi(project) to get buildscan. Is it possible you can add a check if project.extensions.findByType(com.gradle.scan.plugin.BuildScanExtension::class.java) return null try ScanApi(project) ?

xiahl33 avatar Mar 30 '23 17:03 xiahl33