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?
Artifacts with a newer timestamp take precedence no matter where they come from. With the default settings "remote timestamps" are checked only once every 24 hrs.
A "release" is the final build for a version which does not change. A "snapshot" is a build which can be replaced by another build which has the same name. It implies that the build could change at any time and is still under active development.
It is a development version that precedes the final release version. You can identify a snapshot version of a Maven package by the suffix SNAPSHOT that is appended to the package version. For example, the snapshot of version 1.1 is 1.1-SNAPSHOT .
Snapshot artifacts are artifacts generated during the development of a software project. A Snapshot artifact has both a version number such as “1.3. 0” or “1.3” and a timestamp in its name. For example, a snapshot artifact for commons-lang 1.3. 0 might have the name commons-lang-1.3.
Verified with Gradle 2.2.1:
Override default 24h module caching in Gradle:
configurations.all {
resolutionStrategy.cacheChangingModulesFor 0, 'seconds'
}
Then, latest.integration will work with each Maven snapshot:
dependencies {
compile 'projGroup:projName:latest.integration'
}
compile "projGroup:projName:latest.integration"
should work.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With