build: add axion-release versioning, Spotless formatter, GHCR publish workflow#17
Merged
Conversation
397f571 to
f5f5e5e
Compare
yfeng21
reviewed
May 27, 2026
| @@ -0,0 +1,15 @@ | |||
| /* | |||
| * Copyright $YEAR Uber Technologies, Inc. | |||
Collaborator
Author
There was a problem hiding this comment.
$YEAR is a placeholder Spotless's licenseHeaderFile recognizes. It tells Spotless where the year sits in the template so it can match existing headers and decide how to fill it in based on yearMode.
| @@ -0,0 +1,6 @@ | |||
| # Commits listed here are skipped by `git blame`. | |||
Collaborator
There was a problem hiding this comment.
Why do we need this file, nothing is included
Collaborator
Author
There was a problem hiding this comment.
It exists so git blame doesn't attribute every line in the codebase to the Spotless reformat commit.
yfeng21
approved these changes
May 28, 2026
f5f5e5e to
49c2420
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Closes the three open-source readiness gaps before the public switchover:
pl.allegro.tech.build.axion-release(1.18.16). Version is derived from git tags; the hard-coded1.0.0-SNAPSHOTis removed../gradlew currentVersionreports0.1.0-SNAPSHOTtoday; the first official release pins1.0.0via./gradlew release -Prelease.version=1.0.0..github/workflows/release.ymltriggered onv*.*.*tags. Builds + pushes a multi-arch (linux/amd64,linux/arm64) Docker image toghcr.io/uber/ugroupwith tags:X.Y.Z,:X.Y,:X,:latest, and creates a GitHub Release with the boot jar attached.com.diffplug.spotless(6.25.0) withgoogleJavaFormat('1.22.0'),removeUnusedImports, trailing-whitespace + newline normalization, and an Apache 2.0 license header (gradle/license-header.txt).spotlessCheckruns as part of./gradlew build.ugroup_consumer_lagPromQL, and the three watchlist modes. Deep dives stay on the Wiki../gradlew spotlessApplystep and.git-blame-ignore-revssetup note.Merge order
This PR adds
spotlessCheckto the default build but the existing Java code is not yet formatted. Merge #style/spotless-reformat first to avoid a temporarily red main, then merge this. After both land, fill the reformat commit SHA into.git-blame-ignore-revsin a follow-up commit.Test plan
./gradlew currentVersion→0.1.0-SNAPSHOT./gradlew build -x integrationTestpasses (Spotless + Spotbugs + JaCoCo + unit tests)v0.0.1-rc1tag pushes to GHCR (verify before the realv1.0.0)🤖 Generated with Claude Code