Zernio

Posts a message to Zernio.

Configuration

Legend:

  • required

  • optional

  • may use environment variable

  • accepts Name Templates

  • YAML

  • TOML

  • JSON

  • Maven

  • Gradle

# 
announce:
  # 
  zernio:
    # Enables or disables Zernio.
    # Supported values are [`NEVER`, `ALWAYS`, `RELEASE`, `SNAPSHOT`].
    # Defaults to `NEVER`.
    #  
    active: ALWAYS

    # Defines the connection timeout in seconds.
    # Defaults to `20`.
    # 
    connectTimeout: 20

    # Defines the read timeout in seconds.
    # Defaults to `60`.
    # 
    readTimeout: 60

    # Additional properties used when evaluating templates.
    #  
    extraProperties:
      # Key will be capitalized and prefixed with `zernio`, i.e, `zernioFoo`.
      foo: bar

    # The Zernio server endpoint.
    #  
    apiHost: https://zernio.com/api/v1

    # The token associated with the given account.
    #  
    token: __USE_ENVIRONMENT_VARIABLE__

    # The user profile to use.
    # 
    profile: 64c573b6ca2a1fb347e1e9c3

    # The announcement message.
    # Review the available Name Templates.
    #  
    message: '🚀 {{projectNameCapitalized}} {{projectVersion}} has been released! {{releaseNotesUrl}}'

    # Path to a template file that contains the message.
    # Review the available Name Templates.
    # Defaults to `src/jreleaser/templates/zernio.tpl`.
    # 
    messageTemplate: path/to/template/zernio.tpl
# 
[announce.zernio]
  # Enables or disables Zernio.
  # Supported values are [`NEVER`, `ALWAYS`, `RELEASE`, `SNAPSHOT`].
  # Defaults to `NEVER`.
  #  
  active = "ALWAYS"

  # Defines the connection timeout in seconds.
  # Defaults to `20`.
  # 
  connectTimeout = 20

  # Defines the read timeout in seconds.
  # Defaults to `60`.
  # 
  readTimeout = 60

  # Additional properties used when evaluating templates.
  #  
  extraProperties.foo = "bar"
  # Key will be capitalized and prefixed with `zernio`, i.e, `zernioFoo`.

  # The Zernio server endpoint.
  #  
  apiHost = "https://zernio.com/api/v1"

  # The token associated with the given account.
  #  
  token = "__USE_ENVIRONMENT_VARIABLE__"

  # The user profile to use.
  # 
  profile = "64c573b6ca2a1fb347e1e9c3"

  # The announcement message.
  # Review the available Name Templates.
  #  
  message = "🚀 {{projectNameCapitalized}} {{projectVersion}} has been released! {{releaseNotesUrl}}"

  # Path to a template file that contains the message.
  # Review the available Name Templates.
  # Defaults to `src/jreleaser/templates/zernio.tpl`.
  # 
  messageTemplate = "path/to/template/zernio.tpl"
{
  // 
  "announce": {
    // 
    "zernio": {
      // Enables or disables Zernio.
      // Supported values are [`NEVER`, `ALWAYS`, `RELEASE`, `SNAPSHOT`].
      // Defaults to `NEVER`.
      //  
      "active": "ALWAYS",

      // Defines the connection timeout in seconds.
      // Defaults to `20`.
      // 
      "connectTimeout": 20,

      // Defines the read timeout in seconds.
      // Defaults to `60`.
      // 
      "readTimeout": 60,

      // Additional properties used when evaluating templates.
      //  
      "extraProperties": {
        // Key will be capitalized and prefixed with `zernio`, i.e, `zernioFoo`.
        "foo": "bar"
      },

      // The Zernio server endpoint.
      //  
      "apiHost": "https://zernio.com/api/v1",

      // The token associated with the given account.
      //  
      "token": "__USE_ENVIRONMENT_VARIABLE__",

      // The user profile to use.
      // 
      "profile": "64c573b6ca2a1fb347e1e9c3",

      // The announcement message.
      // Review the available Name Templates.
      //  
      "message": "🚀 {{projectNameCapitalized}} {{projectVersion}} has been released! {{releaseNotesUrl}}",

      // Path to a template file that contains the message.
      // Review the available Name Templates.
      // Defaults to `src/jreleaser/templates/zernio.tpl`.
      // 
      "messageTemplate": "path/to/template/zernio.tpl"
    }
  }
}
<jreleaser>
  <!--
    
  -->
  <announce>
    <!--
      
    -->
    <zernio>
      <!--
        Enables or disables Zernio.
        Supported values are [`NEVER`, `ALWAYS`, `RELEASE`, `SNAPSHOT`].
        Defaults to `NEVER`.
         
      -->
      <active>ALWAYS</active>

      <!--
        Defines the connection timeout in seconds.
        Defaults to `20`.
        
      -->
      <connectTimeout>20</connectTimeout>

      <!--
        Defines the read timeout in seconds.
        Defaults to `60`.
        
      -->
      <readTimeout>60</readTimeout>

      <!--
        Additional properties used when evaluating templates.
         
      -->
      <extraProperties>
        <!--
          Key will be capitalized and prefixed with `zernio`, i.e, `zernioFoo`.
        -->
        <foo>bar</foo>
      </extraProperties>

      <!--
        The Zernio server endpoint.
         
      -->
      <apiHost>https://zernio.com/api/v1</apiHost>

      <!--
        The token associated with the given account.
         
      -->
      <token>__USE_ENVIRONMENT_VARIABLE__</token>

      <!--
        The user profile to use.
        
      -->
      <profile>64c573b6ca2a1fb347e1e9c3</profile>

      <!--
        The announcement message.
        Review the available Name Templates.
         
      -->
      <message>🚀 {{projectNameCapitalized}} {{projectVersion}} has been released! {{releaseNotesUrl}}</message>

      <!--
        Path to a template file that contains the message.
        Review the available Name Templates.
        Defaults to `src/jreleaser/templates/zernio.tpl`.
        
      -->
      <messageTemplate>path/to/template/zernio.tpl</messageTemplate>
    </zernio>
  </announce>
