-
Notifications
You must be signed in to change notification settings - Fork 39
Building Locally
dginty4 edited this page Feb 4, 2025
·
9 revisions
- Set up openapi-generator
- Clone https://github.com/purecloudlabs/openapi-generator
- In the openapi-generator directory,
- install the java jdk and ensure the
JAVA_HOMEenvironment variable is set - install maven and ensure the
MAVEN_HOMEenvironment variable is set - run
mvn clean packageormvn clean package -Dmaven.test.skip=true -Dmaven.javadoc.skip=true
- Clone https://github.com/MyPureCloud/platform-client-sdk-common
- Create/edit template files
- base templates are here: https://github.com/purecloudlabs/openapi-generator/tree/master/modules/openapi-generator/src/main/resources
- overrides for those templates go in
resources/sdk/{language}/templates
- Create/edit config files
- the config file can be edited if needed but the localconfig allows overrides for most properties
- a localconfig will likely be needed (see https://github.com/purecloudlabs/platform-client-sdk-common/wiki/Local-Config-File-Samples)
- ensure either the config or localconfig have the correct
jarPathfor theswaggerCodegenor theWORKSPACEenvironment variable is set correctly in the localconfig
- To build an sdk and run unit tests,
- run
npm install -
tsx sdkBuilder.ts --sdk {language}.-
{language}options are the folder names located in/resources/sdk/
-
- Run
tsx sdkBuilder.tsto see CLI options.
- run