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

ensure tasks that use moduleJvmArgs have task inputs set correctly #2477

Merged

Conversation

bjlaub
Copy link
Contributor

@bjlaub bjlaub commented Jan 30, 2023

The BaselineModuleJvmArgs plugin configures several tasks from the 'java' plugin to use values from the 'moduleJvmArgs' extension (e.g. to update compiler arguments, output values to the jar manifest, etc.). However, when the value on the extension changes, those tasks are not re-run.

To fix that, add input properties for each task that uses moduleJvmArgs so that when the extension value changes, the task will no longer be up-to-date.

Fixes #2476

Before this PR

The BaselineModuleJvmArgs plugin configures several tasks from the 'java' plugin to use values from the 'moduleJvmArgs' extension (e.g. to update compiler arguments, output values to the jar manifest, etc.). However, when the value on the extension changes, those tasks are not re-run.

After this PR

==COMMIT_MSG==
add input properties for each task that uses moduleJvmArgs so that when the extension value changes, the task will no longer be up-to-date.
==COMMIT_MSG==

Possible downsides?

The BaselineModuleJvmArgs plugin configures several tasks from the
'java' plugin to use values from the 'moduleJvmArgs' extension (e.g. to
update compiler arguments, output values to the jar manifest, etc.).
However, when the value on the extension changes, those tasks are not
re-run.

To fix that, add input properties for each task that uses moduleJvmArgs
so that when the extension value changes, the task will no longer be
up-to-date.

Fixes #2476
@changelog-app
Copy link

changelog-app bot commented Jan 30, 2023

Generate changelog in changelog/@unreleased

Type

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

Description

add input properties for each task that uses moduleJvmArgs so that when the extension value changes, the task will no longer be up-to-date.

Check the box to generate changelog(s)

  • Generate changelog entry

Copy link
Contributor

@carterkozak carterkozak left a comment

Choose a reason for hiding this comment

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

thanks!

@bulldozer-bot bulldozer-bot bot merged commit 25de8da into develop Jan 30, 2023
@bulldozer-bot bulldozer-bot bot deleted the blaub/set-task-inputs-from-BaselineModuleJvmArgs branch January 30, 2023 15:49
@svc-autorelease
Copy link
Collaborator

Released 4.186.0

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

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

# Release Notes
## 4.186.0
| Type | Description | Link |
| ---- | ----------- | ---- |
| Fix | add input properties for each task that uses moduleJvmArgs so that when the extension value changes, the task will no longer be up-to-date. | palantir/gradle-baseline#2477 |


## 4.187.0
_No documented user facing changes_


To enable or disable this check, please contact the maintainers of Excavator.
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.

Stale Jars when Updating 'moduleJvmArgs' Stanza
4 participants