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

Declare explicit dependency in hangar publishing block #263

Open
NotMyFault opened this issue Jun 15, 2023 · 0 comments
Open

Declare explicit dependency in hangar publishing block #263

NotMyFault opened this issue Jun 15, 2023 · 0 comments
Labels
Bug Something isn't working good first issue Good for newcomers

Comments

@NotMyFault
Copy link
Member

Currently, releases aren't distributed on Hangar, because of

* What went wrong:
Some problems were found with the configuration of task ':publishPluginPublicationToHangar' (type 'HangarPublishTask').
  - Gradle detected a problem with the following location: '/home/runner/work/fastasyncvoxelsniper/fastasyncvoxelsniper/build/libs/fastasyncvoxelsniper-2.9.1.jar'.
    
    Reason: Task ':publishPluginPublicationToHangar' uses this output of task ':shadowJar' 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 ':shadowJar' as an input of ':publishPluginPublicationToHangar'.
      2. Declare an explicit dependency on ':shadowJar' from ':publishPluginPublicationToHangar' using Task#dependsOn.
      3. Declare an explicit dependency on ':shadowJar' from ':publishPluginPublicationToHangar' using Task#mustRunAfter.
    
    Please refer to https://docs.gradle.org/8.1.1/userguide/validation_problems.html#implicit_dependency for more details about this problem.
  - Gradle detected a problem with the following location: '/home/runner/work/fastasyncvoxelsniper/fastasyncvoxelsniper/build/libs/fastasyncvoxelsniper-2.9.1.jar'.
    
    Reason: Task ':publishPluginPublicationToHangar' uses this output of task ':jar' 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 ':jar' as an input of ':publishPluginPublicationToHangar'.
      2. Declare an explicit dependency on ':jar' from ':publishPluginPublicationToHangar' using Task#dependsOn.
      3. Declare an explicit dependency on ':jar' from ':publishPluginPublicationToHangar' using Task#mustRunAfter.
    
    Please refer to https://docs.gradle.org/8.1.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.
> Run with --scan to get full insights.

This needs to be addressed in order to restore distribution on Hangar. The logic relies in https://github.com/IntellectualSites/fastasyncvoxelsniper/blob/main/.github/workflows/upload-release-assets-.yml

@NotMyFault NotMyFault added Bug Something isn't working good first issue Good for newcomers labels Jun 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant