"Use this template" button fails due to Ktlint
See original GitHub issueI followed the readme and hit “use this template” and it failed on GH actions due to
> Task :runKtlintFormatOverMainSourceSet FAILED
Execution optimizations have been disabled for task ':runKtlintFormatOverMainSourceSet' to ensure correctness due to the following reasons:
- Gradle detected a problem with the following location: '/home/runner/work/myplugin/myplugin/build/intermediates/ktLint/reporters.bin'. Reason: Task ':runKtlintFormatOverMainSourceSet' uses this output of task ':runKtlintFormatOverKotlinScripts' without declaring an explicit or implicit dependency. This can lead to incorrect results being produced, depending on what order the tasks are executed. Please refer to https://docs.gradle.org/7.0.2/userguide/validation_problems.html#implicit_dependency for more details about this problem.
- Gradle detected a problem with the following location: '/home/runner/work/myplugin/myplugin/src/main/java'. Reason: Task ':runKtlintFormatOverMainSourceSet' uses this output of task ':runKtlintFormatOverKotlinScripts' without declaring an explicit or implicit dependency. This can lead to incorrect results being produced, depending on what order the tasks are executed. Please refer to https://docs.gradle.org/7.0.2/userguide/validation_problems.html#implicit_dependency for more details about this problem.
- Gradle detected a problem with the following location: '/home/runner/work/myplugin/myplugin/src/main/kotlin'. Reason: Task ':runKtlintFormatOverMainSourceSet' uses this output of task ':runKtlintFormatOverKotlinScripts' without declaring an explicit or implicit dependency. This can lead to incorrect results being produced, depending on what order the tasks are executed. Please refer to https://docs.gradle.org/7.0.2/userguide/validation_problems.html#implicit_dependency for more details about this problem.
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':runKtlintFormatOverMainSourceSet'.
> A failure occurred while executing org.jlleitschuh.gradle.ktlint.worker.KtLintWorkAction
Deprecated Gradle features were used in this build, making it incompatible with Gradle 8.0.
Use '--warning-mode all' to show the individual deprecation warnings.
See https://docs.gradle.org/7.0.2/userguide/command_line_interface.html#sec:command_line_warnings
Issue Analytics
- State:
- Created 2 years ago
- Comments:9 (5 by maintainers)
Top Results From Across the Web
Intellij disagree with ktlint for code with for #1350 - GitHub
Just a small bug: The following code is formatted in intellij idea. But ktlint says it has several formatting errors. p.s. the code...
Read more >Ktlint
No configuration required ktlint aims to capture the official Kotlin coding conventions and Android Kotlin Style Guide. · Rule sets ·. · Disable...
Read more >jeremymailen / ktlint Download - JitPack
Such behaviour violates .editorconfig specification and leads to ignoring ... Prepend ! to negate the pattern, KtLint uses .gitignore pattern style syntax.
Read more >Format Your Kotlin Code With Ktlint - Better Programming
You can take a look at my Kotlin project template to see how I setup Ktlint and Gitlab CI/CD for my Kotlin projects....
Read more >android - Problems running ktlint from module - Stack Overflow
2 Answers 2 · i tried, and get another error with this changes: ERROR: Failed to resolve: com.github. · use this library for...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@ColtonIdle Thanks, much appreciated. We’ll hopefully release a new version of this template targeting newer IDE platforms, which will not necessitate this manual workaround (and contain a number of other useful improvements).
Still fails. This time… not due to ktlint?