我已经检查过文档了:https://spekframework.org/migration/#maven-coordinates
我想尝试2.x.x版本,所以我在build.gradle中添加了
testImplementation ("org.spekframework.spek2:spek-dsl-jvm:2.0.0")
testRuntimeOnly ('org.spekframework.spek2:spek-runner-junit5')但是Gradle无法在Maven Central中找到2.x.x库:https://search.maven.org/search?q=spek-dsl-jvm
我该怎么办?有没有特别的回购?
发布于 2018-08-27 08:27:32
您应该将以下maven存储库添加到您的构建文件中:
repositories {
jcenter()
}然后对于依赖关系:
testCompile group: 'org.spekframework.spek2', name: 'spek-dsl-jvm', version: '2.0.0-rc.1'
testCompile group: 'org.spekframework.spek2', name: 'spek-runner-junit5', version: '2.0.0-rc.1'你也可以在https://github.com/spekframework/spek-multiplatform-example上查看更多信息。
发布于 2018-08-27 01:41:53
尝试使用以下命令配置存储库:maven { url 'https://oss.jfrog.org/artifactory/libs-snapshot'}
您的依赖项应如下所示:
dependency "org.spekframework.spek2:spek-dsl-jvm:$spekVersion"
where spekVersion = "2.0.0-SNAPSHOT"
https://stackoverflow.com/questions/52024887
复制相似问题