aboutsummaryrefslogtreecommitdiffstats
path: root/cps-rest
diff options
context:
space:
mode:
authoregernug <gerard.nugent@est.tech>2024-10-10 10:11:27 +0100
committeregernug <gerard.nugent@est.tech>2024-10-10 11:08:06 +0100
commit076b1b140925168e0c1eb0ffad2ae1e648010d1f (patch)
treec7fc2c5db364ea6efb8105a7328cf91f8e066156 /cps-rest
parent0af02bffdb13debee6a65c803ba680bd921a3cdf (diff)
Copy Swagger file to docs folder
To avoid manual copy/paste errors updates to docs folder for RTD are generated and copied when compiling CPS Issue-ID: CPS-2332 Change-Id: I1a64f7cc74a82341403f8125adc5216ef046429c Signed-off-by: egernug <gerard.nugent@est.tech>
Diffstat (limited to 'cps-rest')
-rw-r--r--cps-rest/pom.xml19
1 files changed, 19 insertions, 0 deletions
diff --git a/cps-rest/pom.xml b/cps-rest/pom.xml
index 20fb299948..7b36718bcc 100644
--- a/cps-rest/pom.xml
+++ b/cps-rest/pom.xml
@@ -196,6 +196,25 @@
</resources>
</configuration>
</execution>
+ <execution>
+ <id>copy-to-doc-folder</id>
+ <phase>compile</phase>
+ <goals>
+ <goal>copy-resources</goal>
+ </goals>
+ <configuration>
+ <outputDirectory>${project.basedir}/../docs/api/swagger/cps</outputDirectory>
+ <overwrite>true</overwrite>
+ <resources>
+ <resource>
+ <directory>${project.basedir}/target/generated-sources/openapi/</directory>
+ <includes>
+ <include>openapi.yaml</include>
+ </includes>
+ </resource>
+ </resources>
+ </configuration>
+ </execution>
</executions>
</plugin>
</plugins>