</jreleaser>
jreleaser {
  // 
  announce {
    // 
    zernio {
      // Enables or disables Zernio.
      // Supported values are [`NEVER`, `ALWAYS`, `RELEASE`, `SNAPSHOT`].
      // Defaults to `NEVER`.
      //  
      active = 'ALWAYS'

      // Defines the connection timeout in seconds.
      // Defaults to `20`.
      // 
      connectTimeout = 20

      // Defines the read timeout in seconds.
      // Defaults to `60`.
      // 
      readTimeout = 60

      // Additional properties used when evaluating templates.
      // Key will be capitalized and prefixed with `zernio`, i.e, `zernioFoo`.
      //  
      extraProperties.put('foo', 'bar')

      // The Zernio server endpoint.
      //  
      apiHost = 'https://zernio.com/api/v1'

      // The token associated with the given account.
      //  
      token = '__USE_ENVIRONMENT_VARIABLE__'

      // The user profile to use.
      // 
      profile = '64c573b6ca2a1fb347e1e9c3'

      // The announcement message.
      // Review the available Name Templates.
      //  
      message = '🚀 {{projectNameCapitalized}} {{projectVersion}} has been released! {{releaseNotesUrl}}'

      // Path to a template file that contains the message.
      // Review the available Name Templates.
      // Defaults to `src/jreleaser/templates/zernio.tpl`.
      // 
      messageTemplate = 'path/to/template/zernio.tpl'
    }
  }
}

You may define either message or messageTemplate, with the former taking precedence over the latter.

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.announce.zernio.active

JRELEASER_ANNOUNCE_ZERNIO_ACTIVE

token

jreleaser.announce.zernio.token
jreleaser.zernio.token

JRELEASER_ANNOUNCE_ZERNIO_TOKEN
JRELEASER_ZERNIO_TOKEN

apiHost

jreleaser.announce.zernio.api.host
jreleaser.zernio.api.host

JRELEASER_ANNOUNCE_ZERNIO_API_HOST
JRELEASER_ZERNIO_API_HOST

Templates

The default location for templates is:

src/jreleaser/templates

The following list shows the filenames that may be used to override default templates:

  • zernio.tpl

Templates may be initialized using the template command