Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BuildScanExtension is not accessible #13

Open
xiahl33 opened this issue Mar 16, 2023 · 4 comments
Open

BuildScanExtension is not accessible #13

xiahl33 opened this issue Mar 16, 2023 · 4 comments

Comments

@xiahl33
Copy link

xiahl33 commented Mar 16, 2023

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

@cdsap
Copy link
Owner

cdsap commented Mar 17, 2023

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

@xiahl33
Copy link
Author

xiahl33 commented Mar 21, 2023

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

@cdsap
Copy link
Owner

cdsap commented Mar 22, 2023

@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)?

@xiahl33
Copy link
Author

xiahl33 commented Mar 30, 2023

@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) ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants