File tree Expand file tree Collapse file tree 3 files changed +43
-17
lines changed Expand file tree Collapse file tree 3 files changed +43
-17
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -21,6 +21,20 @@ the `dev` profile in your Maven command to use those artifacts instead of buildi
21
21
Modifying the native op generation code (not the annotation processor) or the JavaCPP configuration (not the abstract Pointers) will require a
22
22
complete build could be required to reflect the changes, otherwise ` -Pdev ` should be fine.
23
23
24
+ ## JDK 16+
25
+
26
+ If you're using JDK 16+, you need to add some exports for the formatter plugin:
27
+
28
+ ```
29
+ --add-exports jdk.compiler/com.sun.tools.javac.api=ALL-UNNAMED
30
+ --add-exports jdk.compiler/com.sun.tools.javac.file=ALL-UNNAMED
31
+ --add-exports jdk.compiler/com.sun.tools.javac.parser=ALL-UNNAMED
32
+ --add-exports jdk.compiler/com.sun.tools.javac.tree=ALL-UNNAMED
33
+ --add-exports jdk.compiler/com.sun.tools.javac.util=ALL-UNNAMED
34
+ ```
35
+
36
+ This can be done in ` .mvn/jvm.config ` or ` MAVEN_OPTS ` .
37
+
24
38
### Native Builds
25
39
26
40
In some cases, like when adding GPU support or re-generating op classes, you will need to re-build the native library. 99% of this is building
Original file line number Diff line number Diff line change 44
44
<maven .javadoc.skip>true</maven .javadoc.skip>
45
45
<maven .source.skip>true</maven .source.skip>
46
46
<gpg .skip>true</gpg .skip>
47
- <spotless .version>2.10.3 </spotless .version>
47
+ <spotless .version>2.11.1 </spotless .version>
48
48
</properties >
49
49
50
50
<repositories >
229
229
</plugins >
230
230
</build >
231
231
</profile >
232
+
233
+ <profile >
234
+ <id >format</id >
235
+ <activation >
236
+ <jdk >(,16)</jdk >
237
+ </activation >
238
+ <build >
239
+ <plugins >
240
+ <plugin >
241
+ <groupId >com.diffplug.spotless</groupId >
242
+ <artifactId >spotless-maven-plugin</artifactId >
243
+ <version >${spotless.version} </version >
244
+
245
+ <executions >
246
+ <execution >
247
+ <!-- Runs in initialize phase to fail fast in case of formatting issues (should be before codegen).-->
248
+ <id >spotless-check</id >
249
+ <phase >initialize</phase >
250
+ <goals >
251
+ <goal >check</goal >
252
+ </goals >
253
+ </execution >
254
+ </executions >
255
+ </plugin >
256
+ </plugins >
257
+ </build >
258
+ </profile >
232
259
</profiles >
233
260
234
261
<!-- http://central.sonatype.org/pages/requirements.html#developer-information -->
305
332
<artifactId >spotless-maven-plugin</artifactId >
306
333
<version >${spotless.version} </version >
307
334
<configuration >
335
+
308
336
<ratchetFrom >origin/master</ratchetFrom >
309
337
310
338
<lineEndings />
318
346
</licenseHeader >
319
347
</java >
320
348
</configuration >
321
-
322
- <executions >
323
- <execution >
324
- <!-- Runs in initialize phase to fail fast in case of formatting issues (should be before codegen).-->
325
- <id >spotless-check</id >
326
- <phase >initialize</phase >
327
- <goals >
328
- <goal >check</goal >
329
- </goals >
330
- </execution >
331
- </executions >
332
349
</plugin >
333
350
</plugins >
334
351
<pluginManagement >
You can’t perform that action at this time.
0 commit comments