Class MvnBuildModes_1_0

  • All Implemented Interfaces:
    com.gradle.scan.eventmodel.EventData
    Direct Known Subclasses:
    MvnBuildModes_1_1

    @MavenVersion(since="3.3.1")
    @MavenExtensionVersion(since="1.0",
                           until="1.12")
    public class MvnBuildModes_1_0
    extends Object
    implements com.gradle.scan.eventmodel.EventData
    An EventData containing details of the Maven build modes enabled (or not) for the build.

    Build modes annotated with Nullable may not be captured if the build is executed by a Maven launcher that does not make the full command line arguments available to the Maven runtime via environment variable.

    An event stream will contain a single MvnBuildModes_1_0.

    • Field Summary

      Fields 
      Modifier and Type Field Description
      @Nullable("when build mode cannot be captured") Boolean batchMode
      Whether the build was configured to run in non-interactive (batch) mode (disables output color).
      @Nullable("when build mode cannot be captured") Boolean debug
      Whether the build was configured to produce execution debug output.
      boolean errors
      Whether the build was configured to produce execution error messages.
      @Nullable("when build mode cannot be captured") Boolean failAtEnd
      Whether the build was configured to only fail at the end.
      @Nullable("when build mode cannot be captured") Boolean failFast
      Whether the build was configured to fail at the first error.
      @Nullable("when build mode cannot be captured") Boolean failNever
      Whether the build was configured to never fail, regardless of errors produced.
      @Nullable("when build mode cannot be captured") Boolean laxChecksums
      Whether the build was configured to only warn if checksums don't match.
      int maxThreads
      The maximum number of threads used to run the build.
      boolean nonRecursive
      Whether the build was configured to not recurse into sub-projects.
      boolean noSnapshotUpdates
      Whether the build was configured to suppress snapshot updates.
      boolean offline
      Whether the build was configured to run offline.
      @Nullable("when build mode cannot be captured") Boolean quiet
      Whether the build was configured to run in quiet mode, showing error output only.
      @Nullable("when build mode cannot be captured") Boolean strictChecksums
      Whether the build was configured to fail if checksums don't match.
      boolean updateSnapshots
      Whether the build was configured to force a check for missing releases and updated snapshots on remote repositories.
    • Constructor Summary

      Constructors 
      Constructor Description
      MvnBuildModes_1_0​(int maxThreads, boolean errors, boolean nonRecursive, boolean noSnapshotUpdates, boolean offline, boolean updateSnapshots, @Nullable Boolean batchMode, @Nullable Boolean debug, @Nullable Boolean failAtEnd, @Nullable Boolean failFast, @Nullable Boolean failNever, @Nullable Boolean laxChecksums, @Nullable Boolean quiet, @Nullable Boolean strictChecksums)  
    • Field Detail

      • maxThreads

        public final int maxThreads
        The maximum number of threads used to run the build.
        See Also:
        Parallel builds in Maven 3
      • errors

        public final boolean errors
        Whether the build was configured to produce execution error messages.
        See Also:
        Errors
      • nonRecursive

        public final boolean nonRecursive
        Whether the build was configured to not recurse into sub-projects.
        See Also:
        Non recursive
      • noSnapshotUpdates

        public final boolean noSnapshotUpdates
        Whether the build was configured to suppress snapshot updates.
        See Also:
        No snapshot updates
      • offline

        public final boolean offline
        Whether the build was configured to run offline.
        See Also:
        Offline
      • updateSnapshots

        public final boolean updateSnapshots
        Whether the build was configured to force a check for missing releases and updated snapshots on remote repositories.
        See Also:
        Update snapshots
      • batchMode

        @Nullable("when build mode cannot be captured")
        public final @Nullable("when build mode cannot be captured") Boolean batchMode
        Whether the build was configured to run in non-interactive (batch) mode (disables output color).
        See Also:
        Batch mode
      • debug

        @Nullable("when build mode cannot be captured")
        public final @Nullable("when build mode cannot be captured") Boolean debug
        Whether the build was configured to produce execution debug output.
        See Also:
        Debug
      • failAtEnd

        @Nullable("when build mode cannot be captured")
        public final @Nullable("when build mode cannot be captured") Boolean failAtEnd
        Whether the build was configured to only fail at the end.
        See Also:
        Fail at end
      • failFast

        @Nullable("when build mode cannot be captured")
        public final @Nullable("when build mode cannot be captured") Boolean failFast
        Whether the build was configured to fail at the first error.
        See Also:
        Fail fast
      • failNever

        @Nullable("when build mode cannot be captured")
        public final @Nullable("when build mode cannot be captured") Boolean failNever
        Whether the build was configured to never fail, regardless of errors produced.
        See Also:
        Fail never
      • laxChecksums

        @Nullable("when build mode cannot be captured")
        public final @Nullable("when build mode cannot be captured") Boolean laxChecksums
        Whether the build was configured to only warn if checksums don't match.
        See Also:
        Lax checksums
      • quiet

        @Nullable("when build mode cannot be captured")
        public final @Nullable("when build mode cannot be captured") Boolean quiet
        Whether the build was configured to run in quiet mode, showing error output only.
        See Also:
        Quiet
      • strictChecksums

        @Nullable("when build mode cannot be captured")
        public final @Nullable("when build mode cannot be captured") Boolean strictChecksums
        Whether the build was configured to fail if checksums don't match.
        See Also:
        Strict checksums
    • Constructor Detail

      • MvnBuildModes_1_0

        public MvnBuildModes_1_0​(int maxThreads,
                                 boolean errors,
                                 boolean nonRecursive,
                                 boolean noSnapshotUpdates,
                                 boolean offline,
                                 boolean updateSnapshots,
                                 @Nullable
                                 @Nullable Boolean batchMode,
                                 @Nullable
                                 @Nullable Boolean debug,
                                 @Nullable
                                 @Nullable Boolean failAtEnd,
                                 @Nullable
                                 @Nullable Boolean failFast,
                                 @Nullable
                                 @Nullable Boolean failNever,
                                 @Nullable
                                 @Nullable Boolean laxChecksums,
                                 @Nullable
                                 @Nullable Boolean quiet,
                                 @Nullable
                                 @Nullable Boolean strictChecksums)