【问题标题】:spring-boot-gradle-plugin breaks dependency cache strategyspring-boot-gradle-plugin 打破依赖缓存策略
【发布时间】:2017-01-16 00:32:45
【问题描述】:

我的项目依赖于一个不断变化的模块(foo,一个 maven SNAPSHOT 依赖项)进行调试,foo 总是在变化。 在我添加apply plugin 'spring-boot' 之后,foo 被缓存了很长时间。 我应该怎么做才能让更换模块与 spring-boot 插件正常工作?

//my build.gradle file.
apply plugin 'spring-boot' // bad boy
dependencies {
    compile('foo:foo:2.0.0-SNAPSHOT') { changing = true }
}
project.configurations.all {
    resolutionStrategy.cacheChangingModulesFor 1, TimeUnit.SECONDS
    resolutionStrategy.cacheDynamicVersionsFor 1, TimeUnit.SECONDS
}

【问题讨论】:

    标签: gradle spring-boot spring-boot-gradle-plugin


    【解决方案1】:
    dependencyManagement {
        resolutionStrategy {
            cacheChangingModulesFor 0, 'seconds'
        }
    }
    

    more details from github

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2022-12-23
      • 2016-09-17
      • 2016-03-13
      • 2014-11-10
      • 2016-05-03
      • 2020-03-31
      相关资源
      最近更新 更多