Skip to content

[announce] SMTP announcer fails when using shaded JAR #1860

@aalmiray

Description

@aalmiray

Hi!

I am testing announcements with SMTP. It works as expected when run locally (MBP) with JReleaser 1.17.0 CLI. But when running the same from GitHub Actions (Tried with JRelease 1.14.0 as well as 1.17.0), it throws the following exception -

Actions URL - https://github.com/avioconsulting/jreleaser-test-app/actions/runs/14571464664

[INFO]  JReleaser 1.17.0
------------------------------------------------------------
jreleaser 1.17.0
------------------------------------------------------------
Build time:   2025-02-28 07:33:53Z
Revision:     30d1905d021c89f769520d13b8d143918abec3ff
JVM:          17.0.15 (Azul Systems, Inc. 17.0.15+6-LTS)
------------------------------------------------------------
[INFO]  Configuring with jreleaser.yml
[INFO]    - basedir set to /home/runner/work/jreleaser-test-app/jreleaser-test-app
[INFO]    - outputdir set to /home/runner/work/jreleaser-test-app/jreleaser-test-app/out/jreleaser
[INFO]  Reading configuration
[DEBUG]   - basedir set to /home/runner/work/jreleaser-test-app/jreleaser-test-app
[DEBUG]   - baseOutputDirectory set to /home/runner/work/jreleaser-test-app/jreleaser-test-app/out
[DEBUG]   - outputDirectory set to /home/runner/work/jreleaser-test-app/jreleaser-test-app/out/jreleaser
[DEBUG]   - checksumDirectory set to /home/runner/work/jreleaser-test-app/jreleaser-test-app/out/jreleaser/checksums
[DEBUG]   - catalogsDirectory set to /home/runner/work/jreleaser-test-app/jreleaser-test-app/out/jreleaser/catalogs
[DEBUG]   - signaturesDirectory set to /home/runner/work/jreleaser-test-app/jreleaser-test-app/out/jreleaser/signatures
[DEBUG]   - prepareDirectory set to /home/runner/work/jreleaser-test-app/jreleaser-test-app/out/jreleaser/prepare
[DEBUG]   - packageDirectory set to /home/runner/work/jreleaser-test-app/jreleaser-test-app/out/jreleaser/package
[DEBUG]   - downloadDirectory set to /home/runner/work/jreleaser-test-app/jreleaser-test-app/out/jreleaser/download
[DEBUG]   - assembleDirectory set to /home/runner/work/jreleaser-test-app/jreleaser-test-app/out/jreleaser/assemble
[DEBUG]   - artifactsDirectory set to /home/runner/work/jreleaser-test-app/jreleaser-test-app/out/jreleaser/artifacts
[DEBUG]   - deployDirectory set to /home/runner/work/jreleaser-test-app/jreleaser-test-app/out/jreleaser/deploy
[INFO]  git-root-search set to false
[INFO]  Loading variables from /home/runner/.jreleaser/config.properties
[WARN]  Variables source /home/runner/.jreleaser/config.properties does not exist
[DEBUG] The following variables are defined in the current environment:
[DEBUG]   JRELEASER_ANNOUNCE_SMTP_PASSWORD
[DEBUG]   JRELEASER_ANNOUNCE_SMTP_USER
[DEBUG]   JRELEASER_GITHUB_TOKEN
[DEBUG]   JRELEASER_GPG_PASSPHRASE
[DEBUG]   JRELEASER_GPG_PUBLIC_KEY
[DEBUG]   JRELEASER_GPG_SECRET_KEY
[DEBUG]   JRELEASER_NEXUS2_MAVEN_CENTRAL_PASSWORD
[DEBUG]   JRELEASER_NEXUS2_MAVEN_CENTRAL_USERNAME
[DEBUG]   JRELEASER_PROJECT_VERSION
[DEBUG]   JRELEASER_VERSION
[INFO]  Validating configuration
[INFO]  Strict mode set to false
[DEBUG] adjusting distributions with assemblies
[DEBUG]   [validation] --== ASSEMBLE ==--
[DEBUG]   [validation] hooks
[DEBUG]   [validation] hooks.command
[DEBUG]   [validation] - disabled
[DEBUG]   [validation] hooks.script
[DEBUG]   [validation] - disabled
[DEBUG]   [validation] - disabled
[DEBUG]   [validation] project
[DEBUG]   [validation] download
[DEBUG]   [validation] catalog.swid
[DEBUG]   [validation] catalog.swid.swid-tag
[DEBUG]   [validation] assemble
[DEBUG]   [validation] - disabled
[DEBUG]   [validation] signing
[DEBUG]   [validation] release
[DEBUG]   [validation] release.github
[DEBUG]   [validation] checksum
[DEBUG]   [validation] deploy
[DEBUG]   [validation] deploy.maven
[DEBUG]   [validation] upload
[DEBUG]   [validation] distributions
[DEBUG]   [validation] catalog
[DEBUG]   [validation] catalog.sbom
[DEBUG]   [validation] catalog.sbom.cyclonedx
[DEBUG]   [validation] - disabled
[DEBUG]   [validation] catalog.sbom.syft
[DEBUG]   [validation] - disabled
[DEBUG]   [validation] catalog.github
[DEBUG]   [validation] - disabled
[DEBUG]   [validation] catalog.slsa
[DEBUG]   [validation] - disabled
[DEBUG]   [validation] announce
[DEBUG]   [validation] - disabled
[DEBUG]   [postvalidation] project
[DEBUG]   [postvalidation] assemble
[DEBUG]   [postvalidation] assemble.deb
[DEBUG]   [postvalidation] assemble.jpackage
[DEBUG]   [resolution] assemble
[DEBUG]   [validation] --== FULL ==--
[DEBUG]   [validation] hooks
[DEBUG]   [validation] hooks.command
[DEBUG]   [validation] hooks.script
[DEBUG]   [validation] project
[DEBUG]   [validation] project.languages.java
[DEBUG]   [validation] download
[DEBUG]   [validation] - disabled
[DEBUG]   [validation] catalog.swid
[DEBUG]   [validation] catalog.swid.swid-tag
[DEBUG]   [validation] assemble
[DEBUG]   [validation] signing
[DEBUG]   [validation] release
[DEBUG]   [validation] release.github
[DEBUG]   [validation] checksum
[DEBUG]   [validation] deploy
[DEBUG]   [validation] deploy.maven
[DEBUG]   [validation] - disabled
[DEBUG]   [validation] - disabled
[DEBUG]   [validation] upload
[DEBUG]   [validation] - disabled
[DEBUG]   [validation] packagers
[DEBUG]   [validation] distributions
[DEBUG]   [validation] distribution.jreleaser-test-app
[DEBUG]   [validation] distribution.jreleaser-test-app.java
[DEBUG]   [validation] distribution.jreleaser-test-app.appImage
[DEBUG]   [validation] - disabled
[DEBUG]   [validation] distribution.jreleaser-test-app.asdf
[DEBUG]   [validation] - disabled
[DEBUG]   [validation] distribution.jreleaser-test-app.brew
[DEBUG]   [validation] - disabled
[DEBUG]   [validation] distribution.jreleaser-test-app.chocolatey
[DEBUG]   [validation] - disabled
[DEBUG]   [validation] distribution.jreleaser-test-app.docker
[DEBUG]   [validation] - disabled
[DEBUG]   [validation] distribution.jreleaser-test-app.flatpak
[DEBUG]   [validation] - disabled
[DEBUG]   [validation] distribution.jreleaser-test-app.gofish
[DEBUG]   [validation] - disabled
[DEBUG]   [validation] distribution.jreleaser-test-app.jbang
[DEBUG]   [validation] - disabled
[DEBUG]   [validation] distribution.jreleaser-test-app.jib
[DEBUG]   [validation] - disabled
[DEBUG]   [validation] distribution.jreleaser-test-app.macports
[DEBUG]   [validation] - disabled
[DEBUG]   [validation] distribution.jreleaser-test-app.scoop
[DEBUG]   [validation] - disabled
[DEBUG]   [validation] distribution.jreleaser-test-app.sdkman
[DEBUG]   [validation] - disabled
[DEBUG]   [validation] distribution.jreleaser-test-app.snap
[DEBUG]   [validation] - disabled
[DEBUG]   [validation] distribution.jreleaser-test-app.spec
[DEBUG]   [validation] - disabled
[DEBUG]   [validation] distribution.jreleaser-test-app.winget
[DEBUG]   [validation] - disabled
[DEBUG]   [validation] files
[DEBUG]   [validation] catalog
[DEBUG]   [validation] catalog.sbom
[DEBUG]   [validation] catalog.sbom.cyclonedx
[DEBUG]   [validation] - disabled
[DEBUG]   [validation] catalog.sbom.syft
[DEBUG]   [validation] - disabled
[DEBUG]   [validation] - disabled
[DEBUG]   [validation] catalog.github
[DEBUG]   [validation] - disabled
[DEBUG]   [validation] catalog.slsa
[DEBUG]   [validation] - disabled
[DEBUG]   [validation] - disabled
[DEBUG]   [validation] announce
[DEBUG]   [validation] announce.article
[DEBUG]   [validation] - disabled
[DEBUG]   [validation] announce.bluesky
[DEBUG]   [validation] - disabled
[DEBUG]   [validation] announce.discussions
[DEBUG]   [validation] - disabled
[DEBUG]   [validation] announce.discord
[DEBUG]   [validation] - disabled
[DEBUG]   [validation] announce.discourse
[DEBUG]   [validation] - disabled
[DEBUG]   [validation] announce.gitter
[DEBUG]   [validation] - disabled
[DEBUG]   [validation] announce.googleChat
[DEBUG]   [validation] - disabled
[DEBUG]   [validation] announce.linkedin
[DEBUG]   [validation] - disabled
[DEBUG]   [validation] announce.http
[DEBUG]   [validation] - disabled
[DEBUG]   [validation] announce.smtp
[DEBUG]   [validation] announce.mastodon
[DEBUG]   [validation] - disabled
[DEBUG]   [validation] announce.mattermost
[DEBUG]   [validation] - disabled
[DEBUG]   [validation] announce.openCollective
[DEBUG]   [validation] - disabled
[DEBUG]   [validation] announce.sdkman
[DEBUG]   [validation] - disabled
[DEBUG]   [validation] announce.slack
[DEBUG]   [validation] - disabled
[DEBUG]   [validation] announce.teams
[DEBUG]   [validation] - disabled
[DEBUG]   [validation] announce.telegram
[DEBUG]   [validation] - disabled
[DEBUG]   [validation] announce.twitter
[DEBUG]   [validation] - disabled
[DEBUG]   [validation] announce.webhooks
[DEBUG]   [validation] - disabled
[DEBUG]   [validation] announce.zulip
[DEBUG]   [validation] - disabled
[DEBUG]   [postvalidation] project
[DEBUG]   [postvalidation] assemble
[DEBUG]   [postvalidation] assemble.deb
[DEBUG]   [postvalidation] assemble.jpackage
[DEBUG]   [postvalidation] distributions
[DEBUG]   [postvalidation] distribution.jreleaser-test-app
environment:
 
