FactoryCQ - Generate Herd JS client with Swagger
Update herd-sdk to also generate "javascript" and "typescript-angular" Herd APIs
<goals>
<goal>generate</goal>
</goals>
+ <id>JAVA-Generation</id>
<phase>generate-resources</phase>
<configuration>
<inputSpec>${project.build.directory}/generated-resources/herd-docs-swagger-${project.version}/docs/rest/herd.swagger.yaml</inputSpec>
<invokerPackage>org.finra.herd.sdk.invoker</invokerPackage>
</configuration>
</execution>
+ <execution>
+ <goals>
+ <goal>generate</goal>
+ </goals>
+ <id>TS-Generation</id>
+ <phase>generate-resources</phase>
+ <configuration>
+ <inputSpec>${project.build.directory}/generated-resources/herd-docs-swagger-${project.version}/docs/rest/herd.swagger.yaml</inputSpec>
+ <output>${project.build.directory}/generated-sources/swaggerTypescript</output>
+ <!-- Don't add the output directory to the project as a source root since we added it as a resource ourselves above. -->
+ <addCompileSourceRoot>false</addCompileSourceRoot>
+ <language>typescript-angular</language>
+ <apiPackage>api</apiPackage>
+ <modelPackage>model</modelPackage>
+ <invokerPackage>invoker</invokerPackage>
+ </configuration>
+ </execution>
+ <execution>
+ <goals>
+ <goal>generate</goal>
+ </goals>
+ <id>JS-Generation</id>
+ <phase>generate-resources</phase>
+ <configuration>
+ <inputSpec>${project.build.directory}/generated-resources/herd-docs-swagger-${project.version}/docs/rest/herd.swagger.yaml</inputSpec>
+ <output>${project.build.directory}/generated-sources/swaggerJavascript</output>
+ <!-- Don't add the output directory to the project as a source root since we added it as a resource ourselves above. -->
+ <addCompileSourceRoot>false</addCompileSourceRoot>
+ <language>javascript</language>
+ <apiPackage>api</apiPackage>
+ <modelPackage>model</modelPackage>
+ <invokerPackage>invoker</invokerPackage>
+ </configuration>
+ </execution>
</executions>
</plugin>
