Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

lazily configure NullAway dependencies #2393

Merged
merged 3 commits into from
Sep 19, 2022

Conversation

carterkozak
Copy link
Contributor

@carterkozak carterkozak commented Sep 19, 2022

Before this PR

Plugin failed to apply in some cases

After this PR

==COMMIT_MSG==
lazily configure NullAway dependencies to successfully apply NullAway without ordering issues
==COMMIT_MSG==

Possible downsides?

Unable to repro the failure which prompted this Solved

@changelog-app
Copy link

changelog-app bot commented Sep 19, 2022

Generate changelog in changelog/@unreleased

Type

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

Description

lazily configure NullAway dependencies to successfully apply NullAway without ordering issues

Check the box to generate changelog(s)

  • Generate changelog entry

private static void configureErrorProneOptions(Project project, Action<ErrorProneOptions> action) {
project.getTasks().withType(JavaCompile.class).configureEach(new Action<JavaCompile>() {
private static void configureErrorProneOptions(Project proj, Action<ErrorProneOptions> action) {
proj.afterEvaluate(new Action<Project>() {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This matches our internal plugin configuration

@carterkozak carterkozak force-pushed the ckozak/configure_errorprone_deps branch from 33aed25 to e8349c3 Compare September 19, 2022 16:13
@bulldozer-bot bulldozer-bot bot merged commit 9f0f474 into develop Sep 19, 2022
@bulldozer-bot bulldozer-bot bot deleted the ckozak/configure_errorprone_deps branch September 19, 2022 18:14
@svc-autorelease
Copy link
Collaborator

Released 4.170.0

This was referenced Sep 19, 2022
bulldozer-bot bot pushed a commit to palantir/witchcraft-api that referenced this pull request Sep 19, 2022
###### _excavator_ is a bot for automating changes across repositories.

Changes produced by the roomba/latest-baseline-oss check.

# Release Notes
## 4.170.0
| Type | Description | Link |
| ---- | ----------- | ---- |
| Fix | lazily configure NullAway dependencies to successfully apply NullAway without ordering issues | palantir/gradle-baseline#2393 |



To enable or disable this check, please contact the maintainers of Excavator.
This was referenced Sep 19, 2022
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.

4 participants