Using the gradient approach the criteria of shear and tensile cracking are developed in compression under conditions of stress concentrations near mine workings. Considering the size effect, a function type of local strength is determined, expressions for critical pressure are derived and comparison between analytical and experimental data is performed.