The following would cause gradle to put the jars inside user_home/gradle/caches/modules/files/org.neo4j/neo4j-kernel/1.9.5/some_hash/,
I was only able to see one test jar or one source jar in the hash folders. I cannot see both at the same time. I think this is a bug in gradle where it doesn’t recognize test jar classifiers.
I tried using testCompile for “org.neo4j:neo4j-kernel:$neo4jVersion:tests” as well and could only get the source jar from testCompile. compile woud give me the test jar.
I am using intellij ultimate ver. 13 IDE to implement a test class. I notice that i needed to get neo4j-kernel both the source jar and the test jar. I can only pull in the source or the test jar but not BOTH at the same time. I am unable to resolve the dependencies automatically with gradle. I have to put the test jar path manually into the gradle xml file in .idea/libraries/GRADLE_neo4j-kernel-1_9_5.xml. In this xml file, i only see test jar path or source/class jar path but not both if I were to generate from gradle script.
I also noticed that if i leave only the compile “org.neo4j:neo4j-kernel:$neo4jVersion:tests”, the xml file would be called GRADLE_neo4j-kernel-1_9_5-tests.xml