square/gradle-dependencies-sorter

Project doesn't build out of the box

jamesonwilliams opened this issue · 0 comments

On 3cf7afd,

I get the following on a clean build:

$ ./gradlew clean build 
> Task :grammar:sourcesJar FAILED

FAILURE: Build failed with an exception.

* What went wrong:
A problem was found with the configuration of task ':grammar:sourcesJar' (type 'Jar').
  - Gradle detected a problem with the following location: '/Users/jameson.williams/gradle-dependencies-sorter/grammar/build/generated-src/antlr/main'.
    
    Reason: Task ':grammar:sourcesJar' uses this output of task ':grammar:generateGrammarSource' 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 ':grammar:generateGrammarSource' as an input of ':grammar:sourcesJar'.
      2. Declare an explicit dependency on ':grammar:generateGrammarSource' from ':grammar:sourcesJar' using Task#dependsOn.
      3. Declare an explicit dependency on ':grammar:generateGrammarSource' from ':grammar:sourcesJar' using Task#mustRunAfter.
    
    Please refer to https://docs.gradle.org/8.0.1/userguide/validation_problems.html#implicit_dependency for more details about this problem.

* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.

* Get more help at https://help.gradle.org

BUILD FAILED in 3s
20 actionable tasks: 14 executed, 6 up-to-date

Publishing build scan...
https://gradle.com/s/bmeesvwv6djyk

Seems related to gradle/gradle#19555