The javadoc flag is only valid on java 8.

Signed-off-by: Clement Escoffier <clement.escoffier@gmail.com>