I'm running some cypher statements with apoc functions inside my Java plugin. Problem is, that the tests fail saying apoc functions are unknown. How can I include apoc to my project? Is there public lib I can import from?
If you plan to only use APOC via its defined Cypher procedures/functions, provided scope is fine.
If you plan to use APOC Java methods directly (which I would not necessarily recommend), then you need to remove the scope setting.
For testing (assuming you only need APOC Cypher API, not the Java API), you can do something like this with TestContainers:
@Container
private static final Neo4jContainer<?> neo4jContainer = new Neo4jContainer<>("neo4j:4.3")
.withAdminPassword("s3cr3t")
.withPlugins(MountableFile.forClasspathResource(String.format("/apoc-%s-all.jar", apocVersion())));