kotlinter-gradle: installKotlinterPrePushHook not working using 2.4.0
➜ escape_pod git:(update_ktlint) ./gradlew installKotlinterPrePushHook
FAILURE: Build failed with an exception.
* What went wrong:
Task 'installKotlinterPrePushHook' not found in root project 'escape_pod'.
* Try:
Run gradlew tasks to get a list of available tasks. 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
Deprecated Gradle features were used in this build, making it incompatible with Gradle 7.0.
Use '--warning-mode all' to show the individual deprecation warnings.
See https://docs.gradle.org/6.3/userguide/command_line_interface.html#sec:command_line_warnings
BUILD FAILED in 4s
Let me know if you need more information
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Reactions: 1
- Comments: 15 (7 by maintainers)
Commits related to this issue
- Upgrade to ktlint 0.37.2 and address #142 — committed to jeremymailen/kotlinter-gradle by jeremymailen 4 years ago
- Upgrade to ktlint 0.37.2 and address #142 (#145) — committed to jeremymailen/kotlinter-gradle by jeremymailen 4 years ago
yep, i can see it now
Actually, I have a thought: is
apply plugin: "org.jmailen.kotlinter"
andapply plugin: 'kotlin'
present for the root project as well? That would cause the hook task to be missing. Quite understandable since the root project probably doesn’t have kotlin source code, although it would be harmless to include it.kotlin
installKotlinterPrePushHook
is shown using./gradlew -d tasks | grep "Register task"