-
-
Notifications
You must be signed in to change notification settings - Fork 49
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
When applied from settings.gradle it fails if a project uses KAPT #134
Comments
This is happening to me also when trying to apply the plugin in the root Using doctor 0.7.3, gradle 7.2 (tested with 7.3 as well), AGP 7.0.2. Full log:
The |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Reproducer
https://github.com/CristianGM/DoctorKotlinWrapperKtIssueReproducer
Context
I want to apply the doctor plugin on all the company projects.
We have internally a setings plugins (for artifactory and gradle enterprise configuration) and a project plugin (for static analysis and conventions)
I tried to apply the doctor using the project plugin but it fails because... it checks it's applied on the root and precompiled scripts generation use a "sample" project that doens't apply it into the root projects...
Then I thought we could use the settings plugin. It works unless a subproject is using kapt.
Issue
When a subproject use kapt and the doctor plugin is applied through settings.gradle.kts the build fails with:
You can see the scan: https://scans.gradle.com/s/i6w5wqolnkiu2
And the line from the doctor that produces the error: https://github.com/runningcode/gradle-doctor/blob/master/doctor-plugin/src/main/java/com/osacky/doctor/DoctorPlugin.kt#L93
The text was updated successfully, but these errors were encountered: