문제

For now, I should to specify version explicitly:

  dependencies {

      compile 'projGroup:projName:0.1-SNAPSHOT'
  }

What's I've tried, but it doesn't work:

  compile "projGroup:projName:0.+-SNAPSHOT"
  compile "projGroup:projName:+"

How can I tell gradle to use latest snapsot version from the remote maven repo?

도움이 되었습니까?

해결책

Verified with Gradle 2.2.1:

  1. Override default 24h module caching in Gradle:

    configurations.all {
        resolutionStrategy.cacheChangingModulesFor 0, 'seconds'
    }
    
  2. Then, latest.integration will work with each Maven snapshot:

    dependencies {
        compile 'projGroup:projName:latest.integration'
    }
    

다른 팁

compile "projGroup:projName:latest.integration" should work.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top