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

Task ':korge:jvmTestProcessResources' uses this output of task ':korge:korgeProcessedResourcesJvmTest' without declaring an explicit or implicit dependency #1360

Closed
Kietyo opened this issue Feb 23, 2023 · 3 comments

Comments

@Kietyo
Copy link
Contributor

Kietyo commented Feb 23, 2023

* What went wrong:
A problem was found with the configuration of task ':korge:jvmTestProcessResources' (type 'ProcessResources').
  - Gradle detected a problem with the following location: 'C:\Users\kietm\GitHub\XenoTactic\korge\build\korgeProcessedResources\jvm\test'.

    Reason: Task ':korge:jvmTestProcessResources' uses this output of task ':korge:korgeProcessedResourcesJvmTest' 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 ':korge:korgeProcessedResourcesJvmTest' as an input of ':korge:jvmTestProcessResources'.
@Kietyo
Copy link
Contributor Author

Kietyo commented Feb 23, 2023

Working on it.

@Kietyo
Copy link
Contributor Author

Kietyo commented Feb 24, 2023

Note:

Starting Gradle Daemon...
Gradle Daemon started in 2 s 413 ms

FAILURE: Build failed with an exception.

* What went wrong:
A problem occurred configuring project ':korge'.
> Could not create task ':korge:korgeProcessedResourcesJvmMain'.
   > Could not create task of type 'KorgeProcessedResourcesTask'.
      > Class KorgeProcessedResourcesTask is final.

* 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.

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

BUILD FAILED in 17s

@Kietyo
Copy link
Contributor Author

Kietyo commented Feb 24, 2023

Note:

A problem was found with the configuration of task ':korge:korgeProcessedResourcesMetadataMain' (type 'KorgeProcessedResourcesTask').
  - Gradle detected a problem with the following location: 'C:\Users\kietm\GitHub\XenoTactic\korge\build\korgeProcessedResources\metadata\commonMain'.
    
    Reason: Task ':korge:korgeProcessedResourcesMetadataMain' uses this output of task ':korge:korgeProcessedResourcesMetadataCommonMain' 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 ':korge:korgeProcessedResourcesMetadataCommonMain' as an input of ':korge:korgeProcessedResourcesMetadataMain'.
      2. Declare an explicit dependency on ':korge:korgeProcessedResourcesMetadataCommonMain' from ':korge:korgeProcessedResourcesMetadataMain' using Task#dependsOn.
      3. Declare an explicit dependency on ':korge:korgeProcessedResourcesMetadataCommonMain' from ':korge:korgeProcessedResourcesMetadataMain' using Task#mustRunAfter.
    

Kietyo pushed a commit to Kietyo/korge-kietyo that referenced this issue Feb 25, 2023
soywiz pushed a commit that referenced this issue Feb 27, 2023
* Fix task dependency issue #1360.

* Removing my println statements.

---------

Co-authored-by: Xeno <xenotactic.game@gmail.com>
@Kietyo Kietyo closed this as completed Mar 13, 2023
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

No branches or pull requests

1 participant