jzopfli-mvn:jzopfli

Full name:

com.github.luccappellaro:jzopfli-mvn:0.0.4:jzopfli

Description:

Maven Jzopfli Plugin.

Attributes:

  • Requires a Maven project to be executed.
  • Binds by default to the lifecycle phase: package.

Optional Parameters

Name Type Since Description
archive File - MAVEN: Archive to process. If set, neither the project artifact nor any attachments or archive sets are processed.
User property is: jzopfli.archive.
archiveDirectory File - MAVEN: The base directory to scan for JAR files using Ant-like inclusion/exclusion patterns.
User property is: jzopfli.archiveDirectory.
blockSplitting boolean - DEFLATE: If true, splits the data in multiple deflate blocks with optimal choice for the block boundaries. Block splitting gives better compression. Default: true (1).
Default value is: true.
User property is: jzopfli.deflate.blockSplitting.
blockSplittingLast boolean - DEFLATE: If true, chooses the optimal block split points only after doing the iterative LZ77 compression. If false, chooses the block split points first, then does iterative LZ77 on each individual block. Depending on the file, either first or last gives the best compression. Default: false (0).
Default value is: false.
User property is: jzopfli.deflate.blockSplittingLast.
blockSplittingMax int - DEFLATE: Maximum amount of blocks to split into (0 for unlimited, but this can give extreme results that hurt compression on some files). Default value: 15.
Default value is: 15.
User property is: jzopfli.deflate.blockSplittingMax.
excludeClassifiers String[] - MAVEN: A set of artifact classifiers describing the project attachments that should not be processed. This parameter is only relevant if processAttachedArtifacts is true. If empty, no attachments are excluded.
excludes String[] - MAVEN: The Ant-like exclusion patterns used to exclude JAR files from processing. The patterns must be relative to the directory given by the parameter archiveDirectory.
includeClassifiers String[] - MAVEN: A set of artifact classifiers describing the project attachments that should be processed. This parameter is only relevant if processAttachedArtifacts is true. If empty, all attachments are included.
includes String[] - MAVEN: The Ant-like inclusion patterns used to select JAR files to process. The patterns must be relative to the directory given by the parameter archiveDirectory. By default, the pattern **/*.?ar is used.
keepComment boolean - ZIP: keepComment
Default value is: false.
User property is: jzopfli.zip.keepComment.
keepDirectories boolean - ZIP: keepDirectories
Default value is: false.
User property is: jzopfli.zip.keepDirectories.
keepExtra boolean - ZIP: keepExtra
Default value is: false.
User property is: jzopfli.zip.keepExtra.
keepNestedZips boolean - ZIP: keepNestedZips
Default value is: false.
User property is: jzopfli.zip.keepNestedZips.
masterBlockSize int - DEFLATE: A block structure of huge, non-smart, blocks to divide the input into, to allow operating on huge files without exceeding memory, such as the 1GB wiki9 corpus. The whole compression algorithm, including the smarter block splitting, will be executed independently on each huge block. Dividing into huge blocks hurts compression, but not much relative to the size. Set this to, for example, 20MB (20000000). Set it to 0 to disable master blocks.
Default value is: 20000000.
User property is: jzopfli.deflate.masterBlockSize.
numIterations int - DEFLATE: Maximum amount of times to rerun forward and backward pass to optimize LZ77 compression cost. Good values: 10, 15 for small files, 5 for files over several MB in size or it will be too slow.
Default value is: 15.
User property is: jzopfli.deflate.numIterations.
processAttachedArtifacts boolean - MAVEN: Controls processing of project attachments. If enabled, attached artifacts that are no JAR/ZIP files will be automatically excluded from processing.
Default value is: true.
User property is: jzopfli.processAttachedArtifacts.
processMainArtifact boolean - MAVEN: Controls processing of the main artifact produced by the project.
Default value is: true.
User property is: jzopfli.processMainArtifact.
skip boolean - MAVEN: Set to true to disable the plugin.
Default value is: false.
User property is: jzopfli.skip.
strategy ZopfliDeflaterOptions$Strategy - DEFLATE: strategy
Default value is: ZOPFLI_DYNAMIC_TREE.
User property is: jzopfli.deflate.strategy.
verbose boolean - MAVEN: See options.
Default value is: false.
User property is: jzopfli.verbose.
verboseMore boolean - DEFLATE: Whether to print more detailed output
Default value is: false.
User property is: jzopfli.deflate.verboseMore.
windowSize int - DEFLATE: The window size for deflate. Must be a power of two. This should be 32768, the maximum possible by the deflate spec. Anything less hurts compression more than speed.
Default value is: 32768.
User property is: jzopfli.deflate.windowSize.

Parameter Details

archive:

MAVEN: Archive to process. If set, neither the project artifact nor any attachments or archive sets are processed.
  • Type: java.io.File
  • Required: No
  • User Property: jzopfli.archive

archiveDirectory:

MAVEN: The base directory to scan for JAR files using Ant-like inclusion/exclusion patterns.
  • Type: java.io.File
  • Required: No
  • User Property: jzopfli.archiveDirectory

blockSplitting:

DEFLATE: If true, splits the data in multiple deflate blocks with optimal choice for the block boundaries. Block splitting gives better compression. Default: true (1).
  • Type: boolean
  • Required: No
  • User Property: jzopfli.deflate.blockSplitting
  • Default: true

blockSplittingLast:

DEFLATE: If true, chooses the optimal block split points only after doing the iterative LZ77 compression. If false, chooses the block split points first, then does iterative LZ77 on each individual block. Depending on the file, either first or last gives the best compression. Default: false (0).
  • Type: boolean
  • Required: No
  • User Property: jzopfli.deflate.blockSplittingLast
  • Default: false

blockSplittingMax:

DEFLATE: Maximum amount of blocks to split into (0 for unlimited, but this can give extreme results that hurt compression on some files). Default value: 15.
  • Type: int
  • Required: No
  • User Property: jzopfli.deflate.blockSplittingMax
  • Default: 15

excludeClassifiers:

MAVEN: A set of artifact classifiers describing the project attachments that should not be processed. This parameter is only relevant if processAttachedArtifacts is true. If empty, no attachments are excluded.
  • Type: java.lang.String[]
  • Required: No

excludes:

MAVEN: The Ant-like exclusion patterns used to exclude JAR files from processing. The patterns must be relative to the directory given by the parameter archiveDirectory.
  • Type: java.lang.String[]
  • Required: No

includeClassifiers:

MAVEN: A set of artifact classifiers describing the project attachments that should be processed. This parameter is only relevant if processAttachedArtifacts is true. If empty, all attachments are included.
  • Type: java.lang.String[]
  • Required: No

includes:

MAVEN: The Ant-like inclusion patterns used to select JAR files to process. The patterns must be relative to the directory given by the parameter archiveDirectory. By default, the pattern **/*.?ar is used.
  • Type: java.lang.String[]
  • Required: No

