Hooks

Execute external tools before or after a JReleaser step.

Legend:

  • required

  • optional

  • may use environment variable

  • accepts Name Templates

  • YAML

  • TOML

  • JSON

  • Maven

  • Gradle

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

  # Enable or disable all configured hooks.
  # Supported values are [`NEVER`, `ALWAYS`, `RELEASE`, `SNAPSHOT`].
  # Defaults to `ALWAYS`.
  # 
  active = "ALWAYS"
{
  // 
  "hooks": {
    // Enable or disable all configured hooks.
    // Supported values are [`NEVER`, `ALWAYS`, `RELEASE`, `SNAPSHOT`].
    // Defaults to `ALWAYS`.
    // 
    "active": "ALWAYS"
  }
}
<jreleaser>
  <!--
    
  -->
  <hooks>
    <!--
      Enable or disable all configured hooks.
      Supported values are [`NEVER`, `ALWAYS`, `RELEASE`, `SNAPSHOT`].
      Defaults to `ALWAYS`.
      
    -->
    <active>ALWAYS</active>
  </hooks>
</jreleaser>
jreleaser {
  // icon;dot-circle[]
  hooks {
    // Enable or disable all configured hooks.
    // Supported values are [`NEVER`, `ALWAYS`, `RELEASE`, `SNAPSHOT`].
    // Defaults to `ALWAYS`.
    // 
    active = 'ALWAYS'
  }
}
When not explicitly set, the value of active may be resolved from an environment variable JRELEASER_HOOKS_ACTIVE or from a system property jreleaser.hooks.active. The system property takes precedence over the environment variable.