-
Notifications
You must be signed in to change notification settings - Fork 73
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
Automatically wire up the --enable-preview option if necessary #1033
Conversation
Generate changelog in
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What do you think about keeping all of this inside of baseline? I think it might be a bit cleaner since consolidates the preview logic in one place and stays true to the nature of baseline configuring other plugins correctly
Right, that's the other options for where to put this stuff. I wanted to preserve the situation we have now where there is no compilation dependency from sls-packaging to baseline or vice versa. It seems that if we put the logic in baseline and make it 'reach out' to configure sls-packaging then we'll need to have a compile dependency in order to get hold of the I figured doing it this way round (with the |
EDIT nvm there's a dataset in papaya of launcher-static files already, so we can just detect the |
Released 4.22.0 |
Before this PR
In baseline 3.52.0 we added this new plugin as a one-liner to add the --enable-preview flag wherever necessary (palantir/gradle-baseline#1549). We're using the extraProperties thing to avoid taking a compile dependency on baseline.
After this PR
==COMMIT_MSG==
sls-packaging will automatically include the
--enable-preview
jvm arg in launcher-static.yml ifcom.palantir.baseline-enable-preview-flag
is applied.==COMMIT_MSG==
Possible downsides?