keepComment:

ZIP: keepComment
  • Type: boolean
  • Required: No
  • User Property: jzopfli.zip.keepComment
  • Default: false

keepDirectories:

ZIP: keepDirectories
  • Type: boolean
  • Required: No
  • User Property: jzopfli.zip.keepDirectories
  • Default: false

keepExtra:

ZIP: keepExtra
  • Type: boolean
  • Required: No
  • User Property: jzopfli.zip.keepExtra
  • Default: false

keepNestedZips:

ZIP: keepNestedZips
  • Type: boolean
  • Required: No
  • User Property: jzopfli.zip.keepNestedZips
  • Default: false

masterBlockSize:

DEFLATE: A block structure of huge, non-smart, blocks to divide the input into, to allow operating on huge files without exceeding memory, such as the 1GB wiki9 corpus. The whole compression algorithm, including the smarter block splitting, will be executed independently on each huge block. Dividing into huge blocks hurts compression, but not much relative to the size. Set this to, for example, 20MB (20000000). Set it to 0 to disable master blocks.
  • Type: int
  • Required: No
  • User Property: jzopfli.deflate.masterBlockSize
  • Default: 20000000

numIterations:

DEFLATE: Maximum amount of times to rerun forward and backward pass to optimize LZ77 compression cost. Good values: 10, 15 for small files, 5 for files over several MB in size or it will be too slow.
  • Type: int
  • Required: No
  • User Property: jzopfli.deflate.numIterations
  • Default: 15

processAttachedArtifacts:

MAVEN: Controls processing of project attachments. If enabled, attached artifacts that are no JAR/ZIP files will be automatically excluded from processing.
  • Type: boolean
  • Required: No
  • User Property: jzopfli.processAttachedArtifacts
  • Default: true

processMainArtifact:

MAVEN: Controls processing of the main artifact produced by the project.
  • Type: boolean
  • Required: No
  • User Property: jzopfli.processMainArtifact
  • Default: true

skip:

MAVEN: Set to true to disable the plugin.
  • Type: boolean
  • Required: No
  • User Property: jzopfli.skip
  • Default: false

strategy:

DEFLATE: strategy
  • Type: lu.luz.jzopfli_stream.ZopfliDeflaterOptions$Strategy
  • Required: No
  • User Property: jzopfli.deflate.strategy
  • Default: ZOPFLI_DYNAMIC_TREE

verbose:

MAVEN: See options.
  • Type: boolean
  • Required: No
  • User Property: jzopfli.verbose
  • Default: false

verboseMore:

DEFLATE: Whether to print more detailed output
  • Type: boolean
  • Required: No
  • User Property: jzopfli.deflate.verboseMore
  • Default: false

windowSize:

DEFLATE: The window size for deflate. Must be a power of two. This should be 32768, the maximum possible by the deflate spec. Anything less hurts compression more than speed.
  • Type: int
  • Required: No
  • User Property: jzopfli.deflate.windowSize
  • Default: 32768