I am trying to resolve gradle dependencies that are already stored in a maven ONE repository.
Maven 1 stores them in the format below, but this does not work.
What went wrong: Execution failed for task ‘:dependencies’. Cause: Could not resolve all dependencies for configuration ‘:compile’. Cause: Could not resolve group:spectrum, module:app-spectrum-base, version:head-SNAPSHOT. Required by:
You need to use ‘organisation’, not ‘group’ in your pattern. That’s what’s causing the exception you’re reporting.
Gradle doesn’t currently support resolution against a Maven 1 repository. By declaring an ‘ivy’ repository, you’re telling Gradle to first look for an ivy.xml file, then for a jar file. Since there won’t be any ivy.xml present (and Gradle won’t be looking for the Maven 1 project.xml) you’ll be missing out on any transitive dependency information but you should be able to resolve the jar artifacts.
Unfortunately, there’s not really a better way to handle Maven 1 repositories at this time. You could possibly configure an ivy IbiblioResolver directly, but this is not a preferred way of constructing a repository.
One thing you might want to consider is fronting your existing maven1 repository with a repository manager like Artifactory or Nexus. I believe that Artifactory understands Maven 1 repositories and can provide a Maven 2 compatible view of these repositories.