Not in `check` task
See original GitHub issueMy project has
apply plugin: 'kotlin'
apply plugin: "org.jlleitschuh.gradle.ktlint"
and ./gradlew ktlintCheck
works fine.
But ./gradlew check
does not run ktlint
. I tried adding check.dependsOn ktlintCheck
but this results in:
> Could not get unknown property 'ktlintCheck' for root project 'xyz' of type org.gradle.api.Project.
Is there any way to get this attached to the check
task?
Issue Analytics
- State:
- Created 6 years ago
- Comments:7 (3 by maintainers)
Top Results From Across the Web
How to create an uncompletable task - Todoist
Simply access a task's Task view, click the name of the task to edit it, then add the * and space at the...
Read more >How to check if a Task is running and restart if it is not running
I want to start the tasks and then check in a loop if they are still running, and to restart the task if...
Read more >Validating tasks: check mode and diff mode
Check mode is just a simulation. It will not generate output for tasks that use conditionals based on registered variables (results of prior...
Read more >Checking for existing planner tasks - if not create one
I am working on a flow that checks existing planner tasks. If one does not exist, then create one. Seems simple but I'm...
Read more >Gradle check task essentials - Tom Gregory
Check is a task you run from the command line using . ... Gradle task dependencies and the task graph in Java projects,...
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
Confirmed:
works fine now. Thanks for the workaround!
It would be nice if you could access the
ktlintCheck
task without having to use anafterEvaluate
block too.