Skip to content

Enforce explicit plugin versions#3301

Merged
kevlahnota merged 1 commit intoCard-Forge:masterfrom
Tillerino:enforce-explicit-plugin-versions
Jun 24, 2023
Merged

Enforce explicit plugin versions#3301
kevlahnota merged 1 commit intoCard-Forge:masterfrom
Tillerino:enforce-explicit-plugin-versions

Conversation

@Tillerino
Copy link
Copy Markdown
Contributor

Hi!

I recently bumped the Maven version in Nixpgks (NixOS/nixpkgs#238746) and ran into some small but annoying manual effort w.r.t. the forge-mtg package. The issue is that forge-mtg is packaged using the double invocation method which unfortunately breaks if not all maven plugin versions are set explicitly.

We're extending the documentation to prevent this (NixOS/nixpkgs#238774), but I'm reaching out to fix the packages which have already been packaged. In this PR, we explicitly set the versions of the only two plugins which hadn't been set explicitly before and add a check with the enforcer plugin to make sure this won't accidentally break in the future.

I took the liberty of deduplicating the configuration of the enforcer plugin, since this was already causing inconsistencies (requireMavenVersion).

@Hanmac Hanmac requested a review from Agetian June 22, 2023 08:09
@Agetian
Copy link
Copy Markdown
Contributor

Agetian commented Jun 23, 2023

This change seems to work fine, I tested it on my Linux dev workflow (running Linux Mint 21.1). Haven't noticed anything off when compiling via Maven. Anyone else willing to run some tests? (esp. on other systems)

@kevlahnota kevlahnota merged commit ecabf28 into Card-Forge:master Jun 24, 2023
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