GRADLE-642 - Add test case for trying to compile some Scala code without defining a scala library.

Also exercises the general case where we are trying to infer the Scala runtime but can't find it.