【问题标题】:Gradle won't import a bintray dependency, but doesn't throw any errorGradle 不会导入 bintray 依赖项,但不会抛出任何错误
【发布时间】:2017-08-27 18:29:45
【问题描述】:

我正在创建一个使用 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

【问题讨论】:

    标签: java maven gradle kotlin


    【解决方案1】:

    您添加的依赖项只是在 repo 中没有任何 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'
    

    【讨论】:

    • 谢谢,有道理
    猜你喜欢
    • 2017-08-18
    • 1970-01-01
    • 2017-02-16
    • 2022-07-14
    • 2014-04-05
    • 2012-05-17
    • 2015-01-04
    • 2019-12-06
    • 2018-09-11
    相关资源
    最近更新 更多