mulesoft-labs/mule-gradle-plugin

clouduhbApiEndpoint no longer valid

Closed this issue · 1 comments

Hi, I've had Sameer Pattni on-site recently. We noticed that the URL in the plugin now gives an error. The correct url should be:

https://anypoint.mulesoft.com/cloudhub/api

rather than:

https://cloudhub.io/api

I will run some tests and submit a pull request.

@willis7 thanks for catching this up. This should be configurable through its plugin convention, so there is no actually a hard need to change the API url in the code

https://github.com/mulesoft-labs/mule-gradle-plugin/blob/master/src/main/groovy/com/mulesoft/build/cloudhub/CloudhubPluginConvention.groovy

You should be able to add to your build script something like:

project.cloudhubConvention.clouduhbApiEndpoint = 'https://anypoint.mulesoft.com/cloudhub/api'

And don't have the need for changing the code.