Gradle不会导入bintray依赖项,但不会引发任何错误
我正在创建一个使用Kotlin的Squash SQL库的项目。 我已经添加了依赖到我的build.gradle
文件。 运行更新时,只需完成而不输出任何错误。 但图书馆没有得到我的项目导入,并没有出现。
IntelliJ中显示的依赖关系:
我的build.gradle
文件:
//Kotlin Stuff, nothing changed here repositories { mavenCentral() maven { url "http://dl.bintray.com/kotlin/squash" } } dependencies { compile "org.jetbrains.kotlin:kotlin-stdlib-jre8:$kotlin_version" testCompile group: 'junit', name: 'junit', version: '4.12' compile 'org.jetbrains.squash:squash:0.2.2' } //Kotlin Stuff
你添加的依赖关系只是在回购中没有任何jar的parent-pom。 这里是squash
项目列表( http://dl.bintray.com/kotlin/squash/org/jetbrains/squash/ ):
-
squash-core
-
squash-graph
-
squash-h2
-
squash-jdbc
-
squash-postgres
-
squash-sqlite
我想你想要导入squash-core
所以改变
compile 'org.jetbrains.squash:squash:0.2.2'
至
compile 'org.jetbrains.squash:squash-core:0.2.2'