-
Notifications
You must be signed in to change notification settings - Fork 165
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
Update to Gradle 8.0 and Java 17 #668
Comments
I have the same issue, not on the PreCommitHook but on the test sourcesets, also since updating to gradle 8.0, java 17 and kotlin 1.8.20 (not sure which caused the issues) The errors I get are both on ktlintCheck and ktlintFormat:
Same workaround works for me as well: tasks.getByName("runKtlintCheckOverCommonTestSourceSet").dependsOn("kspDebugUnitTestKotlinAndroid")
tasks.getByName("runKtlintFormatOverCommonTestSourceSet").dependsOn("kspDebugUnitTestKotlinAndroid") |
Yes I tried to add the dependency like you but every time it reports a dependency to another task, I've added up to 20 dependencies, but still each build requires another new task 🥲 |
Also suffering from this issue. The app has 30 modules and every time I add one dependency it asks for more and more, would take hours to add everything as dependency. Any workaround for this one? |
Any updates on this issue or workarounds? |
Not at this time. Happy to accept a pull request that addresses these problems as long as an associated unit test is included 🙂 |
After updating
Android Studio to Flamingo | 2022.2.1
, upgradingAGP to 8.0
and moving fromJava 11 to Java 17
I started having problems;I have errors about the dependency of task
addKtlintCheckGitPreCommitHook
to other tasks.Adding
tasks.getByName("addKtlintCheckGitPreCommitHook") dependsOn(":app:createDebugVariantModel")
the build now works but the tests keep failing; every run reports dependencies to tasks of other modules and even if I add them as dependencies every run there is always another task that gives errors like thisAny suggestions? Thanks
The text was updated successfully, but these errors were encountered: