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'
- 使用命令行参数的Kotlin Gradle Spring bootRun任务
- compileReleaseKotlin失败,java.lang.ClassNotFoundException:com.sun.tools.javac.util.Context
- 类未find,androidTest中使用Android Studio 3.0.1,Room,Kotlin的空测试套件
- 在Android Studio中Kotlin构建失败
- 将源文件附加到kotlin库项目不会显示在AS中
- 如何在kotlin-android编译之前处理重复的类?
- 什么是Kotlin Gradle依赖关系中的“实现”?
- Travis ci造成失败 – 原因:PermGen空间
- 无法得到类型为…的对象的未知属性“anko_version”?