Replace swagger doc gen with commmon approach 39/122639/2
authorliamfallon <liam.fallon@est.tech>
Wed, 14 Jul 2021 16:52:12 +0000 (17:52 +0100)
committerliamfallon <liam.fallon@est.tech>
Thu, 15 Jul 2021 13:58:20 +0000 (14:58 +0100)
commit3605d0a0dc7a022059db0db6f0394f02cbf967fd
treeb33cb0271aa0aeda553497101b270e02259d5cf2
parent258fdc2ddb8b5e130ccc2b287c10c3fd782b7ee9
Replace swagger doc gen with commmon approach

The swagger documentation generation is moved to policy-parent. This
commit removes the CLAMP swagger document generation and replaces it
with the common handling.

It also fixes the following bug:
The current CLAMP build generates the swagger.json file using a unit
test case. That file is used later in the build to generate a
swagger.pdf and swagger.html file. If the tests are skipped, the
swagger.json file is not generated and the build fails on the PDF/html
generation step.

This change adds a profile to the build that only does the PDF/html
generation when the skipTests flag is off.

Issue-ID: POLICY-3424
Change-Id: Id195fc600d8fca7bfa5d9003272520d57414d646
Signed-off-by: liamfallon <liam.fallon@est.tech>
runtime/pom.xml
runtime/src/main/resources/asciidoc/swagger.adoc [deleted file]