1

I'm using gradle and need to bring the latest Spring Data Neo4j into my project.

My build file includes -

repositories {   
      mavenCentral()

      maven{
          url 'http://m2.neo4j.org/content/repositories/releases/org/neo4j/neo4j-cypher-dsl/1.9.M04'
      }
}

dependencies {
     compile 'org.springframework.data:spring-data-neo4j:2.3.1.RELEASE'
}

My question seems almost the same as this one:

Unable to use Neo4j 1.9.M05

and this one:

Unable to find neo4j-cypher-dsl version 1.9.M04 anywhere

When I run 'gradle build' I get the following error:

* What went wrong:
Could not resolve all dependencies for configuration ':runtime'.
Could not find org.neo4j:neo4j-cypher-dsl:1.9.
      Required by:
         :my_project > org.springframework.data:spring-data-neo4j:2.3.1.RELEASE

Any help is much appreciated.

Community
  • 1
  • 1
lars_bx
  • 93
  • 7

2 Answers2

0

The latest version of neo4j-cypher-dsl in Maven Central is 1.7 (easy to find out on http://search.maven.org). If you need 1.9, you'll have to declare a repository that contains that version. Your (second) repository declaration is invalid because the URL doesn't point to a Maven repository but to a particular Maven module within that repository.

Peter Niederwieser
  • 121,412
  • 21
  • 324
  • 259
0

Thanks to Peter, I was able to get the build script right and point it to the alternative repo:

maven{
    url 'http://m2.neo4j.org/content/repositories/releases'
}
lars_bx
  • 93
  • 7