-
Notifications
You must be signed in to change notification settings - Fork 38
Building Locally
dginty4 edited this page Sep 9, 2024
·
8 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_HOME
environment variable is set - install maven and ensure the
MAVEN_HOME
environment variable is set - run
mvn clean package
- 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
jarPath
for theswaggerCodegen
or theWORKSPACE
environment 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.ts
to see CLI options.
- run