标签:dep public 不兼容 ati rop ror span tor ted
1.环境准备
Jdk 1.8
Scala 2.11.12:下载scala-2.11.12.msi并配置环境变量
Gradle 5.6.4: 下载Gradle-5.6.4并配置环境变量
-gradle.properties文件中
scalaVersion=2.10.6 修改为 scalaVersion=2.11.12
-gradle/dependencies.gradle文件(如果安装的是2.11.8就不用改):
def defaultScala211Version = ‘2.11.8‘ 修改为2.11.12
-build.gradle文件配置国内的中央仓库:
--buildscript节点下
repositories {
maven { url ‘https://mirrors.huaweicloud.com/repository/maven/‘ }
maven { url "https://maven.aliyun.com/repository/public" }
mavenCentral()
jcenter()
}
--allprojects节点下
repositories {
maven { url ‘https://mirrors.huaweicloud.com/repository/maven/‘ }
maven { url "https://maven.aliyun.com/repository/public" }
mavenCentral()
}
报错:Failed to apply plugin [id ‘org.scoverage‘]
Deprecated Gradle features were used in this build, making it incompatible with Gradle 6.0.
大概的意思是版本不兼容。
解决:build.gradle文件中:
classpath ‘org.scoverage:gradle-scoverage:2.1.0‘ 修改为 2.5.0
4. 导入idea/eclipse中(eclipse没试)
等待下载完包即可。
标签:dep public 不兼容 ati rop ror span tor ted
原文地址:https://www.cnblogs.com/caoshouling/p/13376467.html