Assemble

Some distribution types may be assembled by JReleaser.

Configuration

Legend:

  • required

  • optional

  • may use environment variable

  • accepts Name Templates

  • YAML

  • TOML

  • JSON

  • Maven

  • Gradle

# 
assemble:
  # Enable or disable all configured assemblers.
  # Supported values are [`NEVER`, `ALWAYS`, `RELEASE`, `SNAPSHOT`].
  # Defaults to `ALWAYS`.
  #  
  active: ALWAYS
# 
[assemble]

  # Enable or disable all configured assemblers.
  # Supported values are [`NEVER`, `ALWAYS`, `RELEASE`, `SNAPSHOT`].
  # Defaults to `ALWAYS`.
  #  
  active = "ALWAYS"
{
  // 
  "assemble": {
    // Enable or disable all configured assemblers.
    // Supported values are [`NEVER`, `ALWAYS`, `RELEASE`, `SNAPSHOT`].
    // Defaults to `ALWAYS`.
    //  
    "active": "ALWAYS"
  }
}
<jreleaser>
  <!--
    
  -->
  <assemble>
    <!--
      Enable or disable all configured assemblers.
      Supported values are [`NEVER`, `ALWAYS`, `RELEASE`, `SNAPSHOT`].
      Defaults to `ALWAYS`.
       
    -->
    <active>ALWAYS</active>
  </assemble>
</jreleaser>
jreleaser {
  // 
  assemble {
    // Enable or disable all configured assemblers.
    // Supported values are [`NEVER`, `ALWAYS`, `RELEASE`, `SNAPSHOT`].
    // Defaults to `ALWAYS`.
    //  
    active = 'ALWAYS'
  }
}

Environment

When not explicitly set, the value of the following properties may be resolved from an environment variable or a system property as shown in the table. The system property takes precedence over the environment variable.

System Property Environment Variable

active

jreleaser.assemble.active

JRELEASER_ASSEMBLE_ACTIVE

Assemblers will configure a matching distribution by name if it exists and if the assembler exports its artifacts (true by default), otherwise they’ll create a new distribution with their respective name. Assemblers may configure the following distribution properties:

  • active

  • stereotype

  • artifacts

  • extraProperties

  • java

  • executable

You may skip resolving outputs for all assemblers or assemblers per type by defining any of the following properties with a true value inside Environment properties or as a property on the command line:

  • skipAssembleResolvers

  • skipArchiveResolver

  • skipJavaArchiveResolver

  • skipJlinkResolver

  • skipJpackageResolver

  • skipNativeImageResolver