Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Oct 26, 2025

Implements automated Maven Central publishing using GitHub Actions workflow, replacing manual release process. Based on loxone-client-kotlin reference implementation.

Build Configuration

  • Version management: axion-release v1.14.4 derives versions from git tags (replaces hardcoded gradle.properties)
  • Publishing: nexus-publish v1.3.0 automates Sonatype staging repository lifecycle
  • Signing: In-memory PGP keys from environment variables (CI/CD), backward compatible with properties file (local dev)
  • Compatibility: Gradle 7.5.1, Java 11 (no upgrades)

GitHub Actions Workflow

.github/workflows/loxone-java-release.yml - Manual trigger with semantic version increment:

on:
  workflow_dispatch:
    inputs:
      versionIncrement:
        type: choice
        options: [incrementPatch, incrementMinor, incrementMajor]

Pipeline: tag creation → build → GPG sign → Sonatype publish → staging close/release → Maven Central (~10min)

Required Secrets

Repository secrets must be configured before first release:

Secret Purpose
OSS_USER / OSS_PASS Sonatype OSSRH credentials
SIGNING_KEY / SIGNING_PASS GPG key (base64) and passphrase
SMARTEON_GIT_TOKEN GitHub PAT for tag push

Documentation

  • RELEASE_SETUP.md: Prerequisites, GPG setup, Sonatype account configuration
  • ENVIRONMENT_VARIABLES.md: Secret descriptions, security warnings, local testing

See RELEASE_SETUP.md for complete setup instructions.

Original prompt

Please add automated release and publish to OSS sonatype repository using github actions. You can use the example of https://github.com/Smarteon/loxone-client-kotlin. Please also double check the gradle setup and summarize all the environemnt needed to be set. Note that this project is using older gradle - preferrably do not upgrade.


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

Copilot AI and others added 6 commits October 26, 2025 14:42
…us-publish plugins

Co-authored-by: jimirocks <5468417+jimirocks@users.noreply.github.com>
…uide

Co-authored-by: jimirocks <5468417+jimirocks@users.noreply.github.com>
…st documentation

Co-authored-by: jimirocks <5468417+jimirocks@users.noreply.github.com>
Co-authored-by: jimirocks <5468417+jimirocks@users.noreply.github.com>
Co-authored-by: jimirocks <5468417+jimirocks@users.noreply.github.com>
Co-authored-by: jimirocks <5468417+jimirocks@users.noreply.github.com>
Copilot AI changed the title [WIP] Add automated release and publish to OSS Sonatype repository Add automated release and publish to OSS Sonatype via GitHub Actions Oct 26, 2025
Copilot AI requested a review from jimirocks October 26, 2025 15:00
Copy link
Contributor

@jimirocks jimirocks left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@copilot good job please look at comments and adjust

Co-authored-by: jimirocks <5468417+jimirocks@users.noreply.github.com>
Copilot AI requested a review from jimirocks October 26, 2025 15:31
@jimirocks jimirocks marked this pull request as ready for review October 26, 2025 16:45
@jimirocks jimirocks requested a review from knotekt October 26, 2025 16:45
@jimirocks jimirocks merged commit f69e1ad into master Oct 30, 2025
2 checks passed
@jimirocks jimirocks deleted the copilot/add-automated-release-publish branch October 30, 2025 07:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants