Skip to content

Conversation

@pkoenig10
Copy link
Member

Follow up to #267.

Before this PR

The baseline-class-unqiueness plugin is not applied by default.

After this PR

The baseline-class-unqiueness plugin is applied by default.

@changelog-app
Copy link

changelog-app bot commented Nov 17, 2020

Generate changelog in changelog/@unreleased

Type

  • Feature
  • Improvement
  • Fix
  • Break
  • Deprecation
  • Manual task
  • Migration

Description

The baseline-class-unqiueness plugin is now applied by default.

Check the box to generate changelog(s)

  • Generate changelog entry

@policy-bot policy-bot bot requested a review from ferozco November 17, 2020 21:31
@iamdanfox
Copy link
Contributor

In an ideal world I would be 100% on board with this - just lock it in everywhere! My caution/hesitance comes from a couple of things:

  1. in repos where there are many many projects, I think the duplication of the same stuff in many different subproject's baseline-class-uniqueness.lock might get really noisy if we add this to everything
  2. the task is super slow
  3. anecdotally I think we've seen some flakes with this library in combination with jakarta-renames

I think if were gonna do this, I'd want a gradle property that would allow people to break glass and opt-out if necessary

@pkoenig10
Copy link
Member Author

Is this not sufficient as an opt-out mechanism?

tasks.checkClassUniqueness.enabled = false

@iamdanfox
Copy link
Contributor

Yeah that is actually a pretty reasonable opt-out, and also allows opting out on a per-project basis.

I guess if we could fix the crappy user experience of excavator PRs needing humans fix-ups then maybe this doesn't actually have that many downsides. The fact you're using it for everything in MP is pretty encouraging :)

@pkoenig10
Copy link
Member Author

@dfox any other concerns here?

Copy link
Contributor

@iamdanfox iamdanfox left a comment

Choose a reason for hiding this comment

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

I've landed the tweaked logic to excavator-gradle to run baselineClassUniqueness --write-locks, so let's give it a go.

@iamdanfox
Copy link
Contributor

@ferozco / @fawind shout if you have any last minute concerns, otherwise will merge when ready this in a few mins :)

@fawind
Copy link
Contributor

fawind commented Nov 23, 2020

@ferozco / @fawind shout if you have any last minute concerns, otherwise will merge when ready this in a few mins :)

Looks good with the added baselineClassUniqueness --write-locks! This should also be simple to roll-back if we hit an edge case for some reason that we did not consider here.

@bulldozer-bot bulldozer-bot bot merged commit 637487d into develop Nov 23, 2020
@bulldozer-bot bulldozer-bot bot deleted the pkoenig/uniqueness branch November 23, 2020 18:19
@svc-autorelease
Copy link
Collaborator

Released 3.54.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants