I have a library with a version of 11.2-SNAPSHOT.

We are hosting our maven repository using Artifactory, and we're using the
mavenDeployer to deploy to it.

When I go to our artifactory host using the browser:
http://my.host.com:8080/artifactory/repo/com/chegg/commons/chegg-commons-data/11.2-SNAPSHOT

I see all our snapshot jars. However, Gradle is failing to download the
latest one.
[quote]
:::: WARNINGS
        module not found: com.host.commons#host-commons-data;11.2-SNAPSHOT

    ==== clientModule: tried

    ==== internal-repository: tried

    ==== MavenLocal: tried


file:/Users/elberry/.m2/repository/com/host/commons/host-commons-data/11.2-SNAPSHOT/host-commons-data-11.2-SNAPSHOT.pom

      -- artifact
com.host.commons#host-commons-data;11.2-SNAPSHOT!host-commons-data.jar:


file:/Users/elberry/.m2/repository/com/host/commons/host-commons-data/11.2-SNAPSHOT/host-commons-data-11.2-SNAPSHOT.jar

    ==== http://svn.host.com:8080/artifactory/repo: tried


http://svn.host.com:8080/artifactory/repo/com/host/commons/host-commons-data/11.2-SNAPSHOT/host-commons-data-11.2-SNAPSHOT.pom

      -- artifact
com.host.commons#host-commons-data;11.2-SNAPSHOT!host-commons-data.jar:


http://svn.host.com:8080/artifactory/repo/com/host/commons/host-commons-data/11.2-SNAPSHOT/host-commons-data-11.2-SNAPSHOT.jar

        ::::::::::::::::::::::::::::::::::::::::::::::

        ::          UNRESOLVED DEPENDENCIES         ::

        ::::::::::::::::::::::::::::::::::::::::::::::

        :: com.host.commons#host-commons-data;11.2-SNAPSHOT: not found

        ::::::::::::::::::::::::::::::::::::::::::::::
[/quote]

If I download the source for host-commons-data and do "gradle install" then
everything works fine, but I don't want all developers to have to download
the source and install the dependency locally.

I have noticed that having two SNAPSHOT versions available in the same
repository seems to cause this issue.

Eg. There are two teams currently working with host-commons-data, one group
is using 11.2-SNAPSHOT, and the other is using 11.1-SNAPSHOT. Both of these
versions are available in the same artifactory repository. If I delete one,
it seems to work.

I'm using Gradle 1.0m3

Any help here would be greatly appreciated.

Thanks,
Eric

-- 
Learn from the past. Live in the present. Plan for the future.
Blog: http://eric-berry.blogspot.com
jEdit <http://www.jedit.org> - Programmer's Text Editor
Bazaar <http://bazaar.canonical.com> - Version Control for Humans

Reply via email to