-
Notifications
You must be signed in to change notification settings - Fork 1
Work around a task dependency issue with kspKotlin and openApiGenerate #179
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
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
See:
Execution failed for task ':api-model-v1-41:loadKtlintReporters'.
> Could not resolve all dependencies for configuration ':api-model-v1-41:ktlint'.
> Conflict(s) found for the following module(s):
- org.slf4j:slf4j-api between versions 2.0.0 and 1.7.32
Run with:
--scan or
:api-model-v1-41:dependencyInsight --configuration ktlint --dependency org.slf4j:slf4j-api
to get more insight on how to solve the conflict.
See: Property 'disabled_rules' is deprecated: Rename property 'disabled_rules' to 'ktlint_disabled_rules' in all '.editorconfig' files.
"Enum entry name should be uppercase underscore-separated names like "ENUM_ENTRY" or upper camel-case like "EnumEntry" (cannot be auto-corrected)"
Details:
```
Some problems were found with the configuration of task ':api-model-v1-41:kspKotlin' (type 'KspTaskJvm').
- Gradle detected a problem with the following location: '...\docker-client\docker-remote-api\api-model-v1-41\src\main\kotlin'.
Reason: Task ':api-model-v1-41:kspKotlin' uses this output of task ':api-model-v1-41:openApiGenerate' 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 ':api-model-v1-41:openApiGenerate' as an input of ':api-model-v1-41:kspKotlin'.
2. Declare an explicit dependency on ':api-model-v1-41:openApiGenerate' from ':api-model-v1-41:kspKotlin' using Task#dependsOn.
3. Declare an explicit dependency on ':api-model-v1-41:openApiGenerate' from ':api-model-v1-41:kspKotlin' using Task#mustRunAfter.
Please refer to https://docs.gradle.org/8.0.2/userguide/validation_problems.html#implicit_dependency for more details about this problem.
- Gradle detected a problem with the following location: '...\docker-client\docker-remote-api\api-model-v1-41\src\main\java'.
Reason: Task ':api-model-v1-41:kspKotlin' uses this output of task ':api-model-v1-41:openApiGenerate' 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 ':api-model-v1-41:openApiGenerate' as an input of ':api-model-v1-41:kspKotlin'.
2. Declare an explicit dependency on ':api-model-v1-41:openApiGenerate' from ':api-model-v1-41:kspKotlin' using Task#dependsOn.
3. Declare an explicit dependency on ':api-model-v1-41:openApiGenerate' from ':api-model-v1-41:kspKotlin' using Task#mustRunAfter.
Please refer to https://docs.gradle.org/8.0.2/userguide/validation_problems.html#implicit_dependency for more details about this problem.
See: ``` > Task :api-model-v1-41:kspKotlin FAILED file or directory '/home/runner/work/docker-remote-api/docker-remote-api/api-model-v1-41/src/main/java', not found FAILURE: Build failed with an exception. 5 actionable tasks: 4 executed, 1 up-to-date * What went wrong: Execution failed for task ':api-model-v1-41:kspKotlin'. > Cannot access input property 'sources' of task ':api-model-v1-41:kspKotlin'. Accessing unreadable inputs or outputs is not supported. Declare the task as untracked by using Task.doNotTrackState(). See https://docs.gradle.org/8.0.2/userguide/incremental_build.html#disable-state-tracking for more details. > Failed to normalize content of '/home/runner/work/docker-remote-api/docker-remote-api/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/infrastructure/ApiAbstractions.kt'. ```
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Issue 2:
Issue 1:
Might be related to:
afterEvaluategoogle/ksp#1331Details: