switch scala/java to profile that automatically activates if src/main/scala is present