From b08c5bbc4e63355b6065e14eed598b168632649f Mon Sep 17 00:00:00 2001 From: Ashley <73482956+ascopes@users.noreply.github.com> Date: Tue, 19 Mar 2024 08:02:52 +0000 Subject: [PATCH] Update AbstractGenerateMojo.java defaults --- .../AbstractGenerateMojo.java | 28 +++++-------------- 1 file changed, 7 insertions(+), 21 deletions(-) diff --git a/src/main/java/io/github/ascopes/protobufmavenplugin/AbstractGenerateMojo.java b/src/main/java/io/github/ascopes/protobufmavenplugin/AbstractGenerateMojo.java index 94f749e1..06c46547 100644 --- a/src/main/java/io/github/ascopes/protobufmavenplugin/AbstractGenerateMojo.java +++ b/src/main/java/io/github/ascopes/protobufmavenplugin/AbstractGenerateMojo.java @@ -92,11 +92,9 @@ public abstract class AbstractGenerateMojo extends AbstractMojo { * *

Leave unspecified or explicitly null/empty to use the defaults. * - *

Default: {@code null}. - * * @since 0.0.1 */ - @Parameter + @Parameter(defaultValue = "null") private @Nullable List sourceDirectories; /** @@ -107,11 +105,9 @@ public abstract class AbstractGenerateMojo extends AbstractMojo { *

If you wish to depend on a JAR containing protobuf sources, add it as a dependency * with the {@code provided} or {@code test} scope instead. * - *

Default: {@code null}. - * * @since 0.1.0 */ - @Parameter + @Parameter(defaultValue = "null") private @Nullable List additionalImportPaths; /** @@ -137,11 +133,9 @@ public abstract class AbstractGenerateMojo extends AbstractMojo { * executable, or are using a more obscure system architecture, then using a * {@code jvmMavenPlugin} may be more preferrable. * - *

Default: {@code null}. - * * @since 0.3.0 */ - @Parameter + @Parameter(defaultValue = "null") private @Nullable List binaryMavenPlugins; /** @@ -155,11 +149,9 @@ public abstract class AbstractGenerateMojo extends AbstractMojo { * * } * - *

Default: {@code null}. - * * @since 0.3.0 */ - @Parameter + @Parameter(defaultValue = "null") private @Nullable List binaryPathPlugins; /** @@ -182,11 +174,9 @@ public abstract class AbstractGenerateMojo extends AbstractMojo { * * } * - *

Default: {@code null}. - * * @since 0.4.0 */ - @Parameter + @Parameter(defaultValue = "null") private @Nullable List binaryUrlPlugins; /** @@ -210,11 +200,9 @@ public abstract class AbstractGenerateMojo extends AbstractMojo { *

This mechanism allows plugin vendors to implement their plugins in * Java and just distribute platform-independent JAR instead. * - *

Default: {@code null}. - * * @since 0.3.0 */ - @Parameter + @Parameter(defaultValue = "null") private @Nullable List jvmMavenPlugins; /** @@ -223,11 +211,9 @@ public abstract class AbstractGenerateMojo extends AbstractMojo { *

Leave unspecified or explicitly null to use the default for the * goal. This defaults to the Maven generated sources directory within {@code target/}. * - *

Default: {@code null}. - * * @since 0.1.0 */ - @Parameter + @Parameter(defaultValue = "null") private @Nullable Path outputDirectory; /**