-
Notifications
You must be signed in to change notification settings - Fork 6.1k
Open
Labels
status: feedback-providedFeedback has been providedFeedback has been providedtype: bugA general bugA general bug
Description
Describe the bug
After checking out the repository I want to run the ./gradlew format check
to make sure everything is ok before starting a new PR like described in the contribution documentation, but it fails with
$ ./gradlew format check
> Task :spring-security-aspects:checkFormatTest FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Some problems were found with the configuration of task ':spring-security-aspects:checkFormatTest' (type 'CheckFormat').
- Gradle detected a problem with the following location: '/Users/.../spring-security/aspects/src/test/java'.
Reason: Task ':spring-security-aspects:checkFormatTest' uses this output of task ':spring-security-aspects:formatTest' 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 ':spring-security-aspects:formatTest' as an input of ':spring-security-aspects:checkFormatTest'.
2. Declare an explicit dependency on ':spring-security-aspects:formatTest' from ':spring-security-aspects:checkFormatTest' using Task#dependsOn.
3. Declare an explicit dependency on ':spring-security-aspects:formatTest' from ':spring-security-aspects:checkFormatTest' using Task#mustRunAfter.
For more information, please refer to https://docs.gradle.org/8.6/userguide/validation_problems.html#implicit_dependency in the Gradle documentation.
- Gradle detected a problem with the following location: '/Users/.../spring-security/aspects/src/test/aspectj'.
Reason: Task ':spring-security-aspects:checkFormatTest' uses this output of task ':spring-security-aspects:formatTest' 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 ':spring-security-aspects:formatTest' as an input of ':spring-security-aspects:checkFormatTest'.
2. Declare an explicit dependency on ':spring-security-aspects:formatTest' from ':spring-security-aspects:checkFormatTest' using Task#dependsOn.
3. Declare an explicit dependency on ':spring-security-aspects:formatTest' from ':spring-security-aspects:checkFormatTest' using Task#mustRunAfter.
For more information, please refer to https://docs.gradle.org/8.6/userguide/validation_problems.html#implicit_dependency in the Gradle documentation.
Running it with a ./gradlew clean build
works without issues, but also invoking the ./gradlew format check
after this fails with the same issue
To Reproduce
do a new git clone of the spring security main branch and run the ./gradlew format check
in the folder
Expected behavior
I would expect the gradle task to finish without issues like described in the contribution documentation
Sample
Sample is in this case the main branch of the repository
Metadata
Metadata
Assignees
Labels
status: feedback-providedFeedback has been providedFeedback has been providedtype: bugA general bugA general bug