org.goots.hiderdoclet:doclet

Doclet that will allow hiding/elements via annotations

License

License

APLv2.0
Categories

Categories

IDE Development Tools
GroupId

GroupId

org.goots.hiderdoclet
ArtifactId

ArtifactId

doclet
Last Version

Last Version

1.1
Release Date

Release Date

Type

Type

jar
Description

Description

Doclet that will allow hiding/elements via annotations

Download doclet

How to add to project

<!-- https://jarcasting.com/artifacts/org.goots.hiderdoclet/doclet/ -->
<dependency>
    <groupId>org.goots.hiderdoclet</groupId>
    <artifactId>doclet</artifactId>
    <version>1.1</version>
</dependency>
// https://jarcasting.com/artifacts/org.goots.hiderdoclet/doclet/
implementation 'org.goots.hiderdoclet:doclet:1.1'
// https://jarcasting.com/artifacts/org.goots.hiderdoclet/doclet/
implementation ("org.goots.hiderdoclet:doclet:1.1")
'org.goots.hiderdoclet:doclet:jar:1.1'
<dependency org="org.goots.hiderdoclet" name="doclet" rev="1.1">
  <artifact name="doclet" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.goots.hiderdoclet', module='doclet', version='1.1')
)
libraryDependencies += "org.goots.hiderdoclet" % "doclet" % "1.1"
[org.goots.hiderdoclet/doclet "1.1"]

Dependencies

There are no dependencies for this project. It is a standalone project that does not depend on any other jars.

Project Modules

There are no modules declared in this project.

Build Status (Travis CI)

JavaDoc Doclet Extension

This is a JDK11 (and above) doclet that adds the capability to ignore arbitrary code if it has been annotated with @JavadocExclude.

For example, using the code from here:

    /**
     * Don't include me!
     */
    @JavadocExclude
    public void dummyMethod()
    {

    }

Configuration

There is only a single configuration parameter currently: org.goots.hiderdoclet.logLevel. For example to enable debug logging for the doclet pass as an additional option to the doclet configuration:

    <additionalJOption>-J-Dorg.goots.hiderdoclet.logLevel=debug</additionalJOption>

Other supported values are info (the default) and warn. The value is case insensitive.

Exanple

A complete example is

         <plugin>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-javadoc-plugin</artifactId>
            <executions>
               <execution>
                  <id>attach-javadocs</id>
                  <configuration>
                     <source>11</source>
                     <doclet>org.goots.hiderdoclet.doclet.JavadocFilter</doclet>
                     <docletArtifact>
                        <groupId>org.goots.hiderdoclet</groupId>
                        <artifactId>doclet</artifactId>
                        <version>1.0</version>
                     </docletArtifact>
                     <additionalJOptions>
                        <additionalJOption>-J--add-exports=jdk.javadoc/jdk.javadoc.internal.tool=ALL-UNNAMED</additionalJOption>
                     </additionalJOptions>
                     <detectJavaApiLink>true</detectJavaApiLink>
                  </configuration>
               </execution>
            </executions>
         </plugin>

Versions

Version
1.1
1.0