Peter Sie
Peter Sie

Reputation: 175

Spring Data Neo4j 4.0 Gradle Dependency

I am trying to download the Spring Data Neo4j 4.0 tests dependency with Gradle, but it doesn't seem to work. In the official tutorial documentation (http://docs.spring.io/spring-data/neo4j/docs/4.0.0.M1/reference/pdf/spring-data-neo4j-reference.pdf), only maven dependency below is provided:

<dependency> 
   <groupId>org.neo4j.ogm</groupId>
   <artifactId>neo4j-testutils</artifactId>
   <type>test-jar</type>
   <scope>test</scope>
</dependency>
<dependency>
   <groupId>org.springframework.data</groupId>
   <artifactId>spring-data-neo4j-tests</artifactId>
   <type>test-jar</type>
   <scope>test</scope>
</dependency>

How to translate that to gradle?

Upvotes: 1

Views: 382

Answers (2)

Vince
Vince

Reputation: 2181

The neo4j-ogm-test artifact was not fully published in M1, but it is available. You will need to set the following gradle dependency:

dependencies {
   testCompile(group: 'org.neo4j', 
               name: 'neo4j-ogm-test', 
               version: '1.0.0.BUILD-SNAPSHOT', 
               classifier: 'tests')
} 
repositories {
   maven {
     url 'http://repo.spring.io/libs-snapshot-continuous-local'
  }
}

Upvotes: 3

Luanne
Luanne

Reputation: 19373

This should work (not tested)

dependencies {
       testCompile(group: 'org.neo4j.ogm', name: 'neo4j-testutils', version: '4.0.0.M1', classifier: 'tests')
}repositories {
     maven {
         url 'http://repo.spring.io/libs-snapshot'
     }
 }

Upvotes: 2

Related Questions