1.gradle init -type pom 转到gradle 经常会出现这个错误
Could not resolve all dependencies for configuration ':compileClasspath'
2.修改一下这个文件
gradle-wrapper.properties里面的gradle的需要用-all的版本。如下
#Wed Jul 28 17:15:33 CST 2021
distributionUrl=https\://services.gradle.org/distributions/gradle-7.2-all.zip
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStorePath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME