Openapi restdoc generation v2 (#1442)
* OpenApi restdoc generation v2 Signed-off-by: Denislav Prinov <denislav.prinov@bosch.com> * Attach json and yaml artifacts only if -DskipTests is not provided Signed-off-by: Denislav Prinov <denislav.prinov@bosch.com> * Add missing header Signed-off-by: Denislav Prinov <denislav.prinov@bosch.com> * Add license header Signed-off-by: Denislav Prinov <denislav.prinov@bosch.com> --------- Signed-off-by: Denislav Prinov <denislav.prinov@bosch.com>
This commit is contained in:
31
docs/pom.xml
31
docs/pom.xml
@@ -72,11 +72,21 @@
|
||||
<groupId>org.eclipse.hawkbit</groupId>
|
||||
<artifactId>hawkbit-update-server</artifactId>
|
||||
<version>${project.version}</version>
|
||||
<classifier>openapi</classifier>
|
||||
<type>json</type>
|
||||
<classifier>mgmt-openapi</classifier>
|
||||
<type>yaml</type>
|
||||
<overWrite>true</overWrite>
|
||||
<outputDirectory>${basedir}/content/rest-api</outputDirectory>
|
||||
<destFileName>openapi.json</destFileName>
|
||||
<destFileName>mgmt.yaml</destFileName>
|
||||
</artifactItem>
|
||||
<artifactItem>
|
||||
<groupId>org.eclipse.hawkbit</groupId>
|
||||
<artifactId>hawkbit-update-server</artifactId>
|
||||
<version>${project.version}</version>
|
||||
<classifier>ddi-openapi</classifier>
|
||||
<type>yaml</type>
|
||||
<overWrite>true</overWrite>
|
||||
<outputDirectory>${basedir}/content/rest-api</outputDirectory>
|
||||
<destFileName>ddi.yaml</destFileName>
|
||||
</artifactItem>
|
||||
</artifactItems>
|
||||
</configuration>
|
||||
@@ -88,21 +98,6 @@
|
||||
<artifactId>exec-maven-plugin</artifactId>
|
||||
<version>${exec-maven-plugin.version}</version>
|
||||
<executions>
|
||||
<execution>
|
||||
<id>split-docs</id>
|
||||
<goals>
|
||||
<goal>exec</goal>
|
||||
</goals>
|
||||
<phase>install</phase>
|
||||
<configuration>
|
||||
<executable>${shell}</executable>
|
||||
<workingDirectory>${project.basedir}</workingDirectory>
|
||||
<arguments>
|
||||
<argument>${shell.option}</argument>
|
||||
<argument>split-doc.${batch.ext}</argument>
|
||||
</arguments>
|
||||
</configuration>
|
||||
</execution>
|
||||
<execution>
|
||||
<id>build-htmls</id>
|
||||
<goals>
|
||||
|
||||
Reference in New Issue
Block a user