Skip to content

Condense packaged JSON resources during the build phase via profile#2864

Merged
lmsurpre merged 1 commit into
mainfrom
condense-json
Oct 18, 2021
Merged

Condense packaged JSON resources during the build phase via profile#2864
lmsurpre merged 1 commit into
mainfrom
condense-json

Conversation

@lmsurpre
Copy link
Copy Markdown
Member

@lmsurpre lmsurpre commented Oct 18, 2021

In #2860 I added the condense-json action to the build section
of each project where we want it.

The problem with that is it requires everyone to have a built copy of the fhir-tools project
in order for our fhir-parent build to be successful.

This PR updates the approach by introducing a build profile in fhir-parent (and fhir-examples)
for controlling whether to strip the formatting of all JSON resources across all modules.
This should be safe to do and prevents us from needing to declare the profile in each individual module.

Additionally, this PR adds this new profile to a select few of the CI actions and our release action
(so that the release jars will benefit from the savings).

Note: c4bb.openapi.json and plan-net.openapi.json were removed because these files were unused
and they could not be parsed with our JSON parser (parsson). See eclipse-ee4j/parsson#43
for more info.

Signed-off-by: Lee Surprenant lmsurpre@us.ibm.com

@lmsurpre lmsurpre requested a review from prb112 October 18, 2021 17:55
In #2860 I added the condense-json action to the build section
of each project where we want it.

The problem with that is it requires everyone to have a built copy of the fhir-tools project
in order for our fhir-parent build to be successful.

This PR updates the approach by introducing a build profile in fhir-parent (and fhir-examples)
for controlling whether to strip the formatting of **all** JSON resources across all modules.

Additionally, this PR adds this new profile to a select few of the CI actions *and* our release action
(so that the release jars will benefit from the savings).

Signed-off-by: Lee Surprenant <lmsurpre@us.ibm.com>
Copy link
Copy Markdown
Contributor

@prb112 prb112 left a comment

Choose a reason for hiding this comment

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

LGTM

@lmsurpre lmsurpre changed the title Condense packaged JSON resource during the build phase via profile Condense packaged JSON resources during the build phase via profile Oct 18, 2021
@lmsurpre lmsurpre merged commit 1f7e103 into main Oct 18, 2021
@lmsurpre lmsurpre deleted the condense-json branch October 18, 2021 19:18
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.

2 participants