And here the output of the ‘dependencies’ task (trimmed to test-related): testCompile - Classpath for compiling the test sources. — org.neo4j:neo4j-kernel:1.8.M05 [default]
I think it’s just a(nother) limitation of the ‘gradle dependencies’ output. If you print out the files on the ‘testCompile’ configuration, you’ll see that ‘neo4j-kernel-1.8.M05-tests.jar’ is present.
PS: Please use HTML code tags for all code and other output.
Ok, I just ignored the errors of my IDEA and wrote the code, and it does compile and run fine, thanks for the tip. Should a bug be issued for that? This should probably be fixed, as it is really confusing. Now it’s time to ask the IntelliJ guys why IDEA is not comfortable with classifiers - maybe they are using the output of dependencies somehow?
* What went wrong:
Could not resolve all dependencies for configuration ':reactive-api:testCompile'.
> Could not download artifact 'org.neo4j:neo4j-kernel:2.0.1:neo4j-kernel-tests.jar'
> Artifact 'org.neo4j:neo4j-kernel:2.0.1:neo4j-kernel-tests.jar' not found.
Note that the only good reason for using ‘mavenLocal’ is for exchanging artifacts with local Maven builds. Otherwise it only has drawbacks (slower dependency resolution, less repeatable builds). That said, the order shouldn’t matter, and recent Gradle versions have improved in this regard. Perhaps check which neo4j-kernel files are in the local repository (POM, main Jar, classifier Jar, etc.).