Skip to content

Extract hasSingleArtifactCommon#1279

Open
Goooler wants to merge 1 commit intovanniktech:mainfrom
Goooler:assert-jar-artifacts
Open

Extract hasSingleArtifactCommon#1279
Goooler wants to merge 1 commit intovanniktech:mainfrom
Goooler:assert-jar-artifacts

Conversation

@Goooler
Copy link
Contributor

@Goooler Goooler commented Dec 20, 2025

Follow up #1212.


  • CHANGELOG's "Unreleased" section has been updated, if applicable.

@Goooler Goooler closed this Dec 20, 2025
@Goooler Goooler reopened this Dec 20, 2025
@Goooler
Copy link
Contributor Author

Goooler commented Dec 20, 2025

Damn, the GHA downs again.

@Goooler Goooler force-pushed the assert-jar-artifacts branch from 54d109c to cec10f5 Compare January 8, 2026 00:01

fun assertThat(actual: ProjectResult): ProjectResultSubject = assertAbout(projectResult()).that(actual)

fun assertSingleArtifactCommon(result: ProjectResult, artifactExtension: String = "jar", enableSigning: Boolean = true) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Instead of having this on the companion object, can we have this directly on the Subject? So callers do assertThat(result).hasSuccessfullyBuildsSingleCommonArtifact(...). That would fit more with how truth APIs look like.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good catch!

@Goooler Goooler force-pushed the assert-jar-artifacts branch from cec10f5 to 31483a7 Compare January 21, 2026 01:26
@Goooler Goooler force-pushed the assert-jar-artifacts branch from 31483a7 to ce7305b Compare January 21, 2026 01:32
@Goooler Goooler changed the title Extract assertSingleArtifactCommon Extract hasSingleArtifactCommon Jan 21, 2026
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