spring-guides / gs-accessing-data-neo4j

Accessing Data with Neo4j :: Learn how to persist objects and relationships in Neo4j's NoSQL data store.
http://spring.io/guides/gs/accessing-data-neo4j/
Apache License 2.0
29 stars 49 forks source link

Fixed FileUtils import in Application.java #14

Closed jarlefosen closed 8 years ago

jarlefosen commented 8 years ago

Unable to build tutorial with the old FileUtils package location.

$ ./gradlew build
:compileJava
warning: Supported source version 'RELEASE_7' from annotation processor 'org.neo4j.kernel.impl.annotations.ServiceProcessor' less than -source '1.8'
warning: Supported source version 'RELEASE_7' from annotation processor 'org.neo4j.kernel.impl.annotations.DocumentationProcessor' less than -source '1.8'
/Users/jarle/dev/neo4j/gs-accessing-data-neo4j/complete/src/main/java/hello/Application.java:8: error: cannot find symbol
import org.neo4j.kernel.impl.util.FileUtils;
                                 ^
  symbol:   class FileUtils
  location: package org.neo4j.kernel.impl.util
1 error
2 warnings
:compileJava FAILED

Changed org.neo4j.io.fs.FileUtils and it worked properly.

dnshio commented 8 years ago

Thanks for the fix man!

mojavelinux commented 8 years ago

This import changed in Neo4j 2.2.0. See https://github.com/neo4j/neo4j/commit/a9226379c247c3e07012ee7b47c5aadf7697bc31

mojavelinux commented 8 years ago

Any reason not to merge? The guide is currently broken on the site.

jarlefosen commented 8 years ago

@gregturn Would you please take a look at this PR and hopefully merge it before all the nerds (me included) go on vacation to learn about Neo4j (that's what vacations are for, right?)

gregturn commented 8 years ago

@jarlefosen Have you signed our CLA at https://support.springsource.com/spring_committer_signup?

jarlefosen commented 8 years ago

@gregturn Just signed it

gregturn commented 8 years ago

Thanks!