Spring Security Build Failed Due To 401 Error

Hi, I am trying to build the spring security 5.4.1 from source and the build is getting failed due to 401 error due to recent restriction is spring, I tried adding alternate repositories as below in build.gradle but somehow it is referring to spring /libs-release which is restricted now.

maven { url “https://plugins.gradle.org/m2” }
maven { url “https://repo1.maven.org/maven2” }
maven { url “https://mvnrepository.com/a…” }
maven { url “https://repo.spring.io/plug…” }
maven { url “https://repo.spring.io/mile…” }

Kindly Suggest.

Thanks