while started to upgrade gradle 8.6 got the below errors.
gradlew clean is fine
gradlew build is fine
gradlew publish is giving the following errors
------------------------------------------------------
FAILURE: Build failed with an exception.
* What went wrong:
A problem was found with the configuration of task ':modA:publishXYZPublicationTopublicRepository' (type 'PublishToMavenRepository').
- Gradle detected a problem with the following location: 'C:\Users\modA\modAXLL\Release\component.xll'.
Reason: Task ':modA:publishXYZPublicationTopublicRepository' uses this output of task ':modA:make_XLL' 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 ':modA:make_XLL' as an input of ':modA:publishXYZPublicationTopublicRepository'.
2. Declare an explicit dependency on ':modA:make_XLL' from ':modA:publishXYZPublicationTopublicRepository' using Task#dependsOn.
3. Declare an explicit dependency on ':modA:make_XLL' from ':modA:publishXYZPublicationTopublicRepository' 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.
------------------------------------------------------
Since the task publishPubNamePublicationToRepoNameRepository is added by the maven-publish plugin how can i enforce the task :modA:make_XLL as dependent ?
Any help/inputs/suggestions are welcome…
~RC