-
Follow PDK Prerequisites on the Mulesoft documentation site, and setup the basic requirements
-
Initialise a new project
anypoint-cli-v4 pdk policy-project create --name <my-custom-policy>
-
Copy content of gcl.yaml, lib.rs, Corgo.toml files, and paste these files in your project at respective locations.
-
Compile the project by running
make build
-
Publish the policy to mulesoft exchange by running
make publish
-
You can now apply this custom policy on your flex gateway api's.