added functions to remove java builder but use scala builder for certain projects: