[gradle] IJ-CR-3154 fix code duplicate