Skip to content

React to the checkstyle plugin#95

Closed
quaff wants to merge 1 commit into
nebula-plugins:mainfrom
quaff:patch-1
Closed

React to the checkstyle plugin#95
quaff wants to merge 1 commit into
nebula-plugins:mainfrom
quaff:patch-1

Conversation

@quaff
Copy link
Copy Markdown

@quaff quaff commented May 26, 2026

Fix:

* What went wrong:
A problem was found with the configuration of task ':xxx-archrules:checkstyleArchRules' (type 'Checkstyle').
  - Gradle detected a problem with the following location: '/xxx/xxx-archrules/build/resources/archRules'.

    Reason: Task ':xxx-archrules:checkstyleArchRules' uses this output of task ':xxx-archrules:generateServicesRegistry' without declaring an explicit or implicit dependency. This can lead to incorrect results being produced, depending on what order the tasks are executed.

    Possible solutions:
      1. Declare task ':xxx-archrules:generateServicesRegistry' as an input of ':xxx-archrules:checkstyleArchRules'.
      2. Declare an explicit dependency on ':xxx-archrules:generateServicesRegistry' from ':xxx-archrules:checkstyleArchRules' using Task#dependsOn.
      3. Declare an explicit dependency on ':xxx-archrules:generateServicesRegistry' from ':xxx-archrules:checkstyleArchRules' using Task#mustRunAfter.

Fix:
```
* What went wrong:
A problem was found with the configuration of task ':xxx-archrules:checkstyleArchRules' (type 'Checkstyle').
  - Gradle detected a problem with the following location: '/xxx/xxx-archrules/build/resources/archRules'.

    Reason: Task ':xxx-archrules:checkstyleArchRules' uses this output of task ':xxx-archrules:generateServicesRegistry' without declaring an explicit or implicit dependency. This can lead to incorrect results being produced, depending on what order the tasks are executed.

    Possible solutions:
      1. Declare task ':xxx-archrules:generateServicesRegistry' as an input of ':xxx-archrules:checkstyleArchRules'.
      2. Declare an explicit dependency on ':xxx-archrules:generateServicesRegistry' from ':xxx-archrules:checkstyleArchRules' using Task#dependsOn.
      3. Declare an explicit dependency on ':xxx-archrules:generateServicesRegistry' from ':xxx-archrules:checkstyleArchRules' using Task#mustRunAfter.

```
@wakingrufus
Copy link
Copy Markdown
Member

Hi! thanks for the fedback and contribution!
I took a look at the problem, and was able to fix the root cause in a way that was not so specific to checkstyle: #97 I will close this PR in favor of this new one.
Thanks again!

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

Successfully merging this pull request may close these issues.

2 participants