Skip to content

[NCL-9648] Add gradle build action#46

Merged
patrikk0123 merged 1 commit into
project-ncl:mainfrom
patrikk0123:ncl9648-12
May 18, 2026
Merged

[NCL-9648] Add gradle build action#46
patrikk0123 merged 1 commit into
project-ncl:mainfrom
patrikk0123:ncl9648-12

Conversation

@patrikk0123
Copy link
Copy Markdown
Member

No description provided.

Comment thread .github/actions/gradle-build/action.yml Outdated
Comment thread .github/workflows/gradle-ci.yml Outdated
Comment thread .github/workflows/gradle-snapshot.yml Outdated
Comment thread .github/actions/gradle-build/action.yml
with:
java-version: "${{ inputs.java_version }}"
distribution: "temurin"
cache: gradle
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This is missing matching configuration from the maven-snapshot i.e. configuring server-id, server-username etc. I am wondering if that is why I needed that workaround or deleting the settings file and generating a new one below below

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I think after some experimentation its due to the fact that the settings.xml always ends up being generated and the settings loader plugin I was using attempts to decrypt it annoyingly. I'm seeing if I can remove that plugin and use a custom implementation which would simplify the work here (See project-ncl/gradle-manipulator#538 )

Comment thread .github/workflows/gradle-ci.yml Outdated
- name: Remove default GitHub Maven configuration
if: inputs.remove_default_maven_settings
shell: bash
run: rm -f ~/.m2/settings.xml
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Note with project-ncl/gradle-manipulator#538 this can be removed

Copy link
Copy Markdown
Member Author

@patrikk0123 patrikk0123 May 18, 2026

Choose a reason for hiding this comment

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

removed; thank you for simplification

Copy link
Copy Markdown
Member Author

@patrikk0123 patrikk0123 May 18, 2026

Choose a reason for hiding this comment

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

do we also need

QUARKUS_CONTAINER_IMAGE_USERNAME: ${{ secrets.QUAY_DEVEL_USERNAME }}
QUARKUS_CONTAINER_IMAGE_PASSWORD: ${{ secrets.QUAY_DEVEL_PASSWORD }}

env vars (as in maven-snapshot)?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I don't think we do ; currently nothing is being pushed to Quay.

Comment thread .github/workflows/gradle-snapshot.yml Outdated
Comment thread .github/workflows/gradle-snapshot.yml Outdated
@patrikk0123
Copy link
Copy Markdown
Member Author

patrikk0123 commented May 18, 2026

due to referencing action in the reusable workflow, action has to be in separate PR

#48

@patrikk0123 patrikk0123 requested a review from rnc May 18, 2026 09:30
@rnc
Copy link
Copy Markdown
Contributor

rnc commented May 18, 2026

This is looking good! Do we need #48 merged first? And the shellcheck fixed?

@patrikk0123 patrikk0123 force-pushed the ncl9648-12 branch 2 times, most recently from eee8879 to 4f6ec20 Compare May 18, 2026 12:30
@patrikk0123
Copy link
Copy Markdown
Member Author

@rnc Shellcheck fixed and build action merged and rebased onto it. Will add README changes.

@patrikk0123 patrikk0123 merged commit 302f28d into project-ncl:main May 18, 2026
2 checks passed
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