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

6.0.2 -> 6.0.4: Not building project #1026

Closed
3 tasks
SteinerOk opened this issue Dec 9, 2021 · 5 comments · Fixed by #1039
Closed
3 tasks

6.0.2 -> 6.0.4: Not building project #1026

SteinerOk opened this issue Dec 9, 2021 · 5 comments · Fixed by #1039

Comments

@SteinerOk
Copy link

If you are submitting a bug, please include the following:

After updating the plug-in from version 6.0.2 to version 6.0.4, I get the following error, when I get drunk, build an android application:

FAILURE: Build failed with an exception.

* What went wrong:
A problem occurred configuring project ':app'.
> Cannot change attributes of dependency configuration ':app:kapt' after it has been resolved

No more changes were made, and when rolled back to 6.0.2, everything is going to be fine.

  • Gradle 7.3.1, AGP 7.0.4
  • Updating 6.0.2 to 6.0.4
  • MacOS 12.0.1 (21A559)
@nedtwigg
Copy link
Member

nedtwigg commented Dec 9, 2021

Interesting! This seems similar to #1024, where a change in when Spotless resolves dependencies is trickling through to other tasks unrelated to Spotless...

@nedtwigg
Copy link
Member

Should be fixed in 6.1.0, please reopen if the issue persists.

@LloydBlv
Copy link

I'm still running into this issue, with spotless 6.8.0 and ktlint 0.46.1, gradle: 7.2.1

@ininmm
Copy link

ininmm commented Sep 29, 2022

Still have the issue when I upgrade spotless from 5.8.2 to 6.11.0 and ktlint from 0.40.0 to 0.45.2.
Current gradle is 7.4 with kotlin 1.7.10.

@jbduncan
Copy link
Member

@LloydBlv @ininmm Try predeclaring your formatters in your root build file, as described in https://github.com/diffplug/spotless/tree/main/plugin-gradle#dependency-resolution-modes, and raise a new issue if you still have problems.

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

Successfully merging a pull request may close this issue.

5 participants