hooks:
    enabled: false
    active: NEVER
    command:
        enabled: false
        active: NEVER
    script:
        enabled: false
        active: NEVER
 
project:
    name: jreleaser-test-app
    version: 1.0.4
    versionPattern: SEMVER
    snapshot:
        enabled: false
        pattern: .*-SNAPSHOT
        label: early-access
        fullChangelog: false
    description: A Test app to verify JReleaser
    longDescription: A Test app to verify JReleaser.

    license: BSD 2-Clause
    inceptionYear: 2024
    copyright: 2024 Adam DesJardin, Manik Magar
    authors:
        Adam DesJardin
        Manik Magar
    tags:
        jreleaser
        maven
    stereotype: NONE
    links:
        homepage: https://github.com/avioconsulting/
        documentation: https://avioconsulting.github.io/jreleaser-test-app/
        license: https://github.com/avioconsulting/jreleaser-test-app/blob/main/LICENSE
        bugTracker: https://{{repoHost}}/{{repoOwner}}/{{repoName}}/issues
        vcsBrowser: https://{{repoHost}}/{{repoOwner}}/{{repoName}}
        contribute: https://github.com/avioconsulting/jreleaser-test-app/blob/main/CONTRIBUTING.adoc
    extraProperties:
        versionMajor: 1
        versionMinor: 0
        versionPatch: 4
        versionNumber: 1.0.4
        versionWithUnderscores: 1_0_4
        versionWithDashes: 1-0-4
        versionNumberWithUnderscores: 1_0_4
        versionNumberWithDashes: 1-0-4
        effectiveVersionWithUnderscores: 1_0_4
        effectiveVersionWithDashes: 1-0-4
    languages:
        java:
            enabled: true
            version: 8
            groupId: com.avioconsulting
            artifactId: jreleaser-test-app
            jvmOptions:
            environmentVariables:
            multiProject: false
 
