【问题标题】:How does grails/gradle download the dependencies without version specificationgrails/gradle如何在没有版本规范的情况下下载依赖
【发布时间】:2016-05-10 07:21:18
【问题描述】:

在 Grails 3 项目中,我们使用如下的一些依赖项。对于具有版本的插件或依赖项,它根据版本规范从远程存储库下载。当我们没有提到版本时,我们假设它正在下载可用的最新依赖项,但是当我们检查休眠依赖项时,它正在下载项目中的“4.3.10.6”版本,而远程存储库具有最新版本。那么grails或者gradle如何下载没有版本的依赖呢?

compile "org.grails.plugins:hibernate"
compile "org.grails.plugins:cache"
compile "org.hibernate:hibernate-ehcache"
compile "org.grails.plugins:scaffolding"

compile "org.webjars:bootstrap:3.3.5"
compile "org.webjars:bootstrap-tagsinput:0.5"

注意:我们的项目中没有任何错误或问题

【问题讨论】:

    标签: grails gradle dependencies version grails-3.0


    【解决方案1】:

    如果没有指定版本,Gradle 将使用传递依赖管理,从 Gradle 版本号开始,以及该 Gradle 版本所依赖的包。如果传递依赖管理不关心。然后 Gradle 将搜索存储库和平面文件、平面树和依赖项目的层次结构并获取最新版本。

    【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2014-11-17
    • 2015-04-02
    • 2017-06-16
    • 1970-01-01
    • 1970-01-01
    • 2014-06-30
    • 1970-01-01
    • 2016-08-18
    相关资源
    最近更新 更多