In a gradle project I'm trying to pull in the org.neo4j.test
package so I can use ImpermanentGraphDatabase
for testing. I ran into this question which led me to declare my dependency like this:
testCompile group: 'org.neo4j', name: 'neo4j-kernel', version: '2.1.2', classifier: 'tests'
However, I don't see org.neo4j.test
in my cache and it blows up when I try to run the test suite. For what it's worth, if I go into Intellij, it can sense that I don't have that class on my classpath and it fixes it just fine. What could I be missing in my build config? Thanks!
UPDATE:
Here is my dependency tree:
--- org.neo4j:neo4j-kernel:2.1.2
+--- org.neo4j:neo4j-primitive-collections:2.1.2
--- org.apache.geronimo.specs:geronimo-jta_1.1_spec:1.1.1
The weird thing is, it can't find the class when I try to build with Gradle - but when I open Intellij the helper window says :
"Add library:'Gradle:neo4j-kernel-2.1.2-tests' to classpath"
And when I click on that everything is fine.