Skip to content

Comments

build: migrate repository to use CodeArtifact in build and publish#90

Merged
welociraptor merged 5 commits intomasterfrom
codeartifact
Feb 19, 2026
Merged

build: migrate repository to use CodeArtifact in build and publish#90
welociraptor merged 5 commits intomasterfrom
codeartifact

Conversation

@welociraptor
Copy link

No description provided.

@leanish
Copy link

leanish commented Feb 19, 2026

@codex review

username = "$mavenUser"
password = "$mavenPassword"
username = "aws"
password = System.getenv("CODEARTIFACT_AUTH_TOKEN")
Copy link

Choose a reason for hiding this comment

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

shouldn't it be providers.environmentVariable("CODEARTIFACT_AUTH_TOKEN")?

Copy link

Choose a reason for hiding this comment

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

once here, you could also add .orElse(providers.gradleProperty("<the_key>"))

username "$mavenUser"
password "$mavenPassword"
username = "aws"
password = System.getenv("CODEARTIFACT_AUTH_TOKEN")
Copy link

Choose a reason for hiding this comment

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

same

username "$mavenUser"
password "$mavenPassword"
username = "aws"
password = System.getenv("CODEARTIFACT_AUTH_TOKEN")
Copy link

Choose a reason for hiding this comment

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

same

uses: actions/checkout@v4

- name: Set up JDK
uses: actions/setup-java@v4
Copy link

Choose a reason for hiding this comment

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

I guess you can use v5


steps:
- name: Checkout code
uses: actions/checkout@v4
Copy link

Choose a reason for hiding this comment

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

I guess you can use v6

Comment on lines 28 to 34
export CODEARTIFACT_AUTH_TOKEN=$(aws codeartifact get-authorization-token \
--domain ${{ vars.CODEARTIFACT_DOMAIN }} \
--domain-owner ${{ vars.CODEARTIFACT_DOMAIN_OWNER }} \
--region ${{ env.AWS_REGION }} \
--query authorizationToken \
--output text)
echo "CODEARTIFACT_AUTH_TOKEN=$CODEARTIFACT_AUTH_TOKEN" >> $GITHUB_ENV
Copy link

Choose a reason for hiding this comment

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

I guess this will also need to be updated to the latest approach?

Comment on lines +214 to +217
url = "$mavenUrl"
credentials {
username "$mavenUser"
password "$mavenPassword"
username = "$mavenUser"
password = "$mavenPassword"
Copy link

Choose a reason for hiding this comment

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

I assume these 3 come from Gradle itself?

Copy link
Author

Choose a reason for hiding this comment

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

I guess so. I assume there's no difference whether there is the equals sign or if it's omitted.

Copy link

@leanish leanish left a comment

Choose a reason for hiding this comment

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

I added a question, but LGTM if "yes" (or no with another reliable variable-value source)

@welociraptor welociraptor merged commit 9d4915b into master Feb 19, 2026
5 checks passed
@welociraptor welociraptor deleted the codeartifact branch February 19, 2026 12:43
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.

2 participants