platform:
 
release:
    github:
        enabled: true
        host: github.com
        owner: avioconsulting
        name: jreleaser-test-app
        username: avioconsulting
        token: ************
        artifacts: true
        files: true
        checksums: true
        catalogs: true
        signatures: true
        repoUrl: https://{{repoHost}}/{{repoOwner}}/{{repoName}}
        repoCloneUrl: https://{{repoHost}}/{{repoOwner}}/{{repoName}}.git
        commitUrl: https://{{repoHost}}/{{repoOwner}}/{{repoName}}/commits
        srcUrl: https://{{repoHost}}/{{repoOwner}}/{{repoName}}/blob/{{repoBranch}}
        downloadUrl: https://{{repoHost}}/{{repoOwner}}/{{repoName}}/releases/download/{{tagName}}/{{artifactFile}}
        releaseNotesUrl: https://{{repoHost}}/{{repoOwner}}/{{repoName}}/releases/tag/{{tagName}}
        latestReleaseUrl: https://{{repoHost}}/{{repoOwner}}/{{repoName}}/releases/latest
        issueTrackerUrl: https://{{repoHost}}/{{repoOwner}}/{{repoName}}/issues
        tagName: v{{projectVersion}}
        releaseName: {{tagName}}
        branch: main
        branchPush: main
        commitAuthor:
            name: jreleaserbot
            email: jreleaser@kordamp.org
        sign: true
        skipTag: false
        skipRelease: false
        overwrite: true
        update:
            enabled: false
        apiEndpoint: https://api.github.com
        connectTimeout: 20
        readTimeout: 60
        changelog:
            enabled: true
            append:
                enabled: false
            links: false
            skipMergeCommits: true
            sort: DESC
            formatted: ALWAYS
            preset: conventional-commits
            format: - {{commitShortHash}} {{commitTitle}}
            categoryTitleFormat: ## {{categoryTitle}}
            contributorsTitleFormat: ## Contributors
            content: 
## Changelog

