seperate java and scala compilation