Turns out I was providing the buildTarget wrong.
For anyone who comes across this post, please do remember that you can find the right build target in scala doctor provider. You can also infer buildTarget from the name of the .json files created in .bloop folder when metals starts. IT defaults to your artifact name or id afaik in your pom.xml.