在maven 中搜索相关模块依赖
http://mvnrepository.com/artifact/org.apache.spark/spark-mllib_2.10/1.0.0
dependencies {
compile(group: 'org.apache.spark', name: 'spark-core_2.11', version: '2.3.0') {
exclude group: 'javax.servlet'//, module: 'servlet-api'
exclude group: 'io.netty'//, module: 'servlet-api'
}
// compile(group: 'cn.com.duiba.nezha-alg', name: 'alg-common', version: '1.1.2-SNAPSHOT')
// compile(group: 'cn.com.duiba.nezha-alg', name: 'alg-feature', version: '1.1.4-SNAPSHOT')
compile(group: 'cn.com.duiba.nezha-alg', name: 'alg-model', version: '1.1.4-SNAPSHOT'){
exclude group: 'io.netty'//, module: 'servlet-api'
exclude group: 'io.grpc'//, module: 'servlet-api'
exclude group: 'com.yesup.oss'//, module: 'servlet-api'
}
// scala
compile group: 'org.scala-lang', name: 'scala-library', version: '2.10.4'
compile group: 'org.scala-lang', name: 'scala-library', version: '2.11.5'
}