{{changelogChanges}}
    {{changelogContributors}}
            excludeLabels:
                bot-commits
            hide:
                categories:
                    merge
                contributors:
                    ^.*(\[bot\])$
                    GitHub
                    regex:^.*(\[bot\])$
            contributors:
                enabled: true
                format: - {{contributorName}}{{#contributorUsernameAsLink}} ({{.}}){{/contributorUsernameAsLink}}
            categories:
                category 0:
                    key: merge
                    title: 🔀 Merge
                    labels:
                        merge
                    order: 0
                category 1:
                    key: features
                    title: 🚀 Features
                    labels:
                        feat
                    order: 10
                category 2:
                    key: fixes
                    title: 🐛 Fixes
                    labels:
                        fix
                    order: 20
                category 3:
                    key: changes
                    title: 🔄️ Changes
                    labels:
                        revert
                        style
                        perf
                        refactor
                    order: 30
                category 4:
                    key: test
                    title: 🧪 Tests
                    labels:
                        test
                    order: 35
                category 5:
                    key: tasks
                    title: 🧰 Tasks
                    labels:
                        chore
                    order: 40
                category 6:
                    key: build
                    title: 🛠  Build
                    labels:
                        test
                        build
                        ci
                    order: 50
                category 7:
                    key: docs
                    title: 📝 Documentation
                    labels:
                        docs
                    order: 60
                category 8:
                    key: dependencies
                    title: ⚙️  Dependencies
                    labels:
                        dependencies
                    order: 80
            labelers:
                labeler 0:
                    label: merge
                    title: Merge pull
                    order: 0
                labeler 1:
                    label: merge
                    title: Merge branch
                    order: 5
                labeler 2:
                    label: build
                    title: regex:^(?:build(?:\(.*\))?!?):\s.*
                    order: 10
                labeler 3:
                    label: chore
                    title: regex:^(?:chore(?:\(.*\))?!?):\s.*
                    order: 20
                labeler 4:
                    label: ci
                    title: regex:^(?:ci(?:\(.*\))?!?):\s.*
                    order: 30
                labeler 5:
                    label: docs
                    title: regex:^(?:docs(?:\(.*\))?!?):\s.*
                    order: 40
                labeler 6:
                    label: feat
                    title: regex:^(?:feat(?:\(.*\))?!?):\s.*
                    order: 50
                labeler 7:
                    label: fix
                    title: regex:^(?:fix(?:\(.*\))?!?):\s.*
                    order: 60
                labeler 8:
                    label: perf
                    title: regex:^(?:perf(?:\(.*\))?!?):\s.*
                    order: 70
                labeler 9:
                    label: refactor
                    title: regex:^(?:refactor(?:\(.*\))?!?):\s.*
                    order: 80
                labeler 10:
                    label: revert
                    title: regex:^(?:revert(?:\(.*\))?!?):\s.*
                    order: 90
                labeler 11:
                    label: style
                    title: regex:^(?:style(?:\(.*\))?!?):\s.*
                    order: 100
                labeler 12:
                    label: test
                    title: regex:^(?:test(?:\(.*\))?!?):\s.*
                    order: 110
                labeler 13:
                    label: dependencies
                    title: deps:
                    order: 130
                labeler 14:
                    label: bot-commits
                    contributor: regex:^.*(\[bot\])$
            replacers:
                replacer 0:
                    search: feat: 
                replacer 1:
                    search: fix: 
                replacer 2:
                    search: chore: 
                replacer 3:
                    search: deps: 
                replacer 4:
                    search: test: 
                replacer 5:
                    search: docs: 
        milestone:
            name: {{tagName}}
            close: true
        issues:
            enabled: true
            comment: 🎉 This issue has been resolved in `{{tagName}}` ([Release Notes]({{releaseNotesUrl}}))
            label:
                name: released
                color: #008000
                description: Issue has been released
            applyMilestone: ALWAYS
        prerelease:
            enabled: false
        draft: false
        releaseNotes:
            enabled: false
 
checksum:
    name: checksums.txt
    individual: true
    algorithms:
        SHA_256
    artifacts: true
    files: true
 
signing:
    enabled: true
    active: ALWAYS
    armored: true
    verify: true
    mode: MEMORY
    artifacts: true
    files: true
    checksums: true
    catalogs: true
    passphrase: ************
    publicKey: ************
    secretKey: ************
 
announce:
    enabled: true
    active: ALWAYS
    article:
        enabled: false
        active: NEVER
        commitAuthor:
        repository:
            enabled: false
            name: article
            token: **unset**
    bluesky:
        enabled: false
        active: NEVER
        handle: **unset**
        password: **unset**
    discord:
        enabled: false
        active: NEVER
        webhook: **unset**
    discourse:
        enabled: false
        active: NEVER
        apiKey: **unset**
        username: **unset**
    discussions:
        enabled: false
        active: NEVER
    gitter:
        enabled: false
        active: NEVER
        webhook: **unset**
    googlechat:
        enabled: false
        active: NEVER
        webhook: **unset**
    linkedin:
        enabled: false
        active: NEVER
        owner: **unset**
        accessToken: **unset**
    smtp:
        enabled: true
        active: RELEASE
        transport: SMTP
        host: smtp.gmail.com
        port: 587
        auth: true
        username: ************
        password: ************
        from: ************
        to: ************
        subject: {{projectNameCapitalized}} {{projectVersion}} released!
        messageTemplate: src/jreleaser/templates/smtp.tpl
        mimeType: TEXT
    mastodon:
        enabled: false
        active: NEVER
        accessToken: **unset**
    mattermost:
        enabled: false
        active: NEVER
        webhook: **unset**
        structuredMessage: true
    opencollective:
        enabled: false
        active: NEVER
        token: **unset**
    sdkman:
        enabled: false
        consumerKey: **unset**
        consumerToken: **unset**
    slack:
        enabled: false
        active: NEVER
        webhook: **unset**
        token: **unset**
    teams:
        enabled: false
        active: NEVER
        webhook: **unset**
    telegram:
        enabled: false
        active: NEVER
        token: **unset**
        chatId: **unset**
    twitter:
        enabled: false
        active: NEVER
        consumerKey: **unset**
        consumerSecret: **unset**
        accessToken: **unset**
        accessTokenSecret: **unset**
    zulip:
        enabled: false
        active: NEVER
        apiKey: **unset**
 
packagers:
    appimage:
        enabled: false
        active: NEVER
        continueOnError: false
        commitAuthor:
            name: jreleaserbot
            email: jreleaser@kordamp.org
        developerName: Adam DesJardin, Manik Magar
        requiresTerminal: false
        repository:
            enabled: false
            owner: avioconsulting
            name: appimage
            tagName: v{{projectVersion}}
            branch: HEAD
            branchPush: HEAD
            username: avioconsulting
            token: ************
    asdf:
        enabled: false
        active: NEVER
        continueOnError: false
        commitAuthor:
            name: jreleaserbot
            email: jreleaser@kordamp.org
        repository:
            enabled: false
            owner: avioconsulting
            name: asdf
            tagName: v{{projectVersion}}
            branch: HEAD
            branchPush: HEAD
            username: avioconsulting
            token: ************
    brew:
        enabled: false
        active: NEVER
        continueOnError: false
        commitAuthor:
            name: jreleaserbot
            email: jreleaser@kordamp.org
        multiPlatform: false
        repository:
            enabled: false
            owner: avioconsulting
            name: homebrew-tap
            tagName: v{{projectVersion}}
            branch: HEAD
            branchPush: HEAD
            username: avioconsulting
            token: ************
        cask:
            enabled: false
    chocolatey:
        enabled: false
        active: NEVER
        continueOnError: false
        commitAuthor:
            name: jreleaserbot
            email: jreleaser@kordamp.org
        apiKey: **unset**
        remoteBuild: false
        repository:
            enabled: false
            owner: avioconsulting
            name: chocolatey-bucket
            tagName: v{{projectVersion}}
            branch: HEAD
            branchPush: HEAD
            username: avioconsulting
            token: ************
    docker:
        enabled: false
        active: NEVER
        useLocalArtifact: true
        buildx:
            enabled: false
            createBuilder: true
        commitAuthor:
            name: jreleaserbot
            email: jreleaser@kordamp.org
        repository:
            enabled: false
            owner: avioconsulting
            name: docker
            tagName: v{{projectVersion}}
            branch: HEAD
            branchPush: HEAD
            username: avioconsulting
            token: ************
            versionedSubfolders: false
        continueOnError: false
    flatpak:
        enabled: false
        active: NEVER
        continueOnError: false
        commitAuthor:
            name: jreleaserbot
            email: jreleaser@kordamp.org
        developerName: Adam DesJardin, Manik Magar
        repository:
            enabled: false
            owner: avioconsulting
            name: flatpak
            tagName: v{{projectVersion}}
            branch: HEAD
            branchPush: HEAD
            username: avioconsulting
            token: ************
    gofish:
        enabled: false
        active: NEVER
        continueOnError: false
        commitAuthor:
            name: jreleaserbot
            email: jreleaser@kordamp.org
        repository:
            enabled: false
            owner: avioconsulting
            name: avioconsulting-fish-food
            tagName: v{{projectVersion}}
            branch: HEAD
            branchPush: HEAD
            username: avioconsulting
            token: ************
    jbang:
        enabled: false
        active: NEVER
        continueOnError: false
        commitAuthor:
            name: jreleaserbot
            email: jreleaser@kordamp.org
        repository:
            enabled: false
            owner: avioconsulting
            name: jbang-catalog
            tagName: v{{projectVersion}}
            branch: HEAD
            branchPush: HEAD
            username: avioconsulting
            token: ************
    jib:
        enabled: false
        active: NEVER
        commitAuthor:
            name: jreleaserbot
            email: jreleaser@kordamp.org
        repository:
            enabled: false
            owner: avioconsulting
            name: jib
            tagName: v{{projectVersion}}
            branch: HEAD
            branchPush: HEAD
            username: avioconsulting
            token: ************
            versionedSubfolders: false
        continueOnError: false
    macports:
        enabled: false
        active: NEVER
        continueOnError: false
        commitAuthor:
            name: jreleaserbot
            email: jreleaser@kordamp.org
        repository:
            enabled: false
            owner: avioconsulting
            name: macports
            tagName: v{{projectVersion}}
            branch: HEAD
            branchPush: HEAD
            username: avioconsulting
            token: ************
    scoop:
        enabled: false
        active: NEVER
        continueOnError: false
        commitAuthor:
            name: jreleaserbot
            email: jreleaser@kordamp.org
        repository:
            enabled: false
            owner: avioconsulting
            name: scoop-avioconsulting
            tagName: v{{projectVersion}}
            branch: HEAD
            branchPush: HEAD
            username: avioconsulting
            token: ************
    sdkman:
        enabled: false
        continueOnError: false
        connectTimeout: 20
        readTimeout: 60
        consumerKey: **unset**
        consumerToken: **unset**
    snap:
        enabled: false
        active: NEVER
        continueOnError: false
        commitAuthor:
            name: jreleaserbot
            email: jreleaser@kordamp.org
        remoteBuild: false
        repository:
            enabled: false
            owner: avioconsulting
            name: snap
            tagName: v{{projectVersion}}
            branch: HEAD
            branchPush: HEAD
            username: avioconsulting
            token: ************
    spec:
        enabled: false
        active: NEVER
        continueOnError: false
        commitAuthor:
            name: jreleaserbot
            email: jreleaser@kordamp.org
        repository:
            enabled: false
            owner: avioconsulting
            name: avioconsulting-spec
            tagName: v{{projectVersion}}
            branch: HEAD
            branchPush: HEAD
            username: avioconsulting
            token: ************
    winget:
        enabled: false
        active: NEVER
        continueOnError: false
        commitAuthor:
            name: jreleaserbot
            email: jreleaser@kordamp.org
        package:
        publisher:
        installer:
            type: WIX
            scope: MACHINE
            upgradeBehavior: INSTALL
            dependencies:
        repository:
            enabled: false
            owner: avioconsulting
            name: winget
            tagName: v{{projectVersion}}
            branch: HEAD
            branchPush: HEAD
            username: avioconsulting
            token: ************
 
download:
    enabled: false
    active: NEVER
 
assemble:
    enabled: false
    active: NEVER
 
deploy:
    enabled: false
    active: NEVER
    maven:
        enabled: false
        active: NEVER
        pomchecker:
            version: 1.14.0
            failOnWarning: true
            failOnError: true
            strict: true
 
upload:
    enabled: false
    active: NEVER
 
catalog:
    enabled: false
    active: NEVER
    github:
        enabled: false
        active: NEVER
        artifacts: true
        files: true
        deployables: true
    sbom:
        enabled: false
        active: NEVER
        cyclonedx:
            enabled: false
            active: NEVER
            distributions: false
            files: false
            pack:
                enabled: false
        syft:
            enabled: false
            active: NEVER
            distributions: false
            files: false
            pack:
                enabled: false
    slsa:
        enabled: false
        active: NEVER
        artifacts: true
        files: true
        deployables: true
    swid:
        enabled: false
        active: NEVER
        name: swid-tag
        path: SWIDTAG
        tagId: 9197419c-221f-3f12-ab05-65bcf06d421b
        tagVersion: 1
        lang: en-US
        corpus: false
        patch: false
        entities:
            entity 0:
                name: jreleaser-test-app
                regid: https://github.com/avioconsulting/
                roles:
                    softwareCreator
                    tagCreator
 
distributions:
    jreleaser-test-app:
        enabled: true
        active: ALWAYS
        type: JAVA_BINARY
        executable:
            name: jreleaser-test-app
            windowsExtension: bat
        platform:
        applyDefaultMatrix: false
        artifactPattern:
            enabled: false
            active: ALWAYS
        artifacts:
            artifact 0:
                enabled: true
                active: ALWAYS
                path: target/jreleaser-test-app-{{projectVersion}}.jar
        tags:
            jreleaser
            maven
        stereotype: NONE
        java:
            enabled: true
            version: 8
            groupId: com.avioconsulting
            artifactId: jreleaser-test-app
            jvmOptions:
            environmentVariables:
            multiProject: false
        appimage:
            enabled: false
            active: NEVER
            continueOnError: false
            commitAuthor:
            requiresTerminal: false
            repository:
                enabled: false
                name: appimage
                token: **unset**
        asdf:
            enabled: false
            active: NEVER
            continueOnError: false
            commitAuthor:
            repository:
                enabled: false
                name: asdf
                token: **unset**
        brew:
            enabled: false
            active: NEVER
            continueOnError: false
            commitAuthor:
            multiPlatform: false
            repository:
                enabled: false
                name: homebrew-tap
                token: **unset**
            cask:
                enabled: false
        chocolatey:
            enabled: false
            active: NEVER
            continueOnError: false
            commitAuthor:
            apiKey: **unset**
            remoteBuild: false
            repository:
                enabled: false
                name: chocolatey-bucket
                token: **unset**
        docker:
            enabled: false
            active: NEVER
            useLocalArtifact: true
            buildx:
                enabled: false
                createBuilder: true
            commitAuthor:
            repository:
                enabled: false
                name: docker
                token: **unset**
                versionedSubfolders: false
            continueOnError: false
        flatpak:
            enabled: false
            active: NEVER
            continueOnError: false
            commitAuthor:
            repository:
                enabled: false
                name: flatpak
                token: **unset**
        gofish:
            enabled: false
            active: NEVER
            continueOnError: false
            commitAuthor:
            repository:
                enabled: false
                name: fish-food
                token: **unset**
        jbang:
            enabled: false
            active: NEVER
            continueOnError: false
            commitAuthor:
            repository:
                enabled: false
                name: jbang-catalog
                token: **unset**
        jib:
            enabled: false
            active: NEVER
            commitAuthor:
            repository:
                enabled: false
                name: jib
                token: **unset**
                versionedSubfolders: false
            continueOnError: false
        macports:
            enabled: false
            active: NEVER
            continueOnError: false
            commitAuthor:
            repository:
                enabled: false
                name: macports
                token: **unset**
        scoop:
            enabled: false
            active: NEVER
            continueOnError: false
            commitAuthor:
            repository:
                enabled: false
                name: scoop
                token: **unset**
        sdkman:
            enabled: false
            continueOnError: false
            connectTimeout: 0
            readTimeout: 0
            consumerKey: **unset**
            consumerToken: **unset**
        snap:
            enabled: false
            active: NEVER
            continueOnError: false
            commitAuthor:
            remoteBuild: false
            repository:
                enabled: false
                name: snap
                token: **unset**
        spec:
            enabled: false
            active: NEVER
            continueOnError: false
            commitAuthor:
            repository:
                enabled: false
                name: spec
                token: **unset**
        winget:
            enabled: false
            active: NEVER
            continueOnError: false
            commitAuthor:
            package:
            publisher:
            installer:
                type: WIX
                scope: MACHINE
                upgradeBehavior: INSTALL
                dependencies:
            repository:
                enabled: false
                name: winget
                token: **unset**
 
[INFO]  Project version set to 1.0.4
[INFO]  Release is not snapshot
[INFO]  Timestamp is 2025-04-21T09:57:06.366882355Z
[INFO]  HEAD is at 564c978
[INFO]  Platform is linux-x86_64
[DEBUG] loading extension default-jreleaser-mustache:jreleaser.shadow.org.jreleaser.extensions.internal.mustache.DefaultMustacheExtension
[DEBUG] adding jreleaser.shadow.org.jreleaser.extensions.internal.mustache.DefaultMustacheExtensionPoint from default-jreleaser-mustache extension
[INFO]  dry-run set to false
[INFO]  Generating changelog
[DEBUG] resolving commits
[DEBUG] looking for tag that matches 'v1.0.4'
[DEBUG] looking for tags that match 'v.*', excluding 'v1.0.4'
[DEBUG] found tag v1.0.3
[DEBUG] sorting commits DESC
[INFO]  Extracting issues from changelog
[INFO]  Storing issues: out/jreleaser/release/issues.txt
[DEBUG] 11
[DEBUG] looking up user for Manik Magar
[DEBUG] looking up user for manikmagar 
[INFO]  Storing changelog: out/jreleaser/release/CHANGELOG.md
[DEBUG] ## Changelog

## 🧰 Tasks
- 564c978 release 1.0.4


## Contributors
We'd like to thank the following people for their contributions:
- Manik Magar
- manikmagar ([@manikmagar](https://github.com/manikmagar))
[INFO]  Calculating checksums for distributions and files
[DEBUG]   [checksum] checksum does not exist: out/jreleaser/checksums/jreleaser-test-app/jreleaser-test-app-1.0.4.jar.sha256
[INFO]    [checksum] target/jreleaser-test-app-1.0.4.jar.sha256
[DEBUG]   [checksum] reading out/jreleaser/checksums/jreleaser-test-app/jreleaser-test-app-1.0.4.jar.sha256
[INFO]  Cataloging artifacts
[INFO]    Cataloging is not enabled. Skipping
[INFO]  Signing distributions and files
[DEBUG]   [sign] signature does not exist: out/jreleaser/signatures/jreleaser-test-app-1.0.4.jar.asc
[DEBUG]   [sign] signature does not exist: out/jreleaser/signatures/checksums_sha256.txt.asc
[DEBUG]   [sign] signing 2 files into out/jreleaser/signatures
[INFO]    [sign] target/jreleaser-test-app-1.0.4.jar
[INFO]    [sign] out/jreleaser/checksums/checksums_sha256.txt
[DEBUG]   [sign] verifying 2 signatures
[DEBUG]   [verify] out/jreleaser/signatures/jreleaser-test-app-1.0.4.jar.asc
[DEBUG]   [verify] out/jreleaser/signatures/checksums_sha256.txt.asc
[INFO]  Deploying Maven artifacts
[INFO]    [maven] Deploying is not enabled. Skipping
[INFO]  Uploading distributions and files
[INFO]    [upload] Uploading is not enabled. Skipping
[INFO]  Releasing to https://github.com/avioconsulting/jreleaser-test-app@main
[DEBUG] fetching all branches on avioconsulting/jreleaser-test-app
[DEBUG] looking up release with tag v1.0.4 at repository avioconsulting/jreleaser-test-app
[DEBUG] fetching release on avioconsulting/jreleaser-test-app with tag v1.0.4
[DEBUG] release v1.0.4 does not exist
[DEBUG] creating release v1.0.4
[DEBUG] tagging local repository with v1.0.4 @ 564c978
[DEBUG] creating release on avioconsulting/jreleaser-test-app with tag v1.0.4
[INFO]   - uploading checksums_sha256.txt
[DEBUG] url: https://uploads.github.com/repos/avioconsulting/jreleaser-test-app/releases/213651438/assets?name=checksums_sha256.txt
[DEBUG] opening connection
[DEBUG] configuring connection
[DEBUG] Accept: [application/vnd.github+json]
[DEBUG] User-Agent: [JReleaser/1.17.0]
[DEBUG] X-GitHub-Api-Version: [2022-11-28]
[DEBUG] Content-Type: [text/plain]
[DEBUG] sending data
[DEBUG] handling response
[INFO]   - uploading checksums_sha256.txt.asc
[DEBUG] url: https://uploads.github.com/repos/avioconsulting/jreleaser-test-app/releases/213651438/assets?name=checksums_sha256.txt.asc
[DEBUG] opening connection
[DEBUG] configuring connection
[DEBUG] Accept: [application/vnd.github+json]
[DEBUG] User-Agent: [JReleaser/1.17.0]
[DEBUG] X-GitHub-Api-Version: [2022-11-28]
[DEBUG] Content-Type: [text/plain]
[DEBUG] sending data
[DEBUG] handling response
[INFO]   - uploading jreleaser-test-app-1.0.4.jar
[DEBUG] url: https://uploads.github.com/repos/avioconsulting/jreleaser-test-app/releases/213651438/assets?name=jreleaser-test-app-1.0.4.jar
[DEBUG] opening connection
[DEBUG] configuring connection
[DEBUG] Accept: [application/vnd.github+json]
[DEBUG] User-Agent: [JReleaser/1.17.0]
[DEBUG] X-GitHub-Api-Version: [2022-11-28]
[DEBUG] Content-Type: [application/java-archive]
[DEBUG] sending data
[DEBUG] handling response
[INFO]   - uploading jreleaser-test-app-1.0.4.jar.asc
[DEBUG] url: https://uploads.github.com/repos/avioconsulting/jreleaser-test-app/releases/213651438/assets?name=jreleaser-test-app-1.0.4.jar.asc
[DEBUG] opening connection
[DEBUG] configuring connection
[DEBUG] Accept: [application/vnd.github+json]
[DEBUG] User-Agent: [JReleaser/1.17.0]
[DEBUG] X-GitHub-Api-Version: [2022-11-28]
[DEBUG] Content-Type: [text/plain]
[DEBUG] sending data
[DEBUG] handling response
[INFO]   - uploading jreleaser-test-app-1.0.4.jar.sha256
[DEBUG] url: https://uploads.github.com/repos/avioconsulting/jreleaser-test-app/releases/213651438/assets?name=jreleaser-test-app-1.0.4.jar.sha256
[DEBUG] opening connection
[DEBUG] configuring connection
[DEBUG] Accept: [application/vnd.github+json]
[DEBUG] User-Agent: [JReleaser/1.17.0]
[DEBUG] X-GitHub-Api-Version: [2022-11-28]
[DEBUG] Content-Type: [text/plain]
[DEBUG] sending data
[DEBUG] handling response
[DEBUG] lookup open milestone 'v1.0.4' on avioconsulting/jreleaser-test-app
[DEBUG] fetching all milestones on avioconsulting/jreleaser-test-app with status open
[INFO]  Marking 1 issue(s) as released
[DEBUG] looking up label released
[DEBUG] fetching all labels on avioconsulting/jreleaser-test-app
[DEBUG] lookup open milestone 'v1.0.4' on avioconsulting/jreleaser-test-app
[DEBUG] fetching all milestones on avioconsulting/jreleaser-test-app with status open
[DEBUG] lookup closed milestone 'v1.0.4' on avioconsulting/jreleaser-test-app
[DEBUG] fetching all milestones on avioconsulting/jreleaser-test-app with status closed
[DEBUG] looking up issue #11
[DEBUG] marking issue #11 as released
[DEBUG] adding label released to issue #11
[DEBUG] commenting on issue #11
[DEBUG] checking if release avioconsulting/jreleaser-test-app@v1.0.4 was left as draft
[DEBUG] fetching release on avioconsulting/jreleaser-test-app with id 213651438
[INFO]  Preparing distributions
[INFO]    - Preparing jreleaser-test-app distribution
[DEBUG]     [appimage] skipping for jreleaser-test-app distribution
[DEBUG]     [asdf] skipping for jreleaser-test-app distribution
[DEBUG]     [brew] skipping for jreleaser-test-app distribution
[DEBUG]     [chocolatey] skipping for jreleaser-test-app distribution
[DEBUG]     [docker] skipping for jreleaser-test-app distribution
[DEBUG]     [flatpak] skipping for jreleaser-test-app distribution
[DEBUG]     [gofish] skipping for jreleaser-test-app distribution
[DEBUG]     [jbang] skipping for jreleaser-test-app distribution
[DEBUG]     [jib] skipping for jreleaser-test-app distribution
[DEBUG]     [macports] skipping for jreleaser-test-app distribution
[DEBUG]     [scoop] skipping for jreleaser-test-app distribution
[DEBUG]     [sdkman] skipping for jreleaser-test-app distribution
[DEBUG]     [snap] skipping for jreleaser-test-app distribution
[DEBUG]     [spec] skipping for jreleaser-test-app distribution
[DEBUG]     [winget] skipping for jreleaser-test-app distribution
[INFO]  Packaging distributions
[INFO]    - Packaging jreleaser-test-app distribution
[DEBUG]     [appimage] skipping for jreleaser-test-app distribution
[DEBUG]     [asdf] skipping for jreleaser-test-app distribution
[DEBUG]     [brew] skipping for jreleaser-test-app distribution
[DEBUG]     [chocolatey] skipping for jreleaser-test-app distribution
[DEBUG]     [docker] skipping for jreleaser-test-app distribution
[DEBUG]     [flatpak] skipping for jreleaser-test-app distribution
[DEBUG]     [gofish] skipping for jreleaser-test-app distribution
[DEBUG]     [jbang] skipping for jreleaser-test-app distribution
[DEBUG]     [jib] skipping for jreleaser-test-app distribution
[DEBUG]     [macports] skipping for jreleaser-test-app distribution
[DEBUG]     [scoop] skipping for jreleaser-test-app distribution
[DEBUG]     [sdkman] skipping for jreleaser-test-app distribution
[DEBUG]     [snap] skipping for jreleaser-test-app distribution
[DEBUG]     [spec] skipping for jreleaser-test-app distribution
[DEBUG]     [winget] skipping for jreleaser-test-app distribution
[INFO]  Publishing distributions
[INFO]    - Publishing jreleaser-test-app distribution
[DEBUG]     [appimage] skipping for jreleaser-test-app distribution
[DEBUG]     [asdf] skipping for jreleaser-test-app distribution
[DEBUG]     [brew] skipping for jreleaser-test-app distribution
[DEBUG]     [chocolatey] skipping for jreleaser-test-app distribution
[DEBUG]     [docker] skipping for jreleaser-test-app distribution
[DEBUG]     [flatpak] skipping for jreleaser-test-app distribution
[DEBUG]     [gofish] skipping for jreleaser-test-app distribution
[DEBUG]     [jbang] skipping for jreleaser-test-app distribution
[DEBUG]     [jib] skipping for jreleaser-test-app distribution
[DEBUG]     [macports] skipping for jreleaser-test-app distribution
[DEBUG]     [scoop] skipping for jreleaser-test-app distribution
[DEBUG]     [sdkman] skipping for jreleaser-test-app distribution
[DEBUG]     [snap] skipping for jreleaser-test-app distribution
[DEBUG]     [spec] skipping for jreleaser-test-app distribution
[DEBUG]     [winget] skipping for jreleaser-test-app distribution
[INFO]  Announcing release
[DEBUG]   [article] disabled. Skipping
[DEBUG]   [bluesky] disabled. Skipping
[DEBUG]   [discord] disabled. Skipping
[DEBUG]   [discourse] disabled. Skipping
[DEBUG]   [discussions] disabled. Skipping
[DEBUG]   [gitter] disabled. Skipping
[DEBUG]   [googlechat] disabled. Skipping
[DEBUG]   [http] disabled. Skipping
[DEBUG]   [linkedin] disabled. Skipping
[DEBUG]   [mastodon] disabled. Skipping
[DEBUG]   [mattermost] disabled. Skipping
[DEBUG]   [opencollective] disabled. Skipping
[DEBUG]   [sdkman] disabled. Skipping
[DEBUG]   [slack] disabled. Skipping
[INFO]    [smtp] subject: Jreleaser Test App 1.0.4 released!
[DEBUG]   [smtp] message: jreleaser-test-app v1.0.4 has been released!

Project documentation is available at - https://avioconsulting.github.io/jreleaser-test-app/

----
## Changelog

## 🧰 Tasks
- 564c978 release 1.0.4


## Contributors
We'd like to thank the following people for their contributions:
- Manik Magar
- manikmagar ([@manikmagar](https://github.com/manikmagar))
----

Please report any issues at https://github.com/avioconsulting/jreleaser-test-app/issues

Cheers!
[INFO]    [smtp] Sending e-mail announcement
jreleaser.shadow.org.jreleaser.sdk.smtp.SmtpException: jreleaser.shadow.jakarta.mail.NoSuchProviderException: smtp
	at jreleaser.shadow.org.jreleaser.sdk.smtp.MessageSmtpCommand.execute(MessageSmtpCommand.java:162)
	at jreleaser.shadow.org.jreleaser.sdk.smtp.SmtpAnnouncer.announce(SmtpAnnouncer.java:88)
	at jreleaser.shadow.org.jreleaser.engine.announce.Announcers.announce(Announcers.java:127)
	at jreleaser.shadow.org.jreleaser.engine.announce.Announcers.announce(Announcers.java:109)
	at jreleaser.shadow.org.jreleaser.workflow.AnnounceWorkflowItem.doInvoke(AnnounceWorkflowItem.java:35)
	at jreleaser.shadow.org.jreleaser.workflow.AbstractWorkflowItem.lambda$invoke$0(AbstractWorkflowItem.java:43)
	at jreleaser.shadow.org.jreleaser.engine.hooks.HookExecutor.execute(HookExecutor.java:72)
	at jreleaser.shadow.org.jreleaser.workflow.AbstractWorkflowItem.invoke(AbstractWorkflowItem.java:43)
	at jreleaser.shadow.org.jreleaser.workflow.WorkflowImpl.doExecute(WorkflowImpl.java:129)
	at jreleaser.shadow.org.jreleaser.workflow.WorkflowImpl.execute(WorkflowImpl.java:54)
	at jreleaser.shadow.org.jreleaser.cli.FullRelease.doExecute(FullRelease.java:220)
	at jreleaser.shadow.org.jreleaser.cli.AbstractModelCommand.execute(AbstractModelCommand.java:90)
	at jreleaser.shadow.org.jreleaser.cli.AbstractCommand.call(AbstractCommand.java:52)
	at jreleaser.shadow.org.jreleaser.cli.AbstractCommand.call(AbstractCommand.java:37)
	at jreleaser.shadow.picocli.CommandLine.executeUserObject(CommandLine.java:2045)
	at jreleaser.shadow.picocli.CommandLine.access$1500(CommandLine.java:148)
	at jreleaser.shadow.picocli.CommandLine$RunLast.executeUserObjectOfLastSubcommandWithSameParent(CommandLine.java:2465)
	at jreleaser.shadow.picocli.CommandLine$RunLast.handle(CommandLine.java:2457)
	at jreleaser.shadow.picocli.CommandLine$RunLast.handle(CommandLine.java:2419)
	at jreleaser.shadow.picocli.CommandLine$AbstractParseResultHandler.execute(CommandLine.java:2277)
	at jreleaser.shadow.picocli.CommandLine$RunLast.execute(CommandLine.java:2421)
	at jreleaser.shadow.picocli.CommandLine.execute(CommandLine.java:2174)
	at jreleaser.shadow.org.jreleaser.cli.Main.execute(Main.java:98)
	at jreleaser.shadow.org.jreleaser.cli.Main.run(Main.java:94)
	at org.jreleaser.tool.JReleaser.main(JReleaser.java:47)
Caused by: jreleaser.shadow.jakarta.mail.NoSuchProviderException: smtp
	at jreleaser.shadow.jakarta.mail.Session.getService(Session.java:842)
	at jreleaser.shadow.jakarta.mail.Session.getTransport(Session.java:772)
	at jreleaser.shadow.jakarta.mail.Session.getTransport(Session.java:713)
	at jreleaser.shadow.jakarta.mail.Session.getTransport(Session.java:693)
	at jreleaser.shadow.org.jreleaser.sdk.smtp.MessageSmtpCommand.execute(MessageSmtpCommand.java:154)
	... 24 more
[WARN]    [smtp] jreleaser.shadow.org.jreleaser.sdk.smtp.SmtpException: jreleaser.shadow.jakarta.mail.NoSuchProviderException: smtp
[DEBUG]   [teams] disabled. Skipping
[DEBUG]   [telegram] disabled. Skipping
[DEBUG]   [twitter] disabled. Skipping
[DEBUG]   [webhooks] disabled. Skipping
[DEBUG]   [zulip] disabled. Skipping
[INFO]  Writing output properties to out/jreleaser/output.properties
[INFO]  JReleaser succeeded after 6.644 s

Any thoughts on what could be wrong when running from the Actions? Thank you in advance!

Originally posted by @manikmagar in #1857

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingreleasedIssue has been released

Type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions