Cannot use function in custom mix task defined in same app

Have you tried putting this inside the project function inside mix.exs?

elixirc_paths: ["lib"],