Custom task expects jar of library project, missing

If you declare the hibtools configuration as an input to the task, then that task will have an implicit dependency on any tasks that generate the jars making up the classpath.

There’s some related discussion in Artifact builtBy task is not called when resolving a configuration