|
4 | 4 | <modelVersion>4.0.0</modelVersion> |
5 | 5 |
|
6 | 6 | <properties> |
7 | | - <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> |
8 | | - <build.revision></build.revision> |
9 | 7 | <bundle.name>${project.groupId}.${project.artifactId}</bundle.name> |
10 | 8 | <maven.build.timestamp.format>'v'yyyyMMdd-HHmm</maven.build.timestamp.format> |
11 | | - <netty.version>4.1.16.Final</netty.version> |
| 9 | + <moduleName>org.neo4j.driver</moduleName> |
| 10 | + <rootDir>${project.basedir}/..</rootDir> |
12 | 11 | </properties> |
13 | 12 |
|
14 | 13 | <parent> |
|
23 | 22 | <packaging>jar</packaging> |
24 | 23 | <name>Neo4j Java Driver</name> |
25 | 24 | <description>Access to the Neo4j graph database through Java</description> |
26 | | - <url>https://github.com/neo4j/neo4j-java-driver</url> |
27 | | - |
28 | | - <licenses> |
29 | | - <license> |
30 | | - <name>Apache License, Version 2</name> |
31 | | - <url>http://www.apache.org/licenses/LICENSE-2.0</url> |
32 | | - </license> |
33 | | - </licenses> |
34 | 25 |
|
35 | 26 | <dependencies> |
36 | | - <dependency> |
37 | | - <groupId>io.netty</groupId> |
38 | | - <artifactId>netty-handler</artifactId> |
39 | | - <version>${netty.version}</version> |
40 | | - </dependency> |
| 27 | + <!-- Compile dependencies --> |
| 28 | + <dependency> |
| 29 | + <groupId>io.netty</groupId> |
| 30 | + <artifactId>netty-handler</artifactId> |
| 31 | + </dependency> |
41 | 32 |
|
42 | | - <!-- Test dependencies --> |
| 33 | + <!-- Test dependencies --> |
43 | 34 | <dependency> |
44 | 35 | <groupId>org.hamcrest</groupId> |
45 | 36 | <artifactId>hamcrest-library</artifactId> |
46 | | - <scope>test</scope> |
47 | 37 | </dependency> |
48 | 38 | <dependency> |
49 | 39 | <groupId>org.hamcrest</groupId> |
50 | 40 | <artifactId>hamcrest-core</artifactId> |
51 | | - <scope>test</scope> |
52 | 41 | </dependency> |
53 | 42 | <dependency> |
54 | 43 | <groupId>org.mockito</groupId> |
55 | 44 | <artifactId>mockito-core</artifactId> |
56 | | - <scope>test</scope> |
57 | 45 | </dependency> |
58 | 46 | <dependency> |
59 | 47 | <groupId>junit</groupId> |
60 | 48 | <artifactId>junit</artifactId> |
61 | | - <scope>test</scope> |
62 | 49 | </dependency> |
63 | 50 | <dependency> |
64 | 51 | <groupId>org.rauschig</groupId> |
65 | 52 | <artifactId>jarchivelib</artifactId> |
66 | | - <version>0.5.0</version> |
67 | | - <scope>test</scope> |
68 | 53 | </dependency> |
69 | 54 | <dependency> |
70 | 55 | <groupId>org.bouncycastle</groupId> |
71 | 56 | <artifactId>bcprov-jdk15on</artifactId> |
72 | | - <version>1.52</version> |
73 | | - <scope>test</scope> |
74 | 57 | </dependency> |
75 | 58 | <dependency> |
76 | 59 | <groupId>org.bouncycastle</groupId> |
77 | 60 | <artifactId>bcpkix-jdk15on</artifactId> |
78 | | - <version>1.52</version> |
79 | | - <scope>test</scope> |
80 | 61 | </dependency> |
81 | 62 | <dependency> |
82 | 63 | <groupId>info.cukes</groupId> |
83 | 64 | <artifactId>cucumber-junit</artifactId> |
84 | | - <version>1.2.4</version> |
85 | | - <scope>test</scope> |
86 | 65 | </dependency> |
87 | 66 | <dependency> |
88 | 67 | <groupId>info.cukes</groupId> |
89 | 68 | <artifactId>cucumber-java</artifactId> |
90 | | - <version>1.2.4</version> |
91 | | - <scope>test</scope> |
92 | 69 | </dependency> |
93 | 70 | <dependency> |
94 | 71 | <groupId>com.fasterxml.jackson.core</groupId> |
95 | 72 | <artifactId>jackson-databind</artifactId> |
96 | | - <version>2.6.0</version> |
97 | | - <scope>test</scope> |
98 | 73 | </dependency> |
99 | 74 | </dependencies> |
100 | 75 |
|
101 | 76 | <build> |
102 | 77 | <plugins> |
103 | | - <plugin> |
104 | | - <artifactId>maven-compiler-plugin</artifactId> |
105 | | - <version>2.3.2</version> |
106 | | - <configuration> |
107 | | - <source>${java.version}</source> |
108 | | - <target>${java.version}</target> |
109 | | - </configuration> |
110 | | - </plugin> |
111 | 78 | <plugin> |
112 | 79 | <groupId>org.codehaus.mojo</groupId> |
113 | 80 | <artifactId>clirr-maven-plugin</artifactId> |
|
143 | 110 | <groupId>org.apache.maven.plugins</groupId> |
144 | 111 | <artifactId>maven-javadoc-plugin</artifactId> |
145 | 112 | <configuration> |
146 | | - <charset>UTF-8</charset> |
147 | | - <docencoding>UTF-8</docencoding> |
148 | | - <encoding>UTF-8</encoding> |
149 | 113 | <sourceFileIncludes> |
150 | 114 | <sourceFileInclude>org/neo4j/driver/v1/**/*.java</sourceFileInclude> |
151 | 115 | </sourceFileIncludes> |
|
154 | 118 | <plugin> |
155 | 119 | <groupId>org.apache.maven.plugins</groupId> |
156 | 120 | <artifactId>maven-jar-plugin</artifactId> |
157 | | - <version>2.5</version> |
158 | 121 | <executions> |
159 | 122 | <execution> |
160 | 123 | <goals> |
|
172 | 135 | <manifestEntries> |
173 | 136 | <!-- This is used to programatically determine the driver version --> |
174 | 137 | <Implementation-Version>${project.version}-${build.revision}</Implementation-Version> |
| 138 | + <!-- Stable module name for JDK9 automatic modules --> |
| 139 | + <Automatic-Module-Name>${moduleName}</Automatic-Module-Name> |
175 | 140 | </manifestEntries> |
176 | 141 | </archive> |
177 | 142 | </configuration> |
178 | 143 | </plugin> |
179 | 144 | <plugin> |
180 | 145 | <groupId>org.codehaus.mojo</groupId> |
181 | 146 | <artifactId>build-helper-maven-plugin</artifactId> |
182 | | - <version>1.12</version> |
183 | 147 | <executions> |
184 | 148 | <execution> |
185 | 149 | <id>set-osgi-version</id> |
|
193 | 157 | <plugin> |
194 | 158 | <groupId>org.apache.felix</groupId> |
195 | 159 | <artifactId>maven-bundle-plugin</artifactId> |
196 | | - <version>3.2.0</version> |
197 | 160 | <extensions>true</extensions> |
198 | 161 | <executions> |
199 | 162 | <execution> |
|
217 | 180 | </instructions> |
218 | 181 | </configuration> |
219 | 182 | </plugin> |
220 | | - <plugin> |
221 | | - <groupId>org.apache.maven.plugins</groupId> |
222 | | - <artifactId>maven-surefire-plugin</artifactId> |
223 | | - <version>2.20.1</version> |
224 | | - </plugin> |
225 | 183 | <plugin> |
226 | 184 | <groupId>org.apache.maven.plugins</groupId> |
227 | 185 | <artifactId>maven-failsafe-plugin</artifactId> |
228 | | - <version>2.20.1</version> |
229 | 186 | <configuration> |
230 | 187 | <!-- |
231 | 188 | Failsafe plugin starting from 2.19 by default runs tests from 'target/test-classes' against a package jar. |
|
237 | 194 | --> |
238 | 195 | <classesDirectory>${project.build.directory}/classes</classesDirectory> |
239 | 196 | </configuration> |
240 | | - <executions> |
241 | | - <execution> |
242 | | - <goals> |
243 | | - <goal>integration-test</goal> |
244 | | - <goal>verify</goal> |
245 | | - </goals> |
246 | | - </execution> |
247 | | - </executions> |
248 | 197 | </plugin> |
249 | 198 | <plugin> |
250 | 199 | <groupId>org.apache.maven.plugins</groupId> |
251 | 200 | <artifactId>maven-shade-plugin</artifactId> |
252 | | - <version>3.1.0</version> |
253 | 201 | <executions> |
254 | 202 | <execution> |
255 | 203 | <phase>package</phase> |
|
276 | 224 | </plugins> |
277 | 225 | </build> |
278 | 226 |
|
279 | | - <profiles> |
280 | | - <profile> |
281 | | - <id>default-tools.jar</id> |
282 | | - <activation> |
283 | | - <property> |
284 | | - <name>java.vendor</name> |
285 | | - <value>Sun Microsystems Inc.</value> |
286 | | - </property> |
287 | | - </activation> |
288 | | - <dependencies> |
289 | | - <dependency> |
290 | | - <groupId>com.sun</groupId> |
291 | | - <artifactId>tools</artifactId> |
292 | | - <version>1.4.2</version> |
293 | | - <scope>system</scope> |
294 | | - <systemPath>${java.home}/../lib/tools.jar</systemPath> |
295 | | - </dependency> |
296 | | - </dependencies> |
297 | | - </profile> |
298 | | - <!-- If a revision has not been explicitly set, sort it out by looking at git metadata --> |
299 | | - <profile> |
300 | | - <id>determine-revision</id> |
301 | | - <activation> |
302 | | - <activeByDefault>false</activeByDefault> |
303 | | - <property> |
304 | | - <name>!build.revision</name> |
305 | | - </property> |
306 | | - </activation> |
307 | | - <properties> |
308 | | - <build.revision>${git.commit.id.abbrev}</build.revision> |
309 | | - </properties> |
310 | | - <build> |
311 | | - <plugins> |
312 | | - <plugin> |
313 | | - <groupId>pl.project13.maven</groupId> |
314 | | - <artifactId>git-commit-id-plugin</artifactId> |
315 | | - </plugin> |
316 | | - </plugins> |
317 | | - </build> |
318 | | - </profile> |
319 | | - </profiles> |
320 | | - |
321 | 227 | </project> |
0 commit comments