Dependency on an exact version of snapshot release, which is not the latest


(Yardena Meymann) #1

Hi,

I am trying to migrate our maven build to gradle.

Disclaimer: we are doing some strange things, for reasons which are not exactly technical.

I am curious if Gradle can support the current state of things: we have a dependency on an exact version of snapshot release, which is not the latest snapshot.

Can I specify such dependency in Gradle? If yes, then how?

Thanks,

Yardena.


(Peter Niederwieser) #2

It works exactly the same as in Maven. For example:

dependencies {
  // compile "someArtifactId:someGroupId:1.0-SNAPSHOT"
  compile "someArtifactId:someGroupId:1.0-20121204.150527-6"