Skip to content

Commit e0317e5

Browse files
committed
Add therapi-runtime-javadoc-scribe
1 parent 37ba45e commit e0317e5

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

pom.xml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -222,6 +222,17 @@
222222
-->
223223
<scijava.natives.classifier>natives-${scijava.platform.family.medium}_${scijava.platform.bits}</scijava.natives.classifier>
224224

225+
<!--
226+
NB: The javadoc.retainDirectories property allows downstream projects
227+
to identify directories whose Javadoc should be made available at
228+
runtime. By default, Javadoc is not available for any packages.
229+
Downstream projects can identify a comma-delineated set of packages
230+
to make those packages' Javadoc available.
231+
Override the javadoc.retainPackages property in your POM with something like this:
232+
<javadoc.retainPackages>com.example.foo, com.example.bar</license.excludes>
233+
-->
234+
<javadoc.retainPackages>-</javadoc.retainPackages>
235+
225236
<!-- Additional configuration -->
226237

227238
<!-- NB: Avoid platform encoding warning when copying resources. -->
@@ -289,6 +300,8 @@
289300
<kotlin.version>1.4.21</kotlin.version>
290301
<revapi-java.version>0.20.2</revapi-java.version>
291302
<scijava-coding-style.version>2.0.0</scijava-coding-style.version>
303+
<therapi.version>0.12.0</therapi.version>
304+
<com.github.therapi.therapi-runtime-javadoc-scribe.version>${therapi.version}</com.github.therapi.therapi-runtime-javadoc-scribe.version>
292305
<velocity.version>1.7</velocity.version>
293306

294307
<!-- Build extensions -->
@@ -318,6 +331,19 @@
318331
<plugin>
319332
<artifactId>maven-compiler-plugin</artifactId>
320333
<version>${maven-compiler-plugin.version}</version>
334+
<configuration>
335+
<annotationProcessorPaths>
336+
<path>
337+
<groupId>com.github.therapi</groupId>
338+
<artifactId>therapi-runtime-javadoc-scribe</artifactId>
339+
<version>${com.github.therapi.therapi-runtime-javadoc-scribe.version}</version>
340+
</path>
341+
</annotationProcessorPaths>
342+
<fork>true</fork>
343+
<compilerArgs>
344+
<arg>-Ajavadoc.packages="${javadoc.retainPackages}"</arg>
345+
</compilerArgs>
346+
</configuration>
321347
</plugin>
322348

323349
<plugin>

0 commit comments

Comments
 (0)