How to change the classpath of compileTestScala to point to manifest file of a jar created using a jar task in gradle

My question is posted on SO here: