Skip to content

Commit d397331

Browse files
committed
Make neo4j-spatial a monorepo
1 parent 62f14a0 commit d397331

File tree

286 files changed

+2984
-3197
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

286 files changed

+2984
-3197
lines changed

.github/workflows/release.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ jobs:
7272
- name: Upload all jars to Release
7373
uses: AButler/[email protected]
7474
with:
75-
files: "target/*.jar"
75+
files: "**/target/*.jar"
7676
repo-token: ${{ secrets.GITHUB_TOKEN }}
7777
release-id: ${{ steps.create_release.outputs.id }}
7878

@@ -85,4 +85,4 @@ jobs:
8585
with:
8686
token: ${{ secrets.BUILD_ACCESS_TOKEN }}
8787
repository: neo4j-documentation/docs-refresh
88-
event-type: labs
88+
event-type: labs

Makefile

Lines changed: 0 additions & 16 deletions
This file was deleted.

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ This means that Neo4j Spatial 5.19.0 is build against Neo4j 5.19, and so on.
1313

1414
## Installation
1515

16-
1. Copy the desired neo4j-spatial-x.x.x-server-plugin.jar from the [release page](https://github.com/neo4j-contrib/spatial/releases) to your neo4j plugin directory.
16+
1. Copy the desired neo4j-spatial-server-plugin-x.x.x-with-dependencies.jar from the [release page](https://github.com/neo4j-contrib/spatial/releases) to your neo4j plugin directory.
1717
2. set up your database with the following configuration in your `neo4j.conf` file:
1818

1919
```
@@ -188,11 +188,11 @@ RETURN node.name AS name
188188
~~~
189189
190190
For further Java examples, refer to the test code in the
191-
[LayersTest](src/test/java/org/neo4j/gis/spatial/LayersTest.java) and
192-
the [TestSpatial](src/test/java/org/neo4j/gis/spatial/TestSpatial.java) classes.
191+
[LayersTest](server-plugin/src/test/java/org/neo4j/gis/spatial/LayersTest.java) and
192+
the [TestSpatial](server-plugin/src/test/java/org/neo4j/gis/spatial/TestSpatial.java) classes.
193193
194194
For further Procedures examples, refer to the code in
195-
the [SpatialProceduresTest](src/test/java/org/neo4j/gis/spatial/procedures/SpatialProceduresTest.java)
195+
the [SpatialProceduresTest](server-plugin/src/test/java/org/neo4j/gis/spatial/procedures/SpatialProceduresTest.java)
196196
class.
197197
198198
## Neo4j Spatial Geoserver Plugin ##
@@ -305,7 +305,7 @@ The Java API (the original API for Neo4j Spatial) still remains, however, the mo
305305
and therefor we recommend that if you need to access Neo4j server remotely, and want deeper access to Spatial functions,
306306
consider writing your own Procedures. The Neo4j 3.0 documentation provides some good information on how to do this,
307307
and you can also refer to
308-
the [Neo4j Spatial procedures source code](src/main/java/org/neo4j/gis/spatial/procedures/SpatialProcedures.java)
308+
the [Neo4j Spatial procedures source code](server-plugin/src/main/java/org/neo4j/gis/spatial/procedures/SpatialProcedures.java)
309309
for examples.
310310
311311
## Building Neo4j spatial ##
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
../../../../../src/test/java/org/neo4j/gis/spatial/pipes/GeoPipesDocTest.java
1+
../../../../../server-plugin/src/test/java/org/neo4j/gis/spatial/pipes/GeoPipesDocTest.java
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
../../../../../src/test/java/org/neo4j/gis/spatial/TestsForDocs.java
1+
../../../../../server-plugin/src/test/java/org/neo4j/gis/spatial/TestsForDocs.java

docs/docs/modules/ROOT/pages/overview/introduction.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ The key features include:
1919

2020
== Get Started
2121

22-
The easiest way to get started with neo4j-spatial is to grab the `server-plugin-*.jar` from https://github.com/neo4j-contrib/spatial/releases[the latest release], copy it to your `$NEO4J_HOME/plugins` and restart your Neo4j server.
22+
The easiest way to get started with neo4j-spatial is to grab the `neo4j-spatial-server-plugin-x.x.x-with-dependencies.jar` from https://github.com/neo4j-contrib/spatial/releases[the latest release], copy it to your `$NEO4J_HOME/plugins` and restart your Neo4j server.
2323

2424
From there you can use all the xref:api/index.adoc[spatial procedures and functions] in your Cypher queries to add Nodes to the spatial index and perform a number of spatial point, distance and intersection queries.
2525

osgi.bnd

Lines changed: 0 additions & 13 deletions
This file was deleted.

pom.xml

Lines changed: 6 additions & 240 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,12 @@
2525
<description>Spatial utilities and components for Neo4j</description>
2626
<url>https://components.neo4j.org/${project.artifactId}/${project.version}</url>
2727
<inceptionYear>2010</inceptionYear>
28-
<packaging>jar</packaging>
28+
<packaging>pom</packaging>
29+
30+
<modules>
31+
<module>server-plugin</module>
32+
</modules>
33+
2934
<scm>
3035
<url>https://github.com/neo4j/spatial/</url>
3136
<connection>scm:git:git://github.com/neo4j/spatial.git</connection>
@@ -34,110 +39,6 @@
3439
</scm>
3540
<build>
3641
<plugins>
37-
<plugin>
38-
<groupId>org.apache.maven.plugins</groupId>
39-
<artifactId>maven-compiler-plugin</artifactId>
40-
<version>3.13.0</version>
41-
<configuration>
42-
<source>${neo4j.java.version}</source>
43-
<target>${neo4j.java.version}</target>
44-
<compilerArgs>
45-
<arg>-AIgnoreContextWarnings</arg>
46-
<arg>-AGeneratedDocumentationPath=target/generated-documentation</arg>
47-
<arg>-ADocumentation.FieldDelimiter=¦</arg>
48-
<arg>-ADocumentation.ExportedHeaders=qualified name¦description¦signature</arg>
49-
<arg>-ADocumentation.QuotedFields=false</arg>
50-
<arg>-ADocumentation.DelimitedFirstField=true</arg>
51-
<arg>-ADocumentation.ExportGrouping=PACKAGE</arg>
52-
</compilerArgs>
53-
</configuration>
54-
</plugin>
55-
<plugin>
56-
<groupId>org.apache.maven.plugins</groupId>
57-
<artifactId>maven-resources-plugin</artifactId>
58-
<version>3.3.1</version>
59-
<executions>
60-
<execution>
61-
<id>copy-resources</id>
62-
<!-- here the phase you need -->
63-
<phase>package</phase>
64-
<goals>
65-
<goal>copy-resources</goal>
66-
</goals>
67-
<configuration>
68-
<outputDirectory>${basedir}/target/filtered-test-sources</outputDirectory>
69-
<resources>
70-
<resource>
71-
<directory>${basedir}/target/filtered-test-sources</directory>
72-
<filtering>true</filtering>
73-
</resource>
74-
</resources>
75-
</configuration>
76-
</execution>
77-
<execution>
78-
<id>copy-docs</id>
79-
<!-- here the phase you need -->
80-
<phase>package</phase>
81-
<goals>
82-
<goal>copy-resources</goal>
83-
</goals>
84-
<configuration>
85-
<outputDirectory>${basedir}/target/docs</outputDirectory>
86-
<resources>
87-
<resource>
88-
<directory>${basedir}/src/docs</directory>
89-
<filtering>true</filtering>
90-
</resource>
91-
</resources>
92-
</configuration>
93-
</execution>
94-
</executions>
95-
</plugin>
96-
<plugin>
97-
<artifactId>maven-dependency-plugin</artifactId>
98-
<executions>
99-
<execution>
100-
<id>copy-dependencies</id>
101-
<phase>process-resources</phase>
102-
<goals>
103-
<goal>copy-dependencies</goal>
104-
</goals>
105-
<configuration>
106-
<excludeScope>provided</excludeScope>
107-
</configuration>
108-
</execution>
109-
<execution>
110-
<id>get-test-data</id>
111-
<goals>
112-
<goal>unpack-dependencies</goal>
113-
</goals>
114-
<configuration>
115-
<outputDirectory>${project.build.directory}</outputDirectory>
116-
<includeGroupIds>org.neo4j.spatial</includeGroupIds>
117-
</configuration>
118-
</execution>
119-
</executions>
120-
</plugin>
121-
<plugin>
122-
<artifactId>maven-assembly-plugin</artifactId>
123-
<version>3.6.0</version>
124-
<configuration>
125-
<descriptors>
126-
<descriptor>src/main/assembly/server-plugin.xml</descriptor>
127-
</descriptors>
128-
</configuration>
129-
<executions>
130-
<execution>
131-
<id>make-assembly</id>
132-
<!-- this is used for inheritance merges -->
133-
<phase>package</phase>
134-
<!-- bind to the packaging phase -->
135-
<goals>
136-
<goal>single</goal>
137-
</goals>
138-
</execution>
139-
</executions>
140-
</plugin>
14142
<plugin>
14243
<artifactId>maven-surefire-plugin</artifactId>
14344
<version>${maven-surefire-plugin.version}</version>
@@ -207,142 +108,7 @@
207108
</comments>
208109
</license>
209110
</licenses>
210-
<dependencies>
211-
<dependency>
212-
<groupId>org.neo4j</groupId>
213-
<artifactId>neo4j</artifactId>
214-
<version>${neo4j.version}</version>
215-
<scope>provided</scope>
216-
</dependency>
217-
<dependency>
218-
<groupId>com.google.code.gson</groupId>
219-
<artifactId>gson</artifactId>
220-
<version>2.11.0</version>
221-
<scope>test</scope>
222-
</dependency>
223-
<dependency>
224-
<groupId>org.neo4j</groupId>
225-
<artifactId>neo4j-graphviz</artifactId>
226-
<version>3.1.1</version>
227-
<scope>test</scope>
228-
<exclusions>
229-
<exclusion>
230-
<groupId>org.neo4j</groupId>
231-
<artifactId>neo4j-kernel</artifactId>
232-
</exclusion>
233-
</exclusions>
234-
</dependency>
235-
236-
<!-- The JUnit-Hamcrest-Mockito combo -->
237-
<dependency>
238-
<groupId>org.junit.jupiter</groupId>
239-
<artifactId>junit-jupiter-engine</artifactId>
240-
<version>${junit.version}</version>
241-
<scope>test</scope>
242-
</dependency>
243-
<dependency>
244-
<groupId>org.neo4j.spatial</groupId>
245-
<artifactId>osm-test-data</artifactId>
246-
<version>${spatial.test.osm.version}</version>
247-
<scope>test</scope>
248-
</dependency>
249-
<dependency>
250-
<groupId>org.neo4j.spatial</groupId>
251-
<artifactId>shp-test-data</artifactId>
252-
<version>${spatial.test.shp.version}</version>
253-
<scope>test</scope>
254-
</dependency>
255-
<dependency>
256-
<groupId>org.geotools</groupId>
257-
<artifactId>gt-main</artifactId>
258-
<version>${geotools.version}</version>
259-
</dependency>
260-
<dependency>
261-
<groupId>org.geotools</groupId>
262-
<artifactId>gt-shapefile</artifactId>
263-
<version>${geotools.version}</version>
264-
</dependency>
265-
<dependency>
266-
<groupId>org.geotools</groupId>
267-
<artifactId>gt-process</artifactId>
268-
<version>${geotools.version}</version>
269-
</dependency>
270-
<dependency>
271-
<groupId>org.geotools</groupId>
272-
<artifactId>gt-geojson</artifactId>
273-
<version>${geotools.version}</version>
274-
</dependency>
275-
<dependency>
276-
<groupId>org.geotools.xsd</groupId>
277-
<artifactId>gt-xsd-kml</artifactId>
278-
<version>${geotools.version}</version>
279-
<scope>provided</scope>
280-
<exclusions>
281-
<exclusion>
282-
<groupId>picocontainer</groupId>
283-
<artifactId>picocontainer</artifactId>
284-
</exclusion>
285-
</exclusions>
286-
</dependency>
287-
<dependency>
288-
<groupId>org.geotools</groupId>
289-
<artifactId>gt-render</artifactId>
290-
<version>${geotools.version}</version>
291-
<exclusions>
292-
<exclusion>
293-
<groupId>it.geosolutions.imageio-ext</groupId>
294-
<artifactId>imageio-ext-tiff</artifactId>
295-
</exclusion>
296-
</exclusions>
297-
</dependency>
298-
<dependency>
299-
<groupId>org.neo4j.community</groupId>
300-
<artifactId>it-test-support</artifactId>
301-
<version>${neo4j.version}</version>
302-
<scope>test</scope>
303-
</dependency>
304-
<dependency>
305-
<groupId>org.neo4j</groupId>
306-
<artifactId>neo4j-kernel-test-utils</artifactId>
307-
<version>${neo4j.version}</version>
308-
<scope>test</scope>
309-
</dependency>
310-
</dependencies>
311111

312-
<dependencyManagement>
313-
<dependencies>
314-
<dependency>
315-
<groupId>org.locationtech.jts</groupId>
316-
<artifactId>jts-core</artifactId>
317-
<version>1.20.0</version>
318-
</dependency>
319-
<dependency>
320-
<groupId>org.slf4j</groupId>
321-
<artifactId>slf4j-api</artifactId>
322-
<version>2.0.13</version>
323-
</dependency>
324-
<dependency>
325-
<groupId>org.apache.commons</groupId>
326-
<artifactId>commons-lang3</artifactId>
327-
<version>3.17.0</version>
328-
</dependency>
329-
<dependency>
330-
<groupId>jakarta.annotation</groupId>
331-
<artifactId>jakarta.annotation-api</artifactId>
332-
<version>1.3.5</version>
333-
</dependency>
334-
<dependency>
335-
<groupId>javax.measure</groupId>
336-
<artifactId>unit-api</artifactId>
337-
<version>2.2</version>
338-
</dependency>
339-
<dependency>
340-
<groupId>com.google.errorprone</groupId>
341-
<artifactId>error_prone_annotations</artifactId>
342-
<version>2.27.0</version>
343-
</dependency>
344-
</dependencies>
345-
</dependencyManagement>
346112
<repositories>
347113
<repository>
348114
<id>osgeo</id>
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)